Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Internal Table Record Availability Checking

former_member143179
Participant
0 Likes
409

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

2 REPLIES 2
Read only

Former Member
0 Likes
388

suppose:

select * from dbase table into internal table.

then use if sy-subrc eq 0.

then use loop at.

endloop.

endif.

Read only

Former Member
0 Likes
388

Hi,

IF NOT itab[] IS INITIAL.

LOOP AT itab.

ENDLOOP.

ENDIF.

Rgds,

Bujji