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.

This was last published in October 2005

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close