Skip to Content
author's profile photo Former Member
Former Member

Insert serial number in delivery

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 21, 2008 at 08:43 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 22, 2008 at 08:21 PM

    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.

    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.