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 an offer like VA21

Former Member
0 Likes
814

Dear all.

I'm trying to make a Z program. In this program I need to create a copy of an offer (VA21) / order (VA01) that user select.

I'm looking for BAPI's for it and I have found this --> BAPI_SALESORDER_CREATEFROMDAT2, but this it's for create not copy..., and for use it I don't find other BAPI for get data of the offer/order that I want to copy, and after introduce this data in this BAPI.

Do you know other form for creating copy of a sales order (offer or official order)??

NOTE: I want copy not onlye the header of the order, I want to copy all data ... orders line, dates, prices, etc, etc.

Thanks.

Dear all.

I'm trying to make a Z program. In this program I need to create a copy of an offer (VA21) / order (VA01) that user select.

I'm looking for BAPI's for it and I have found this --> BAPI_SALESORDER_CREATEFROMDAT2, but this it's for create not copy..., and for use it I don't find other BAPI for get data of the offer/order that I want to copy, and after introduce this data in this BAPI.

Do you know other form for creating copy of a sales order (offer or official order)??

NOTE: I want copy not onlye the header of the order, I want to copy all data ... orders line, dates, prices, etc, etc.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
693

Hello,

I don't think you can copy an order very easely.

Maybe tou can use this MF : BS01_SALESORDER_GETDETAIL to get all the informations from your order and afer use BAPI_SALESORDER_CREATEFROMDAT2 to create a new order.

Bye

Read only

0 Likes
693

Dear pifgadget,

I try to use this MF like you tell me BS01_SALESORDER_GETDETAIL, but appear a error in this funcition when I try execute it throught SE37.

Lamentably I cannot use then this MF.

Do you know another way?? Or somebody can help me ??

Thkanks again

Read only

0 Likes
693

I have found the next BAPI --> BAPI_SALESDOCUMENT_COPY , and now I can copy the order, but this BAPI made a relations between source order and copy order...

How can I delete this relation?? ... The new order created it's independent.

Thanks and Best Regards.