Application Development and Automation 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: 
Read only

Commitment plan in purchase contract via BAPI or FM

Former Member
0 Likes
722

Hello,

I am currently on a development where I need to create a purchase contract (as in ME31K) and add commitment plan to each item in my contract.

I have use the BAPI BAPI_CONTRACT_CREATE to create my contract successfully. However, I am unable to add the commitment plans.

I have tried via BDC, but without success.

I have not found any FM or BAPI.

I have tried to create fund reservation in FMX1 (Via BDC and Manually), but I can't find any way to connect the contract to the reservation.

Anyone having a solution for my problem?

Thanks.

Parvez

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
547

Hello,

I have found the solution to the problem:

use FM FMFR_CREATE_FROM_DATA  to create the commitment as in FMX1.  See link below for explanation on how to use :

http://scn.sap.com/thread/1997533

Then use FM MECP_CREATE_COMMITMENT_PAN to assign the created commitment to the contract item.

No need to perform BDC.

Good luck

Parvez

Hello,

I am currently on a development where I need to create a purchase contract (as in ME31K) and add commitment plan to each item in my contract.

I have use the BAPI BAPI_CONTRACT_CREATE to create my contract successfully. However, I am unable to add the commitment plans.

I have tried via BDC, but without success.

I have not found any FM or BAPI.

I have tried to create fund reservation in FMX1 (Via BDC and Manually), but I can't find any way to connect the contract to the reservation.

Anyone having a solution for my problem?

Thanks.

Parvez

1 REPLY 1
Read only

Former Member
0 Likes
548

Hello,

I have found the solution to the problem:

use FM FMFR_CREATE_FROM_DATA  to create the commitment as in FMX1.  See link below for explanation on how to use :

http://scn.sap.com/thread/1997533

Then use FM MECP_CREATE_COMMITMENT_PAN to assign the created commitment to the contract item.

No need to perform BDC.

Good luck

Parvez