Sadl_V_Aunit_So_C

DDL: SADL_V_AUNIT_SO_C SQL: SADLVASOC Type: view

Sales Order Consumption View for AUTs

Sadl_V_Aunit_So_C is a CDS View that provides data about "Sales Order Consumption View for AUTs" in SAP S/4HANA. It reads from 2 data sources (tcurt, SADL_V_AUnit_SO_TP) and exposes 22 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_TP SalesOrder from

Associations (2)

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

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName SADLVASOC view
ClientDependent true view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Sales Order Consumption View for AUTs view
Search.searchable true view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY SalesOrderID SalesOrderID
created_by SADL_V_AUnit_SO_TP 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
gross_amount gross_amount Tax-Inclusive Amount
net_amount net_amount Tax-Exclusive Amount
tax_amount tax_amount VAT Amount Type
node_key node_key Tree Model: Node Key
CurrencySpras _Currency spras Off. Language
_Items _Items
_ItemsInEur
_Currency _Currency
_CurrencyLanguageCons _Currency _Language
_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_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: SADLVASOC

CREATE VIEW Sadl_V_Aunit_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,
  gross_amount,
  net_amount,
  tax_amount,
  node_key,
  _Currency.spras AS CurrencySpras,
  _Currency._Language AS _CurrencyLanguageCons
FROM SADL_V_AUnit_SO_TP AS SalesOrder
LEFT OUTER JOIN tcurt AS CurrencyTab ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN Sadl_V_Aunit_Soi_C AS _Items ON SalesOrder.node_key = _Items.parent_key  -- association [0..*]
LEFT OUTER JOIN Sadl_V_Aunit_Soi_C AS _Items2 ON SalesOrder.node_key = _Items2.parent_key  -- association [0..*]
;