‎2008 Feb 25 6:53 PM
I want to call a function module "IN UPDATE TASK" from within a BAdI.
Will SAP generate a "COMMIT WORK" when the BAdI ends, so that the function module is triggered ?
If I do have to code a COMMIT WORK in the BAdI to trigger execution of the FM, won't this interfere with any commit schedules that SAP has in mind ????
‎2008 Feb 25 7:19 PM
Hi,
Which BADI method are you using?
Generally it is not advisable to give our own commit work in a standard sap transaction..
THanks
Naren
‎2008 Feb 25 6:56 PM
Hi,
For only a BADI you must use
commit work.
But when it is in dialog process than there will be also implicit commit work in the end of process.
Best regards,
Wojciech
‎2008 Feb 25 7:04 PM
Thanks, W.
What if the BAdI is being called from an SCM-APO "CIF" module?
If I issue a commit work inside the BAdI to trigger my FM, will it upset how SAP wants to commit during the CIF ?
‎2008 Feb 25 7:25 PM
Actually putting there a commit is not a best practice because the application should make a commit or roll back.
/wg
‎2008 Feb 25 7:19 PM
Hi,
Which BADI method are you using?
Generally it is not advisable to give our own commit work in a standard sap transaction..
THanks
Naren
‎2008 Feb 25 8:18 PM
Hi Narendran -
I agree with you - that's why I asked the question about whether I had to code my own "commit" in the BAdI - I have never had to do this before.
But the good news is - even though I'm calling the FM "IN UPDATE TASK" from an SCM-APO CIF BAdI, SAP generates a commit work because my FM fires even when I don't have an explicit commit work in the BAdI.
So all is well that ends well.
Thanks again.
djh
‎2008 Feb 25 9:14 PM