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 for change contracts

Former Member
0 Likes
2,587

Hi,

Does anybody knows any bapi ( or simple function module ) for changing a MM agreement, by creating new service item(s).

Thanks,

Paulo Sousa

6 REPLIES 6
Read only

alex_m
Active Contributor
0 Likes
1,214

Try this BAPI BAPI_CUSTOMERCONTRACT_CHANGE

Read only

Former Member
0 Likes
1,214

Hi,

That BAPI is for SD contratcs, not for MM agreements.

Thanks anyway,

Paulo Sousa

Read only

Former Member
0 Likes
1,214

Hello,

Does anybody knows any BAPI or F.M. to change one MM service's agreement at service level ?

We want to add new service's line(s) to one contratc by one external system, and i don't know any function that can be used for that prupose.

Thanks,

Paulo Sousa

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,214

Hello Paulo

If you encounter problems using the BAPI_CUSTOMERCONTRACT_CHANGE (e.g. document type is not allowed, or not allowed for this business object) simply call the (RFC-enabled) function module <b>SD_SALESDOCUMENT_CHANGE</b> directly (the BAPI does basically the same but it is restricted to BUSINESS_OBJECT = 'BUS2034' ).

Regards

Uwe

Read only

Former Member
0 Likes
1,214

Hi Paulo,

Please check this FM.

BAPI_AGREEMENT_MAINTAIN

ME_UPDATE_AGREEMENT_PO

Regards,

Ferry Lianto

Read only

0 Likes
1,214

Hi Ferry,

The F.M. ME_UPDATE_AGREEMENT_PO does not have any parameter or table where i can indicate the new service's line(s), so it's certainly not adequate.

About the BAPI_AGREEMENT_MAINTAIN, i've read the documentation and it refers structure parameters that do not exist when i display the F.M.. The documentation also says it should be used to create P.O. with the information from the contract. Do you know if it can also be used only to change one contract ? And do you also know why i cannot see any tabel named PoServices as referred in the documentation ?

Thanks,

Paulo Sousa