12-30-2013 7:22 AM
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
12-30-2013 7:25 AM
Hi Prakhar
Can you please explain us the issue you face with BAPI_SERVICE_CREATE and ME_CREATE_DOCUMNET?
Nabheet
12-30-2013 7:36 AM
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.
12-30-2013 8:23 AM
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
12-30-2013 11:24 AM
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.