cancel
Showing results for 
Search instead for 
Did you mean: 

Insert serial number in delivery

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I have to make one more select to search the system serial, instead the serial number of itemcode.

it works with the next code:

orders.Lines.SerialNumbers.SystemSerialNumber = serial

orders.Lines.SerialNumbers.BaseLineNumber = 0

orders.Lines.SerialNumbers.Add()

Thank you.

Former Member
0 Kudos

You have to specify the system serial number instead of the internal serial (system serial is like a 'key').

Former Member
0 Kudos

HI,

I change the InternalSerialNumber by the SystemSerialNumber.

I have the next error:

" [DLN1.WhsCode][line: 1] , 'Item 'EQDIASTC4EX0001 ' with system serial 11 is not in stock.'"

My code is:

orders.Lines.SerialNumbers.SystemSerialNumber = 11

orders.Lines.SerialNumbers.Add()

11 is the serial number in SAP for this item.

Former Member
0 Kudos

Hi Tiago,

Is this serial number available? It seems as if it is not in stock.

Adele