Skip to main content

CDS-Based Data Access

AdvancedCDS⏱ 15 min

Task

Consume a CDS view in ABAP using Open SQL. Fetch sales documents with total value greater than a threshold.

Write Your ABAP Code

ABAP Editor
Loading...
📥 Sample Output
VBELN      TOTAL_VALUE
50000123   250000
50000130   310000
💡 Hint

Treat CDS views like database tables and useSELECT FROM with filters.

✅ View Reference Solution
SELECT vbeln,
       total_value
  FROM z_c_sales_summary
  WHERE total_value > 200000
  INTO TABLE @lt_sales.