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: 

Function Module or BAPI to Create/Change/Delete Service Contracts

Former Member
0 Kudos

Hi,

I have to do a mass upload development to create/change/delete contracts. Same thing which we used to do from Transaction ME31k and ME32K. Here i have a excel file from which i have to pick data and create/change/delete contracts.

For normal contracts i have found BAPI(BAPI_CONTRACT_CREATE and BAPI_CONTRACT_CHANGE) to create/change/delete contracts. But i am facing problem if user want to create/change/delete service contract which contains Service Line Items. I have not found any usefull BAPI or FM to create/change/delete Service Contracts. I have try to use BDC recording but that too fails if screen changes based on Vendor or any other entry.

I have also tried BAPI_SERVICE_CREATE and ME_CREATE_DOCUMNET for Service Contract but couldn't find the fruitful result.

I need your expertise in this issue.

Thanks In Advance,

Prakhar Singh Chandel

4 REPLIES 4

nabheetscn
Active Contributor
0 Kudos

Hi Prakhar

Can you please explain us the issue you face with BAPI_SERVICE_CREATE and ME_CREATE_DOCUMNET?

Nabheet

0 Kudos

Hi Nabheet,

BAPi_SERVICE_CREATE is create service master records which is not for my use, i need to create service contract not service master record.

ME_CREATE_DOCUMENT is the FM which i found while debugging ME31K, though it create contracts, but for service contract it is not useful.

0 Kudos

Hi Prakhar

You are creating both type of contract via ME31K right...? Its just type is different if yes then BAPI_CONTRACT_CREATE shall also work..

Or are you using some different tcode for the same?

Nabheet

0 Kudos

Hi Nabheet,

No, BAPI_CONTRACT_CREATE cann't create service contract. It not only the type of contract which changes, there are multiple fields of Service Line Item which need to be passed to create a service contract, but these fields are not part of BAPI_CONTRACT_CREATE.