cancel
Showing results for 
Search instead for 
Did you mean: 

Exiting the process from Badi Implementation

Former Member
0 Kudos

Hi Experts,

I'm imlementing Order_Save Badi.

I encountered a scenario where I must exit the code up on finding a condition in the implementation.

i.e. the order must not be saved.

This is not just exiting the implementation, but the process needs to be terminated at this point.

How can we acheive this ? Any pointers or inputs would be of great help.

Thanks in Advance.

Regards,

Kris.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kris,

ORDER_SAVE has exception DO_NOT_SAVE. The user can't save it if the exception is occurd.

If this it not your case, please write more detailed your requirement.

Regards,

Masayuki

Answers (1)

Answers (1)

former_member230674
Contributor
0 Kudos

Hi,

Use the appropriate statements depending on your scenario.

Use CHECK statement to exit from implementation if condition is not true.

if this CHECK condition is not true, it won't execute furthur code.

I hhope, it will help you to resolve your problem.

by

Prasad GVK.