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: 

Replacement for STOP command

UmaArjunan
Active Participant
0 Kudos

when the internal table is empty i shouldnt allow to continue to download.

currently i used

if it_Down is initial.

stop.

endif.

but stop is a obsolete statement , instead i want to use any other statment which is not obselete perform the same function

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ,

Use CHECK it_down[] is not initial.

Regards,

Vishvesh

if helpful, rewards it.

8 REPLIES 8

Former Member
0 Kudos

hi,

if condition.

u can give here an message right.

message '...........' type 'E".

endif.

or i think u can use exit instead of stop.

Former Member
0 Kudos

hi!!

try using EXIT cammand.

if it_Down is initial.

exit.

endif.

rewrd if useful

0 Kudos

exit works only inside the if.

But it never stop the transaction.

further it says, 0 bytes downloaded.

so anyother solution please

0 Kudos

try using check or reject statements.

may be it helps.

Former Member
0 Kudos

Hi,

You can use LEAVE PROGRAM/EXIT. but that again depends on the context where you are using ....

check out the below related thread

Former Member
0 Kudos

Hi ,

Use CHECK it_down[] is not initial.

Regards,

Vishvesh

if helpful, rewards it.

Former Member
0 Kudos

Hi,

You can use LEAVE LIST-PROCESSING or EXIT (Depends on situation) instead STOP.

Rgds,

Bujji

0 Kudos

Hi all,

I have to replace the STOP command (which is an obsolete statement) in my current report program. and I find that by using LEAVE LIST-PROCESSING, I am able to replace the STOP command. however, i think it is based on your condition as well.

Just to share here, my requirement is to be able to return to the selection screen right after an error message is displayed. So, my report will look something like below:

START-OF-SELECTION.
IF v_variable IS NOT INITIAL.
  MESSAGE v_error_message TYPE 'S' DISPLAY LIKE 'E'.
  LEAVE LIST-PROCESSING.
ENDIF.

Thanks to Bujji for your recommendations. And for the others, I think you all can give it a try... Good luck!