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

Coy

Former Member
0 Likes
776

Hi,

I need to copy all the positions of a sales document into another existing sales document. I also need to mantain the doc numbers unchanged, I mean, I can't create a new document adding the existing documents.

Can you, please, suggest me some BAPI or FM to do so.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
686

Hi,

use the BAPI BAPISDORDER_GETDETAILEDLIST to get all the data for a give sales order..

Thanks,

Naren

4 REPLIES 4
Read only

Former Member
0 Likes
686

Hi,

GEt the items to be moved from the original sales document.

Use the BAPI_SALESDOCUMENT_CHANGE to move the items to another sales document..

Delete the line items from the originial sales document using the BAPI BAPI_SALESDOCUMENT_CHANGE.

Thanks,

Naren

Read only

0 Likes
686

Thanks Naren, but my main problem is how to get all the info of the positions (texts, partners, ...) with a fm or bapi.

Read only

Former Member
0 Likes
687

Hi,

use the BAPI BAPISDORDER_GETDETAILEDLIST to get all the data for a give sales order..

Thanks,

Naren

Read only

0 Likes
686

Thanks a lot Naren.