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

Does SAP generate COMMIT WORKS when BAdIs end?

Former Member
0 Likes
785

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 ????

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
756

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

6 REPLIES 6
Read only

Former Member
0 Likes
756

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

Read only

0 Likes
756

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 ?

Read only

0 Likes
756

Actually putting there a commit is not a best practice because the application should make a commit or roll back.

/wg

Read only

Former Member
0 Likes
757

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

Read only

0 Likes
756

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

Read only

Former Member
0 Likes
756

Good.

Thanks

Naren