Skip to Content
0
Former Member
May 19, 2010 at 05:57 AM

Performance of bapi BAPI_SALESORDER_CHANGE.

513 Views

Now we meet the reqeust to split the order item by quantity in order to assign wbs number to each material

For example the sales order contains one item with 10 Qty and we need to split to 10 items and each item with 1Qty

Order:

Line 0001 Material 10Qty

Change to:

Line 0001 Material 1Qty WBS-001

Line 0002 Material 1Qty WBS-002

Line 0003 Material 1Qty WBS-003

......

Line 0010 Material 1Qty WBS-010

We used bapi BAPI_SALESORDER_CHANGE to do above process but the run time seems very slowly (time out)

I tried to delete the schedule_lines and schedule_linessx from import for test.

it runs fast but the result is there is no quantity in each line item.

without schedule_line import, the order will be:

Line 0001 Material 0Qty WBS-001

Line 0002 Material 0Qty WBS-002

Line 0003 Material 0Qty WBS-003

......

Line 0010 Material 0Qty WBS-010

Does any one tried BAPI BAPI_SALESORDER_CHANGE and met the same problem (slowly)?

And any suggestion?

Thank you very much!