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: 

Creating a Service Contract

shailendra_jain4
Participant
0 Kudos

Hello All,

I want to create a Service type OA but the BAPI: BAPI_CONTRACT_CREATE does not support it. I explored and found a class: LCL_BAPI_AGREEMENT which has a structure: "meoutbapi_t_itemall" inside BAPI which can support Service but unsure on how to use it. Also got a proxy: PurchasingContractERPRequest_In_V1 and its class which supposedly can create the Service OA.

Can anyone help me here on how to proceed?

Regards,

Shailendra

2 REPLIES 2

NTeunckens
Active Contributor
0 Kudos

SAP-KBA 1977343 clearly states that there is no current BAPI for the Service Contract creation ...

Extract :

"BAPI_CONTRACT_CREATE does not support service or limit items as it is missing structures like POSERVICES or POLIMITS (present in BAPI_PO_CREATE1). This is a missing functionality.

There are two options:

  • you can use batch input (BDC) to create service contracts or
  • you can use Enterprise Services (ESOA), for instance PurchasingContractERPRequest_In_V1, as it is equipped to handle MM-Services structures."


This SAP-Wiki can provide some starting point on how to perform BDC for Service Contract Creation.

siowfong_chen
Contributor
0 Kudos

HI Shailendra, we have similar requirements. Did you get a solution in the end? If so, can you please share your solution? Appreciate that in advance.