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

Avoiding auto-commit in BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
870

hi all,

this method BAPI_MATERIAL_SAVEDATA auto commits in database.

is there anyway to avoid this automatic commit.

please help...........its urgent.

points are guarenteed...........

4 REPLIES 4
Read only

Former Member
0 Likes
644

Hi Manisha,

Can u explain the scenario in which this method is used so that v can make out the solution for it.......

Read only

0 Likes
644

ya sure, actually i want to update MRP parameters in material master. i m using this method to update plant dependent data in the MRP views...........and after this i m calling another function module to update MRP area dependent data in MRP views...........but if second function module for MRP area dependent data fails in updating the material master.......then i want to rollback whatever has been updated using the method BAPI_MATERIAL_SAVEDATA.................

i hope scenarioo is clear now...........

Read only

Former Member
0 Likes
644

Hi,

Here are the steps..

Call the BAPI BAPI_MATERIAL_SAVEDATA..

Then call the second function module IN UPDATE TASK to group the updates..

Then give COMMIT WORK AND WAIT..

If it fails then everything will be rolled back..

Thanks,

Naren

Read only

0 Likes
644

i m not able to find out the FM IN UPDATE TASK.............

In se37 it says doesnt exist........