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: 

Copy service line items to new line items in the same contract (ME32K)?

Former Member
0 Kudos

Hello friends,

Requirement: There are many contracts (account assignment K) has service line items (type 9). I need to copy a contract line item along with its service line items (1 or more) into a new line item in the same contract. I tried bapi_po_change but it says Contracts can't be processed with it, as only in this bapi we have a structure for ESLL services. BAPI_CONTRACT_CHANGE or create don't have structure for ESLL..how to achieve this through a bapi or a fm?

So, in what way I could accomplish this? I came across some threads, which was helpful, but is not solving the purpose

Any guidance here would be of great help.

Thanks in advance.

Mayank

1 REPLY 1

Former Member
0 Kudos

Use BAPI_AGREEMENT_MAINTAIN

This BAPI can be used to create new service items in the contract but won't change existing lines. You can query the contract lines that you want to copy and later call the BAPI to recreate them