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

Reg. Termination of Processing from a Method

Former Member
0 Likes
510

Hi Experts,

Could you please let know - How to Terminate the Processing from a Method, I have explained the scenario.

While Posting the GR , if the given data meets my condition (Checking using the BADI) , then I should not Post - rather I should terminate from the processing .

Thanks in Advance,

Regards,

Sen

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
475

Terminate the entire program execution?: If so, you can issue an abort or abend message.

message a001(00) with 'Program is ending'.

Regards,

RIch Heilman

Hi Experts,

Could you please let know - How to Terminate the Processing from a Method, I have explained the scenario.

While Posting the GR , if the given data meets my condition (Checking using the BADI) , then I should not Post - rather I should terminate from the processing .

Thanks in Advance,

Regards,

Sen

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
476

Terminate the entire program execution?: If so, you can issue an abort or abend message.

message a001(00) with 'Program is ending'.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
475

Hello Senthil,

If it is a "Check" BAdI, then you should be able to raise an error or create an error message in the return message table.

Raising an X or A message will terminate processing, but that is usually not recommended as it will generate a short dump. Basis/Functional people are usually sensitive about short dumps and will think something is wrong with the code if a short dump is generated.

Regards,

Abdullah