ENDSELECT (ABAP Keyword) introduction & syntax details
Closes a loop introduced by SELECT .
SELECT is not concluded by ENDSELECT
if it is a SELECT SINGLE command,
if only aggregate functions appear in the INTO clause or
if the INTO clause INTO TABLE itab or APPENDING TABLE itab does not include the addition PACKAGE SIZE .