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

Replacement for STOP command

UmaArjunan
Active Participant
0 Likes
2,681

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
Read only

Former Member
0 Likes
1,446

Hi ,

Use CHECK it_down[] is not initial.

Regards,

Vishvesh

if helpful, rewards it.

8 REPLIES 8
Read only

Former Member
0 Likes
1,446

hi,

if condition.

u can give here an message right.

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

endif.

or i think u can use exit instead of stop.

Read only

Former Member
0 Likes
1,446

hi!!

try using EXIT cammand.

if it_Down is initial.

exit.

endif.

rewrd if useful

Read only

0 Likes
1,446

exit works only inside the if.

But it never stop the transaction.

further it says, 0 bytes downloaded.

so anyother solution please

Read only

0 Likes
1,446

try using check or reject statements.

may be it helps.

Read only

Former Member
0 Likes
1,446

Hi,

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

check out the below related thread

Read only

Former Member
0 Likes
1,447

Hi ,

Use CHECK it_down[] is not initial.

Regards,

Vishvesh

if helpful, rewards it.

Read only

Former Member
0 Likes
1,446

Hi,

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

Rgds,

Bujji

Read only

0 Likes
1,446

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!