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

Primary keys of database table

What to do when using Select single and primary keys of the database table are known, or not known.

When using Select single, give all primary keys of the database table. If all keys are not known and only 1 record...

is to be picked, use select up to 1 rows.


select single aufnr auart into ( aufk-aufnr,aufk-auart )
from aufk where aufnr = v_aufnr.
****************************************
if all primary keys are not known-
select aufnr auart up to 1 rows from aufk into ( aufk-aufnr,aufk-auart )
where objnr = v_objnr. 
This was last published in April 2001

Dig Deeper on SAP ABAP

PRO+

Content

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

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