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

How to clear syntax check warning.?

Former Member
0 Likes
683

When I am using 'SELECT SINGLE ..." for selecting the single field from the table, I am getting the warning message when I am going with extended check of the program. Can anybody clear my warning message.?

"

syntax check warning

This warning is only displayed in SLIN in "SELECT SINGLE..." the WHERE condition for the key field "ERDAT" does not test for equality. Therefore, the single record in question may not be unique."

The code for the select single query is

" SELECT SINGLE vkorg

                  FROM vbak

                  INTO lv_vkorg

                  WHERE vkorg IN s_vkorg."

Thank you.

When I am using 'SELECT SINGLE ..." for selecting the single field from the table, I am getting the warning message when I am going with extended check of the program. Can anybody clear my warning message.?

"

syntax check warning

This warning is only displayed in SLIN in "SELECT SINGLE..." the WHERE condition for the key field "ERDAT" does not test for equality. Therefore, the single record in question may not be unique."

The code for the select single query is

" SELECT SINGLE vkorg

                  FROM vbak

                  INTO lv_vkorg

                  WHERE vkorg IN s_vkorg."

Thank you.

2 REPLIES 2
Read only

former_member196490
Active Participant
0 Likes
558

Use SELECT UP TO 1 ROW... ENDSELECT instead of SELECT SINGLE if where condition does not contain the key fields. The warning would be removed

Read only

ThomasZloch
Active Contributor
0 Likes
558

A very clear error message, please do a minimum of research before posting, for example read the F1 help for SELECT (SINGLE), search for available information and previous discussions.

Locked.

Thomas