Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Bapi for service contract ME31K

Hi,

Have a requirement of creating a service contract ( manually done using ME31K) through a web dynpro Program, Am currently using BAPI_CONTRACT_CREATE for this purpose.

Now the problem is this BAPI does not has any parameters wherein I can pass the services per line item, Please help by suggesting some other alternative to achieve this.

Thanks,

Shitanshu Sahai

Former Member
Former Member replied

Hi,

Resolved the problem, the way to achieve this is as mentioned below.

1) Create the service master

2) create Model

3) assign the services to the model

4) create the service contract (ME31K) by using the bapi BAPI_CONTRACT_CREATE with item category D and account assignment category U and attach the model to the line item by passing the packno field of ITEM table which is present the the "TABLES" tab of the bapi. since the model has the services the same would be attached to the line item of the contract. Hope this solves the problem of many others.

Thanks,

Shitanshu Sahai

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question