is the sy-subrc set inside a loop?
i had a scenario in which the internal table header line contained a record that was selected after certain conditions were satisfied.
i had a checked if sy-subrc equal to 0 and then proceeded. There were 3 records which satisfied the conditions; of which the first 2 were correctly populated but the 3rd record was rejected since the sy-subrc was not eq 0.
the syntax was like:
loop at <itab> were <conditions>.
if sy-subrc eq 0.
How is that the sy-subrc became eq to 0 within the loop?
Message was edited by: