Skip to Content
0
Former Member
Mar 20, 2008 at 10:59 PM

Insert serial number in delivery

20 Views

Hi,

I'm trying to insert a delivery with serial number. In SAP i have the item 'P-100' in warehouse '01' and the serial number '1234'.

My code is:

orders.Lines.SerialNumbers.InternalSerialNumber = '11'

orders.Lines.SerialNumbers.Add()

I have this error: " [DLN1.WhsCode][line: 1] , 'Item 'P-100 ' with system serial 0 is not in stock.'"

The item exists in stock in warehouse '01' and stock quantity =1.

Which object i should use in orders.lines.serialNumbers?