2010 Jul 21 10:26 AM
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.
2010 Jul 21 10:50 AM
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
2010 Jul 21 12:57 PM
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
2010 Jul 21 4:40 PM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |