SADL_V_AUnit_SO

DDL: SADL_V_AUNIT_SO SQL: SADLVASO Type: view

SalesOrder for local unit tests

SADL_V_AUnit_SO is a CDS View that provides data about "SalesOrder for local unit tests" in SAP S/4HANA. It reads from 1 data source (snwd_so) and exposes 19 fields with key field node_key. It has 3 associations to related views. It is exposed through 1 OData service (SADL_GW_V4_MP_AUT).

Data Sources (1)

SourceAliasJoin Type
snwd_so SalesOrder from

Associations (3)

CardinalityTargetAliasCondition
[0..*] SADL_V_AUnit_SOI _Items SalesOrder.node_key = _Items.parent_key
[0..*] SADL_V_AUnit_SOI _OtherItems__AssocWithLongName SalesOrder.node_key = _OtherItems__AssocWithLongName.parent_key
[0..*] SADL_V_AUnit_Currency _CurrencyTexts _CurrencyTexts.waers = SalesOrder.currency_code

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName SADLVASO view
EndUserText.label SalesOrder for local unit tests view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.createEnabled true view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view

OData Services (1)

ServiceBindingVersionContractRelease
SADL_GW_V4_MP_AUT

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY node_key snwd_so node_key Tree Model: Node Key
SalesOrderID snwd_so so_id Sales Order ID
created_by snwd_so created_by Version Created By
created_at snwd_so created_at Uploaded On
changed_by snwd_so changed_by User Name
changed_at snwd_so changed_at Timestamp
note_guid snwd_so note_guid Node Key
buyer_guid snwd_so buyer_guid Node Key
HiddenCurrency currency_code Currency Code
gross_amount snwd_so gross_amount Tax-Inclusive Amount
net_amount snwd_so net_amount Tax-Exclusive Amount
tax_amount snwd_so tax_amount VAT Amount Type
op_id snwd_so op_id Opportunity ID
_Items _Items
_Items_AssociationWithLongName _Items
_OtherItems__AssocWithLongName _OtherItems__AssocWithLongName
_Currency _Currency
_CurrencyTexts _CurrencyTexts
_Self _Self

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.
-- 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: SADLVASO

CREATE VIEW SADL_V_AUnit_SO AS
SELECT
  SalesOrder.node_key AS node_key,
  SalesOrder.so_id AS SalesOrderID,
  SalesOrder.created_by AS created_by,
  SalesOrder.created_at AS created_at,
  SalesOrder.changed_by AS changed_by,
  SalesOrder.changed_at AS changed_at,
  SalesOrder.note_guid AS note_guid,
  SalesOrder.buyer_guid AS buyer_guid,
  currency_code AS HiddenCurrency,
  SalesOrder.gross_amount AS gross_amount,
  SalesOrder.net_amount AS net_amount,
  SalesOrder.tax_amount AS tax_amount,
  SalesOrder.op_id AS op_id
FROM snwd_so AS SalesOrder
LEFT OUTER JOIN SADL_V_AUnit_SOI AS _Items ON SalesOrder.node_key = _Items.parent_key  -- association [0..*]
LEFT OUTER JOIN SADL_V_AUnit_SOI AS _OtherItems__AssocWithLongName ON SalesOrder.node_key = _OtherItems__AssocWithLongName.parent_key  -- association [0..*]
LEFT OUTER JOIN SADL_V_AUnit_Currency AS _CurrencyTexts ON _CurrencyTexts.waers = SalesOrder.currency_code  -- association [0..*]
;