2006 Jun 29 5:41 PM
is there any statement to come completly out of the i f som econdition fails
thanks in advance
2006 Jun 29 5:43 PM
Hello Mohan,
U can use Leave Program Stmt.
Or Stop.
If u use stop the control will directly goes to the end of selection.
Hope this will be useful for u.
Don't FOrget to reward points.
Regards,
Vasanth
It depends on how you want to end it. Do you want to give some message to the user and end? If so, you can give an abend message.
message A001(00) with 'This program is ending'.Regards,
Rich Heilman
2006 Jun 29 5:43 PM
2006 Jun 29 5:43 PM
you can use
<b>EXIT
CONTINUE</b>
Or use the <b>CHECK</b> statement instead of IF Statement
2006 Jun 29 5:43 PM
Hello Mohan,
U can use Leave Program Stmt.
Or Stop.
If u use stop the control will directly goes to the end of selection.
Hope this will be useful for u.
Don't FOrget to reward points.
Regards,
Vasanth
2006 Jun 29 5:43 PM
hi mohan,
give leave program.
if sy-ucomm = 'BACK'.
leave program.
endif.
2006 Jun 29 5:44 PM
You can use the keyword STOP if you are using a report program. It will stop the execution of the program.
Hope this helps.
Sudha
2006 Jun 29 5:47 PM
2006 Jun 29 5:59 PM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |