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_material_savereplica-data modification in database

Former Member
0 Likes
807

hi

i am trying to use this function module to modify already existing data in table mbew i am passing header data,plantdata,valuationdata,updationdata to the function module.i have used bapi_transaction_commit for commit but the change is not getting reflected in the database entries of table mbew.can anyone tell me what has to be done so that data is modified in the database.

5 REPLIES 5
Read only

Former Member
0 Likes
734

Hi,

First, if you were trying to do this via FM directly, and committing, sometimes, it won't work... in this case, create a program and call the BAPI and then, commit the transaction and check for the values... it should have updated....

Second, if you were trying to create a program to do this changes, use the "COMMIT WORK" directly and check whether the values are getting updated or not.

Please let me know if you are still having issues on this.

Thanks,

Vishnu.

Read only

0 Likes
734

hi vishnu

i am calling FM from a program .i used commit work,its not working...

Read only

Former Member
0 Likes
734

Hi,

After BAPI function module, you have to include function module BAPI_TRANSACTION_COMMIT, which will commit the database changes.

So just use this.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • EXPORTING

  • WAIT =

  • IMPORTING

  • RETURN =

Reward points if helpful.

Regards,

CS

Read only

0 Likes
734

hi csy

i used bapi_transactio_commit but its not working

Read only

Former Member
0 Likes
734

Hello Romi,

Are the date in mbew you are passing standard mbew-fields or appended fields? If the latter you have to pass them over another internal table. The COMMIT has to be performed anyway.

Hope this helps,

Heinz