01-02-2015 8:23 AM
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
01-07-2015 8:09 AM
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
01-02-2015 12:09 PM
There is no BAPI available to create service contract. Only way is using BDC .
01-07-2015 8:09 AM
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
08-14-2015 6:52 PM
Hi Shitansu,
thanks for your input. We have been able to reproduce your proposal using ME31k, but we havent been able to find where we should specify the MODEL name in the item table when using the BAPI.
We're specifying the item model in field PCKG_NO.
Thanks
Daniela Favelukes
08-18-2015 9:52 AM
Have you checked the structures to be passed in as importing parameters?
08-18-2015 12:06 PM
Yes, the whole structure and haven't found the MODEL field (nor even its technical name).
thanks,
Daniela
10-21-2020 10:43 AM
Hi Shitanshu Sahai
How did you create the Service? Via BAPI?
Thank you.
Best regards.