Application Development 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: 

NO CHECK or IF SY-TFILL > 0 preceeding SELECT...FOR ALL ENTRIES was found

Former Member
0 Kudos

Please help with this issue " NO CHECK or IF SY-TFILL > 0 preceeding SELECT...FOR ALL ENTRIES was found"

SELECT docnum countr st1 st2 st3 st4

FROM edids INTO TABLE i_edids

FOR ALL ENTRIES IN i_edidc

WHERE docnum = i_edidc-docnum.

1 ACCEPTED SOLUTION

JozsefSzikszai
Active Contributor
0 Kudos

if the internal table i_edidc is empty, than all records will be selected from edids

better to check the internal table first:

IF i_edidc[] IS NOT INITIAL.
SELECT docnum countr st1 st2 st3 st4 
FROM edids INTO TABLE i_edids
FOR ALL ENTRIES IN i_edidc
WHERE docnum = i_edidc-docnum.
ENDIF.

1 REPLY 1

JozsefSzikszai
Active Contributor
0 Kudos

if the internal table i_edidc is empty, than all records will be selected from edids

better to check the internal table first:

IF i_edidc[] IS NOT INITIAL.
SELECT docnum countr st1 st2 st3 st4 
FROM edids INTO TABLE i_edids
FOR ALL ENTRIES IN i_edidc
WHERE docnum = i_edidc-docnum.
ENDIF.