2008 Sep 10 3:18 PM
Hi All,
Based on a specific condition I want to come out from the program . Can I use EXIT. That is I dont want to execute the remainign part of the program . Which Command Should I use.
Regards
Renuka
2008 Sep 10 4:14 PM
By using this exit statement can I come out from the entire program or only from the IF part. Could you pls clarify.
Regards
renuka
Hi,
why don't you try it and look what will be happend????
Regards, Dieter
2008 Sep 10 3:21 PM
hi,
yes you can use EXIT command it should be like
if ......
do this....
exit.
endif.
thanks,
anupama
2008 Sep 10 3:58 PM
Hi,
try this:
DATA: ...
...
start-of-selection.
if sy-uname <> 'TEST'.
exit.
endif.
...
end-of-selection.
Regards, Dieter
2008 Sep 10 4:14 PM
By using this exit statement can I come out from the entire program or only from the IF part. Could you pls clarify.
Regards
renuka
2008 Sep 10 4:15 PM
Hi,
why don't you try it and look what will be happend????
Regards, Dieter
2008 Sep 10 4:38 PM
Renuga,
You may try the idea suggested , U could also use
check <logical expression>
If this logical expression becomes false, the program control will be taken out from current block, Entire prgm will be terminated....
Thanks
Santhosoh
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |