Sadl_V_AUnit_P_SO_C

DDL: SADL_V_AUNIT_P_SO_C SQL: SADLVAPSOC Type: view

Sales Order Consumption

Sadl_V_AUnit_P_SO_C is a CDS View that provides data about "Sales Order Consumption" in SAP S/4HANA. It reads from 2 data sources (tcurt, SADL_V_AUnit_SO) and exposes 18 fields with key field SalesOrderID. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
tcurt CurrencyTab left_outer
SADL_V_AUnit_SO SalesOrder from

Associations (2)

CardinalityTargetAliasCondition
[0..*] Sadl_V_AUnit_P_SOI_C _Items SalesOrder.node_key = _Items.parent_key
[0..*] Sadl_V_AUnit_P_SOI_C _Items2 SalesOrder.node_key = _Items2.parent_key

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName SADLVAPSOC view
ClientDependent true view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Sales Order Consumption view
Search.searchable true view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY SalesOrderID SalesOrderID Sales Order ID
created_by SADL_V_AUnit_SO created_by Version Created By
CurrencyTabText tcurt ktext Text
created_at created_at Uploaded On
changed_by changed_by User Name
changed_at changed_at Timestamp
buyer_guid buyer_guid Node Key
Currency currency_code Currency Code
CurrencyAgain currency_code Currency Code
CurrencyConsumption currency_code Currency Code
CurrencyWithFK currency_code Currency Code
tax_amount tax_amount VAT Amount Type
node_key node_key Tree Model: Node Key
_Items _Items
_ItemsInEur
_Currency _Currency
_CurrencyConsumption _CurrencyConsumption
_FKCurrency _FKCurrency

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 Sadl_V_AUnit_P_SO_C.
-- 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: SADLVAPSOC

CREATE VIEW Sadl_V_AUnit_P_SO_C AS
SELECT
  SalesOrderID,
  SalesOrder.created_by AS created_by,
  CurrencyTab.ktext AS CurrencyTabText,
  created_at,
  changed_by,
  changed_at,
  buyer_guid,
  currency_code AS Currency,
  currency_code AS CurrencyAgain,
  currency_code AS CurrencyConsumption,
  currency_code AS CurrencyWithFK,
  tax_amount,
  node_key
FROM SADL_V_AUnit_SO AS SalesOrder
LEFT OUTER JOIN tcurt AS CurrencyTab ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN Sadl_V_AUnit_P_SOI_C AS _Items ON SalesOrder.node_key = _Items.parent_key  -- association [0..*]
LEFT OUTER JOIN Sadl_V_AUnit_P_SOI_C AS _Items2 ON SalesOrder.node_key = _Items2.parent_key  -- association [0..*]
;