Application Development 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: 

LUW and Update function module for Updating custom table from BADI

sanjay_deshpande4
Participant
0 Kudos
216

Dear All,

I am supposed to update a custom table from Badi.

Can anybody guide if its fine whether I should use Insert/Update statement in Update function module and then call update function module inside the BADI OR

I can directly use insert/update statement inside the BADI off course without COMMIT WORK.

And if later is the case when its correct using update function module(scenario)?

Regards.

1 REPLY 1

Sandra_Rossi
Active Contributor
129

If the method you implement in your BAdI implementation is documented by SAP to execute right after all the checks are correct, and right before the updates in an update task, then you can use CALL FUNCTION ... IN UPDATE TASK ... Of course, if you have a method documented to be executed inside an update task, then you don't need to use CALL FUNCTION ... IN UPDATE TASK ..., you can directly update the database.