Skip to Content
0
Former Member
Jan 28, 2008 at 04:32 AM

BAPI_SALESORDER_CREATEFROMDAT2

114 Views

Hi,

I am using BAPI_SALESORDER_CREATEFROMDAT2.

I use structure ORDER_ITEMS_IN to pass details of BOM header material and BOM components.

I use structure ORDER_SCHEDULES_IN to pass details of BOM header material and BOM components.

EG. BOM material (A), BOM components b,c,d

In ORDER_SCHEDULES_IN , I pass quantity of material A as 1 in ORDER_SCHEDULES_IN -req_qty.

When I pass quantity of A=1, b=1, c=1, d=1 , no sales order is created

When I pass only schedule line of header, namely A=1, sales order gets created with 4 line items, line item A has schedule line, b, c d, does not have schedule line but quantity gets displayed as 0.

Any pointers as to how to get BOM header + components in sales order.

Thanks.