CdsFrwk_Sales_Order_Item

DDL: CDS_WITH_CALCULATIONS SQL: CDSFRWK_DEMO_1 Type: view

Calculations in SELECT list

CdsFrwk_Sales_Order_Item is a CDS View that provides data about "Calculations in SELECT list" in SAP S/4HANA. It reads from 1 data source (snwd_so_i) and exposes 7 fields with key field so_item_guid. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
snwd_so_i snwd_so_i from

Associations (1)

CardinalityTargetAliasCondition
[1] snwd_pd _product snwd_so_i.product_guid = _product.node_key

Annotations (3)

NameValueLevelField
AbapCatalog.sqlViewName CDSFRWK_DEMO_1 view
EndUserText.label Calculations in SELECT list view
AbapCatalog.compiler.compareFilter true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY so_item_guid snwd_so_i node_key Tree Model: Node Key
so_guid parent_key UUID
product_guid snwd_so_i product_guid Product
so_item_pos snwd_so_i so_item_pos Item Position
gross_amount gross_amount Tax-Inclusive Amount
demo
_product _product

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view CdsFrwk_Sales_Order_Item.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CDSFRWK_DEMO_1

CREATE VIEW CdsFrwk_Sales_Order_Item AS
SELECT
  snwd_so_i.node_key AS so_item_guid,
  parent_key AS so_guid,
  snwd_so_i.product_guid AS product_guid,
  snwd_so_i.so_item_pos AS so_item_pos,
  gross_amount,
  division( tax_amount, net_amount, 4 ) * 100 AS demo
FROM snwd_so_i
LEFT OUTER JOIN snwd_pd AS _product ON snwd_so_i.product_guid = _product.node_key  -- association [1]
;