Skip to Content
0
Former Member
Jul 13, 2006 at 08:52 AM

Bapi Sales Order Create

159 Views

Hello,

I am using BAPI_SALESORDER_CREATEFROMDAT2 to create sales order. The system is configured to automatically generate the item numbers. I can create an order alright for simple materials.

For this I am populating both Line items and Schedule Line item structures - ORDER_ITEMS_IN and ORDER_SCHEDULES_IN respectively, without passing the line item number(ITM_NUMBER field).

The problem is when I create an order which has a KIT as a line item.

So SAP explodes the Kit correctly, but the quantity information goes all wrong for the subsequent lines after the kit. Hence order does not get correctly created.

Any hints on how to solev this? I want to create the order with Kit and simple materials and without provising the line item numbers.