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

BAPI_AGREEMENT_MAINTAIN

Former Member
0 Likes
957

Hi all,

I'm trying to run BAPI "BAPI_AGREEMENT_MAINTAIN" to create contract.

If we run the TCODE me31k the required field for BAPI creation are as below:

1. vender

2. Agreement Type

3. Agreement Date

4: Purchase organization

5. Purchasing group

6. validity end

7. target number:

8. Material Number.

when I'm trying to run the function BAPI directly with the above fields in BAPI parameter (to create a create Contract). I'm getting a message that "Make an entry in all required fields".

Can anyone let me know where I'm wrong?? or any other fields are required.

Thanks in advance.

Regards,

Bhavana

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
797

Hi Bhavana,

you need to pass langauge,country,currency,and address details if any then only it will be created or else it will give the same error.

you need to look into IM_AGREEMENT_HEADER , here you need to pass all those details.

pass language,country,currency, address details if any. then see...

Regards

Vijay

4 REPLIES 4
Read only

Former Member
0 Likes
798

Hi Bhavana,

you need to pass langauge,country,currency,and address details if any then only it will be created or else it will give the same error.

you need to look into IM_AGREEMENT_HEADER , here you need to pass all those details.

pass language,country,currency, address details if any. then see...

Regards

Vijay

Read only

0 Likes
797

Thanks for your response Vijay,

I've given all these details but I'm still getting the same error message.

I think problem is related with table entries of "IMT_AGREEMENT_ITEMS".

Can you please let me know which are the required field except material number and plant I need to give here.

Thanks,

Bhavana

Read only

Former Member
0 Likes
797

Hi all,

Is "BAPI_AGREEMENT_MAINTAIN" the correct BAPI for creating a contract via ME31K?????

Regards,

Bhavana

Read only

0 Likes
797

Hello Bhavana,

I'm trying to create contract with this BAPI and I receive the same message as yours.

Do you finally find a solution?

Regards.

Valerie