Skip to Content
avatar image
Former Member

BAPI_SALESORDER_CREATEFROMDAT2 line item assignment

Is there a way to use BAPI_SALESORDER_CREATEFROMDAT2 without having to predict internally assigned line item numbers by SAP?

E.g. creating an order with 2 line items, the 1st line item explodes into a sales BOM, so in order to tie sales order text or schedule line data in for a 2nd line item I need to know the line item number of the 2nd item in tables ORDER_TEXT or ORDER_SCHEDULES_IN.

External systems usually don't know how SAP will explode into items, so I can't believe there is no way to do this with the standard BAPI. Or is everyone out there just using a custom wrapper function that reads the sales BOMs and calculates SAP line item numbers?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 21, 2007 at 12:40 AM

    Hi Peter,

    You do not need to pass any item number to the FM. Let the system do it for you. Let me know if i have understood your question or please revert.

    Regards,

    Ravi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Did u try passing Line Number say 10 and 20 to you line items and see if the sales BOMs get a different number other than 20