2022 May 01 5:21 PM
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.
2022 May 02 6:20 AM
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.