‎2008 May 29 3:06 PM
Dear Sir,
We are using LOOP command for reading the records of an Internal Table . But before entering into the Loop , we want to check that incase Records in the Internal Table are more than 0 , only then it should go for Loop , else it should not go for Loop .
So how can we check that whether Internal Table has Records contained in it or not .
Pl guide us .
Regards
B V Mittal
‎2008 May 29 3:08 PM
suppose:
select * from dbase table into internal table.
then use if sy-subrc eq 0.
then use loop at.
endloop.
endif.
‎2008 May 29 3:09 PM
Hi,
IF NOT itab[] IS INITIAL.
LOOP AT itab.
ENDLOOP.
ENDIF.
Rgds,
Bujji