Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8511

Re: Strange error when posting to GR

$
0
0

     Hi Eder,

     Yes, I did. I was populating the SerialAndBatchNumbersBaseLine with the wrong information. In a nutshell, when picking form a Bin Location, the Bin allocation line must match the Lot allocation line. The code is really complex, but I can sumarize it as follows:

 

If (String.IsNullOrEmpty(oMyPickList.Lines.BatchNumbers.BatchNumber) = False) Then

    oMyPickList.Lines.BatchNumbers.Add()

End If

lngSerBatchBaseLine = oMyPickList.Lines.BatchNumbers.Count - 1

oMyPickList.Lines.BatchNumbers.BatchNumber = strLot

oMyPickList.Lines.BatchNumbers.Quantity = dblQuantity

...

oMyPickList.Lines.BinAllocations.AllowNegativeQuantity = SAPbobsCOM.BoYesNoEnum.tYES

oMyPickList.Lines.BinAllocations.BinAbsEntry = lngBinID

oMyPickList.Lines.BinAllocations.Quantity = dblQuantity

oMyPickList.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = lngSerBatchBaseLine

 

     As mentioned, the code is not exactly what I have just posted, but illustrate the solution I applied. I hope it helps!!!

 

     Tarh Ik

PS: This posting has been posted "AS IS"


Viewing all articles
Browse latest Browse all 8511

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>