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: 

How to stop main process in BADI

Former Member
0 Kudos

Hi All,

I am using WORKORDER_UPDATE BADI to do some planning data manipulations..

If something gone wrong in planning data manipulations user should get error message and should stop main process i.e. update of production order.

Is it possible with in BADI?

If yes ..please help me with your suggestions..

Thanks

5 REPLIES 5

Former Member
0 Kudos

Hello,

it would be possible in the method AT_SAVE - if you do so, you would have to raise the exception ERROR_WITH_MESSAGE.

But it's the only method where you can do so...

Regards Wolfgang

0 Kudos

Thanks for reply..

But it is not working..after RAISING exception still it is doing update...

0 Kudos

did you already debug this "throwing exception"?

Regards,

Hartmut

0 Kudos

Check for commit statement and comment it...

Raghav

Former Member
0 Kudos

Hi,

There you can use the Error message . After that use the EXIT command .. I think it will stop the main process of the transaction.

regards,

Rama