Q
Problem solve Get help with specific problems with your technologies, process and projects.

Defining the development terms SELECT SINGLE and SELECT UP TO 1 ROWS

Learn the difference between two common development terms. Matt Billingham, SAP application development expert, defines the terms.

What is the difference between the terms SELECT SINGLE and SELECT UP TO 1 ROWS?
Some people feel that SELECT SINGLE should only be used when the key fields are fully specified in the where clause. This is reflected in the SAP documentation, and in the extended syntax checker which will highlight this as a warning.

However, it does not take into account that there may be other field combinations which might also be a unique index, nor that you may simply be doing an existence check, or that you the fields you are interested may remain constant over the where clause specified.

I think SELECT SINGLE is more readable, and therefore better. Others think that it is ambiguous, so SELECT UP TO 1 ROWS is better.

Dig Deeper on SAP ABAP

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchContentManagement

SearchHRSoftware

Close