05-30-2008 12:11 PM
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
05-30-2008 12:16 PM
Hi ,
Use CHECK it_down[] is not initial.
Regards,
Vishvesh
if helpful, rewards it.
05-30-2008 12:13 PM
hi,
if condition.
u can give here an message right.
message '...........' type 'E".
endif.
or i think u can use exit instead of stop.
05-30-2008 12:14 PM
hi!!
try using EXIT cammand.
if it_Down is initial.
exit.
endif.
rewrd if useful
05-30-2008 12:17 PM
exit works only inside the if.
But it never stop the transaction.
further it says, 0 bytes downloaded.
so anyother solution please
05-30-2008 12:19 PM
05-30-2008 12:16 PM
05-30-2008 12:16 PM
Hi ,
Use CHECK it_down[] is not initial.
Regards,
Vishvesh
if helpful, rewards it.
05-30-2008 12:22 PM
Hi,
You can use LEAVE LIST-PROCESSING or EXIT (Depends on situation) instead STOP.
Rgds,
Bujji
07-20-2009 8:57 AM
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!