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

Dump error given in Quality for Commit work statement used in Badi method

Former Member
0 Likes
640


Hi All,

I have got an BADI method ME_REQ_POSTED implementation in which commit work statement is being used to send emails using bcs method.I came to know Commit work statement should'nt be used in Badi implementation/method.But the issue is that in development the same code doesnt give any error while in quality it gives a runtime dump.Any ideas why this is happening?

Thanks,

Reema

3 REPLIES 3
Read only

Former Member
0 Likes
502

Hi Reema,

Did u try to trigger mail functionality without commit  work?

If its working then please dont use commit work inside BADI.

Regards,

Sudeesh Soni

Read only

former_member187748
Active Contributor
0 Likes
502

Hi Reema,

it is not recommended to use COMMIT WORK in enhancements or BADI, the reason behind is , we call badi in middle of our process, that means half of the process has been completed, that means half data gets changed, but suppose any situation where half of the data has been completed then i am calling commit work , obviously it will leads to disrupted result.

So it is not advised to apply commit work in enhancements and in badi.

You can refer these links, which provide you the required details

SAP Library - ABAP Programming (BC-ABA)

Read only

0 Likes
502

Hi Sanjeev,

I got the idea why commit statement should'nt be used but i wanted to know why it does'nt give error in development.I mean in quality if it gives runtime dump even in development it should give an error right?

Thanks,

Reema