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 in badi

Former Member
0 Likes
549

hi all,

i have a req to change the batch details of a material during the MIGO,i have exits or badi which changes for a new batch only,for old batch no exits or badis are getting triggered.can i use a bapi to changes the batch in a badi during migo, how far is it good as i bapi will do commit work in the badi.please suggest.

3 REPLIES 3
Read only

former_member156446
Active Contributor
0 Likes
495

create a zprogram and using SUBMIT statement submit that program which will update the old batches...

Its not adivcable to call a BAPI in a Tr. Like MIGO which might be hit many times a day thru many Tr.

Read only

0 Likes
495

even in the submit program it will be doing the commit work? that does'nt make commit work in the badi?

Read only

0 Likes
495

submit program will execute the program in background in a different task.. so commit will not effect the online Transaction which is going on in foreground. Hit an F1 on submit statement and read for more info on who to use it.