Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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.

Tags:
Former Member
replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question