‎2021 Jul 25 5:40 PM

WA_RT_HD IS A WORK AREA.
MY ERROR GETS RESOLVED WHEN I USE ENDSELECT ,THEN TO WHY IS THERE A NEED TO ADD THAT IN PREVIOUS CASE SIMILAR TO THIS I DIDN'T GOT ERROR FOR THIS.
‎2021 Jul 25 6:13 PM
It looks like you are selecting only a single variable into LV_IQITYP.
To resolve the issue you can add SINGLE in your select query, then there'll be no need of endselect.
E.g. - SELECT SINGLE ZIQITYP FROM.......
‎2021 Jul 25 6:13 PM
It looks like you are selecting only a single variable into LV_IQITYP.
To resolve the issue you can add SINGLE in your select query, then there'll be no need of endselect.
E.g. - SELECT SINGLE ZIQITYP FROM.......
‎2021 Jul 25 6:16 PM
‎2021 Jul 25 6:20 PM
The SELECT syntax you are using is to do a "SELECT loop", which requires ENDSELECT.
To avoid a SELECT loop, use for instance SELECT SINGLE ..., or SELECT ... INTO TABLE ...
See the ABAP documentation for more information.