Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Copy Order Item using SD_SALESDOCUMENT_CHANGE

Former Member
0 Likes
821

Hi Gurus,

I hope you can help me a walkthrough of using BAPISDORDER_GETDETAILEDLIST and SD_SALESDOCUMENT_CHANGE. Basically, I need to update a sales document by copying its line items and inserting it to the same sales document as ne new line item order. I need to copy all the properties of the order line item (text, schedule, condition) and the modification I just need to do is line item quantity.

I hope you can guide me and your help will highly appreciated.

Thank you in advance.

Regards,

Mon Magallanes

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
665

Hi,

I would suggest to use BAPI BAPI_SALESORDER_CHANGE instead of SD_SALESDOCUMENT_CHANGE. You should have no problem to achieve your goal after reading documentation for BAPI_SALESORDER_CHANGE in SE37.

Cheers

3 REPLIES 3
Read only

mvoros
Active Contributor
0 Likes
666

Hi,

I would suggest to use BAPI BAPI_SALESORDER_CHANGE instead of SD_SALESDOCUMENT_CHANGE. You should have no problem to achieve your goal after reading documentation for BAPI_SALESORDER_CHANGE in SE37.

Cheers

Read only

Former Member
0 Likes
665

I solved it on my own.

Thanks for the possible solution.

Regards,

Mon Magallanes

Read only

0 Likes
665

Hi,

quite late reply although, I want to ask how you solve this issue? I am facing same problem.