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

Error in smartform node (select - endselect)

akshayd1998
Participant
0 Likes
1,162

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.

1 ACCEPTED SOLUTION
Read only

Shubham56
Discoverer
1,106

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.......

3 REPLIES 3
Read only

Shubham56
Discoverer
1,107

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.......

Read only

0 Likes
1,106

Thankyou so much.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,106

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.