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: 

COMMIT work in BADI

Former Member
0 Kudos

Hi all,

Can anyone tell me about, is COMMIT WORK is allowed in BADI or USER EXIT?

If not, what is the aalternative for that?

Thanks in advance.

Best Regards,

Prasad

4 REPLIES 4

Former Member
0 Kudos

hi,

When you create any documents in SAP using a BAPI (ex: Sales orders, Delivery documents), you need to execute COMMIT WORK to write the data to the database. For this purpose BAPI_TRANSACTION_COMMIT is used.

bpawanchand
Active Contributor
0 Kudos

Hi

COMMIT WORK is not allowed in BADI's

[COMMIT WORK and BAPI_TRANSACTION_COMMIT|http://www.sap-img.com/fu018.htm]

Regards

Pavan

Former Member
0 Kudos

Hi Prasad.

I would like to suggest a couple of references,

[SDN - Reference - Call Transaction / Bapi and Commit work in a Update task|;

[SDN - Reference - COMMIT WORK on BADI BUPA_GENERAL_UPDATE|;

Hope that's usefull.

Good Luck & Regards.

Harsh Dave

Former Member
0 Kudos

Commit work is not allowed in BADI's.

BADIs are for enhancements and has to be used for same and only commit work of that transaction is done, no explicit Commit work is allowed inside BADI.