11-30-2011 7:39 PM
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
11-30-2011 7:51 PM
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