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

for all entries-itab empty

Former Member
0 Likes
1,231

if internal table used in for all entries is empty then what happens?

5 REPLIES 5
Read only

Former Member
0 Likes
758

Your going to get all data...It's like using a SELECT-OPTION without data....

Greetings,

Blag.

Read only

Former Member
0 Likes
758

Hi

If internal table is empty then

select statement selects all the fields in the DB table...

Regards

Ravi

Read only

Former Member
0 Likes
758

Hi Ramnaryana,

1. If internal table is empty,

then <b>ALL RECORDS will come.</b>

2. Hence, we should always use like this.

<b> if ITAB[] is not initial.

select.... query...

endif.</b>

regards,

amit m.

Read only

Former Member
0 Likes
758

u have to check like this

if itab[] is not initial.

select * from mara into corresponding fields of table itab_2

for all entries in itab

where matnr = itab-matnr.

endif.

Regards

Peram

Read only

Former Member
0 Likes
758

Hello,

You will get all the information...it will select all the data like an empty where.

Bye

Gabriel