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

Problem with BAPI_CONTRACT_CHANGE

Former Member
0 Likes
928

Hi Gurus,

I am using the BAPI , BAPI_CONTRACT_CHANGE for adding the additional partner functions( Additional Ordering vendor, Invoicing vendors ) for the given contract .

But i am getting the below Error :

'Please enter a valid partner role ' . I have entered a partner roles from the table TPAR.

Please help me in achieving this functionality ( either through BAPI or Manually any tcode ).

thanks A lot .

Praveen.

4 REPLIES 4
Read only

Former Member
0 Likes
773

Verify if the partner roles you are entering should be in internal format or external format for this BAPI. A sold-to party is SP external but AG internally.

Read only

0 Likes
773

Hi Srinivas,

Thanks a lot.

I tried with both internal and external format for following partner types : But still BAPI gives the same Error.

OA- Orderding address - BA

PI - Invoicing Address - RS.

VN-Vendor-LF.

Please let me know if you have any other fix for the same.

I have to update partner functions for the contract at purchasingorg level.There is no option provided in BAPI for the same.If youhave worked on this please let me know.

Regards,

Praveen.

Read only

0 Likes
773

Hi All,

I found and used the FM 'MM_UPDATE_PARTNERS' to update the partners for contract . YOu can use this FM for all EKKO documents.

Thanks

Praveen.

Read only

Former Member
0 Likes
773

Hi Praveen,

I have the same problem. Im encountering the error 'Please enter a valid partner role' and i am using BAPI_CONTRACT_CHANGE.

Now, you have used FM MM_UPDATE_PARTNERS so solve the issue. Is this FM applicable to Contracts? What are we going to pass to Application parameter and the tables?

Thnaks,

Isaac