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

stop processing transaction

Former Member
0 Likes
4,393

What is the statement I should use in a user exit to leave transaction without continue the processing?

Leave to transaction or check statement seem not to work

Thanks.

11 REPLIES 11
Read only

former_member156446
Active Contributor
0 Likes
2,226

you can raise a error message, or say exit.

Read only

0 Likes
2,226

I don't want just to exit from current processing , I want to stop the processing of entire tcode.

And using exit I'll leave only the current user exit's FM ...

Read only

Former Member
0 Likes
2,226

Hi Andronic,

Can you give the Exit u are using? Some additional analysis can be done by looking at that module.

Cheers,

Adi

Read only

0 Likes
2,226

select * into wa from egers.

if sy-subrc <> 0.

exit.

endif.

That's the code I'm using. I need to replace the exit statement with something else.

Read only

0 Likes
2,226

Use leave program to stop the processing.

Regards,

gurpreet

Read only

Former Member
0 Likes
2,226

Try statement STOP that would generate a short dump and lead you to the end of the processing.

Otherwise you could find in the exit function parameters a way to send a stop processing flag to the calling standard program (if designed by SAP).

Issa

Read only

0 Likes
2,226

I would not want to end it with a short dump.

I would prefer to display a message and stop processing... this is what I don't manage to do...

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,226

>

> I would not want to end it with a short dump.

> I would prefer to display a message and stop processing... this is what I don't manage to do...

Hello,

You can use an "Error" message for this.

BR,

Suhas

Read only

0 Likes
2,226

Solved problem:

messages type 'A' stop the processing.

Read only

Former Member
0 Likes
2,226

Andronic, How About

 LEAVE PROGRAM 

Regards

Shital

Read only

0 Likes
2,226

leave program COMPLETES THE PROCESSING BEFORE EXIT.