2008 Apr 21 12:20 PM
Hi,
Consider the syntax given below.
select lifnr from lfa1 where lifnr =200.
..........
endselect.
suppose if sy-subrc NE 0 then will the loop gets executed atleast once.
2008 Apr 21 12:24 PM
Hi,
No, if there is no LIFNR 200 then the loop will not be entered.
Regards,
bert
Hi Frd
No,the LOOP will not execute.because no datas will be in internal table.
Reward Me Point
By
Pari
2008 Apr 21 12:24 PM
Hi,
No, if there is no LIFNR 200 then the loop will not be entered.
Regards,
bert
2008 Apr 21 12:25 PM
Hi,
If the above condition fails then the loop will not get excecuted .
Reward if Helpfull,
Naresh.
2008 Apr 21 12:30 PM
hi
if the condition fails the loop will be skiped
regards
prasanth
2008 Apr 21 12:31 PM
Hi,
If the above condition fails then the loop will not get excecuted .
Reward if Helpfull,
Naresh.
2008 Apr 21 12:31 PM
Hi Frd
No,the LOOP will not execute.because no datas will be in internal table.
Reward Me Point
By
Pari
2008 Apr 21 12:31 PM
Hi,
If the condition fails loop will never be executed.
Regards.
2008 Apr 21 12:34 PM
hi,
u write select and endselect.. it is loop statement.
The SELECT statement sets sy-subrc to 0 for every pass by value to an ABAP data object. The ENDSELECT statement sets sy-subrc to 0 if at least one row was transferred in the SELECT loop
regards.
chandu.
2008 Apr 21 12:34 PM
hI
IF YOUR SELECT QUERY FAILS THEN SY-SUBRC WILL FAIL SO IT WON'T EXECUTE ONE LOOP ALSO
DIRECTLY IT WILL COME OUT OF THE SELECT - ENDSELECT LOOP
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |