Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Help regarding BAPI_SALESORDER_CREATEFROMDAT2

Hi All

I am using BAPI_SALESORDER_CREATEFROMDAT2 to create new sales order. Everything is working fine except for the Order quantity which is not getting populated from the second item and as a result the schedule line is not getting created from the second item onwards

Any clues on why the BAPI is behaving in this way?

Thanks in advance

Sree Ramya

Tags:
Former Member
Former Member replied

Sree,

As you loop thru the items to create the Items_IN table, you will have the line number (VBAP-POSNR).

Place that value VBAP-POSNR into the each Sched_IN entry that you are creating.

Make sure to set the Sched_INX-req_qty as well for each sched line.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question