Review query shape, model semantics, and access boundaries
Good data access is not only the right SQL syntax. Decide what fields and rows the task needs, select the correct target shape, and know whether a relationship should be a join or a reusable CDS association.
A practical checklist
- Inspect source fields, keys, semantics, and access policy.
- Select only required fields and bind ABAP values with host-variable syntax.
- Filter rows with
WHERE; use ordering and a deliberate limit for previews. - Use aggregate/grouping when a summary is the true result; distinguish
WHEREfromHAVING. - Choose inner/outer joins based on whether unmatched rows should remain.
- Model shared semantics in CDS; use DCL for read access control and RAP when a business-object/service contract is required.
No example here connects to a real SAP system. The quiz is original and the checker is structural only.
Sources and scope
This independently authored path introduces practical ABAP SQL and CDS reading concepts. It is not a full SQL/CDS reference; syntax and features vary by release and language version.
- SAP Samples, ABAP SQL
- SAP Samples, CDS View Entities
- SAP Samples, ABAP Dictionary
- SAP Samples, Authorization Checks
- SAP Help Portal, ABAP Core Data Services
Developer practice · ABAP
Practice: ABAP SQL and CDS knowledge check
Answer these original data-access review questions. They check concepts, not your ability to connect to a system.
Choose one answer for each question.