Skip to Content

SAP 9.3 PL 06 - Update Packing List with batch/serial and bin location

Hi everyone,

I have a problem with the selection of the batch/serial, managed at locations. I followed the documentation you can follow at the link below:

Pick List in SAP Business One SDK

but unfortunately it does not work, I copy the code that I use and the snapshot of the pick list. Can someone tell me where I'm wrong?

go = doc.GetReleasedAllocation(AbsEntry)

doc.Lines.BatchNumbers.BatchNumber = "L01"
doc.Lines.BatchNumbers.Quantity = 10
doc.Lines.BatchNumbers.BaseLineNumber = 0

doc.Lines.BinAllocations.BinAbsEntry = GetBinAbs("02-C1-S1-P1", "02")
doc.Lines.BinAllocations.BaseLineNumber = 0
doc.Lines.BinAllocations.Quantity = 10
doc.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 0

doc.Lines.SerialNumbers.InternalSerialNumber = "S03"
doc.Lines.SerialNumbers.Quantity = 1
doc.Lines.SerialNumbers.BaseLineNumber = 1

doc.Lines.BinAllocations.BinAbsEntry = GetBinAbs("02-C1-S1-P1", "02")
doc.Lines.BinAllocations.BaseLineNumber = 1
doc.Lines.BinAllocations.Quantity = 1
doc.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 0

go = (doc.UpdateReleasedAllocation() = 0)

If Not go Then Windows.Forms.MessageBox.Show(SboCy.GetLastErrorDescription)

the error is always the same:

"Cannot add row without complete selection of batch/serial numbers"

U01 --> manager batch

U02 --> manager serial


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 19, 2018 at 09:07 AM

    Hi Enrico,

    When updating a pick list with Batch/Serial Number, you need to update the Batch and Serial Number in the base document also.
    Example, If your Pick List is based on SO, you need to update the SO first with the batch information before you update the Pick List.
    On SAP Application, this is done by the application for us automatically, but for DI, we need to handle this ourselves.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.