simple loop at syntax question

Question:
Hi,
Will sy-subrc equal to 0 if exit happens and that the if and else statements get carried out and skip the write statment or sy-subrc not equal to 0 if it is a incomplete loop? Thanks
loop at itab where rpernr = employee1
and endd = date1
and begda = date2.
if and else statement
if and else statement
etc...
exit.
endloop.
if sy-subrc >< 0.
write: / 'employee not found'.
endif.
Answer:
You can do this yourself in debug and it would better for your understanding if you did it yourself this way.
Answer:
If you know how to use the debug then you're definitely so much better than me. I admire you so much and I want to be like you. I just started out fresh from college, so I have many miles to go.
Thank you
Answer:
Are you saying that someone actually hired you as an ABAP Developer straight out of college without any ABAP experience?
Regards,
R Heilman
Answer:
Hi,
debuging is very easy in SAP, but aj can answer your question. Value of sy-subrc depend on the instructions befor exit. Statement exit does not change the value of sy-subrc.
Hi,
Will sy-subrc equal to 0 if exit happens and that the if and else statements get carried out and skip the write statment or sy-subrc not equal to 0 if it is a incomplete loop? Thanks
loop at itab where rpernr = employee1
and endd = date1
and begda = date2.
if and else statement
if and else statement
etc...
exit.
endloop.
if sy-subrc >< 0.
write: / 'employee not found'.
endif.
Answer:
If you know how to use the debug then you're definitely so much better than me. I admire you so much and I want to be like you. I just started out fresh from college, so I have many miles to go.
Thank you
If you are not able to use debug than I assume you are not logged on to SAP either. Let us know how the certification goes...
Not sure how serious you are in your admiration but I would actually prefer to be back learning this afresh.

More Articles:

Horizontal ALV display?
and Double Click?
Data Conversion?
When entries are added into a table?
"Submit via selection screen . and return" doesn?
Check date table and field name?