04-21-2008 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.
04-21-2008 12:24 PM
Hi,
No, if there is no LIFNR 200 then the loop will not be entered.
Regards,
bert
04-21-2008 12:24 PM
Hi,
No, if there is no LIFNR 200 then the loop will not be entered.
Regards,
bert
04-21-2008 12:25 PM
Hi,
If the above condition fails then the loop will not get excecuted .
Reward if Helpfull,
Naresh.
04-21-2008 12:30 PM
04-21-2008 12:31 PM
Hi,
If the above condition fails then the loop will not get excecuted .
Reward if Helpfull,
Naresh.
04-21-2008 12:31 PM
Hi Frd
No,the LOOP will not execute.because no datas will be in internal table.
Reward Me Point
By
Pari
04-21-2008 12:31 PM
04-21-2008 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.
04-21-2008 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