Skip to Content

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

SO change

Hi All,

I have got a small problem. im creating a sales order using a bapi and doing some process with the return orders thats already created. if the order created consists of duplicate line items i have to add the quantity of the duplicate material numbers and make it look in a single line. im using BAPI_SALESORDER_CHANGE for doing that. how can i do that. any suggestions plz.

Thanks & Regards,



HI Kiran.

YOu have to use the following logic.

First sort your internal table based on the material number.

sort itab by matnr.

loop at itab.

at new matnr.

collect itab into itab_new.





0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question