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

Contract Revision using BAPI

Former Member
0 Likes
1,025

Hi,

I am trying to change Net Price, Target Quantity, Validity End and Start Date using BAPI_CONTRACT_CHANGE.

(In the Test Function Module SE37).

I am passing the new validity end and start date through the "importing" parameters. and the new target quantity and net price through "Tables".

After executing,I get the Success message.

But,

I find only the "Exporting" table contain the new validity end and start date. But the database table is not updated.

The net price and target quantity remains the same..

Whether the BAPI is correct for my requirement and why the database table reflects the changes...?

7 REPLIES 7
Read only

Former Member
0 Likes
925

If the database table is not updated, try using BAPI_TRANSACTION_COMMIT after the FM.

Read only

0 Likes
925

hi,

While testing the function module in SE37, the output ITEM TABLE also shows the old target qty and the net price.. How shoud update these values in the data base table using this BAPI...?

Read only

0 Likes
925

Why do you want to update the Old Values??

Read only

0 Likes
925

Hi Sachin,

I have to change the net price, target quantity, validity start date and validity end date. (Contract Revision)..

So the already existing values should be replaced by new values.

Regards,

Surya.

Read only

0 Likes
925

Thers is also a strucutre ITEM_X. In that, pass the value X for the parameters that you want to update and then do a commit.

Read only

0 Likes
925

hi,

I passed the headerx and itemx to the BAPI. Also I have used BAPI_TRANSACTION_COMMIT after this BAPI.

But the value is not updated both in EKKO (contract header) and EKPO (contract iem details) tables.

Can anyone help me in this for updating the database.

Regards,

Surya

Read only

Former Member
0 Likes
925

There was a problem in XML.. I found that.. Thank you for the replies..