Application Development 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: 

Add new line item in VA02 by copying same Order line details

Former Member
0 Kudos
1,164

Hi All,

I've a requirement where i need to add new line items in the Sales Order (T Code VA02) with reference to the same Order lines . For e.g an Order 80000100 which has 2 line items and the requirement is to create a new line i.e. line item 0030 by copying the details from the existing line item 0010 of the same order .

I've checked the BAPI - BAPI_SALESDOCUMENT_COPY which is for Order Creation T Code VA01 . I'm looking out for Sales Order Change BAPI where i can give the reference as Order no and Order line item which will create a new line item in the same Order with the same details of the reference Order line item .

Do let me know your thoughts !!!!

Thanks,

Bintu

2 REPLIES 2

former_member227140
Active Participant
0 Kudos
237

USE BAPI_SALESORDER_CHANGE

atul_mohanty
Active Contributor
0 Kudos
237

Hi -

Please check these two FM's BAPI_SALESORDER_GETDETAILBOS & BAPI_SALESORDER_CHANGE.

Regards,

Atul Mohanty