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: 

stop processing transaction

Former Member
0 Kudos

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

former_member156446
Active Contributor
0 Kudos

you can raise a error message, or say exit.

0 Kudos

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 ...

Former Member
0 Kudos

Hi Andronic,

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

Cheers,

Adi

0 Kudos

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.

0 Kudos

Use leave program to stop the processing.

Regards,

gurpreet

Former Member
0 Kudos

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

0 Kudos

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...

0 Kudos

>

> 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

0 Kudos

Solved problem:

messages type 'A' stop the processing.

Former Member
0 Kudos

Andronic, How About

 LEAVE PROGRAM 

Regards

Shital

0 Kudos

leave program COMPLETES THE PROCESSING BEFORE EXIT.