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

COMMIT work in BADI

Former Member
0 Likes
1,323

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
Read only

Former Member
0 Likes
843

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.

Read only

bpawanchand
Active Contributor
0 Likes
843

Hi

COMMIT WORK is not allowed in BADI's

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

Regards

Pavan

Read only

Former Member
0 Likes
843

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

Read only

Former Member
0 Likes
843

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.