SADL_V_EXP_SalesOrder

DDL: SADL_V_EXP_SO SQL: SADL_V_E_SO Type: view

Sales Order Header

SADL_V_EXP_SalesOrder is a CDS View that provides data about "Sales Order Header" in SAP S/4HANA. It reads from 1 data source (snwd_so) and exposes 22 fields with key field salesOrderKey. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
snwd_so snwd_so from

Associations (2)

CardinalityTargetAliasCondition
[0..*] SADL_V_EXP_SalesOrderItem items node_key = items.salesOrderItemKey
[0..*] Sadl_V_Exp_Currency_Text _currencyText currencyCode = _currencyText.Currency

Annotations (2)

NameValueLevelField
AbapCatalog.sqlViewName SADL_V_E_SO view
EndUserText.label Sales Order Header view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY salesOrderKey node_key Tree Model: Node Key
salesOrderId so_id Sales Order ID
createdBy created_by Version Created By
createdAt created_at Uploaded On
changedBy changed_by User Name
changedAt changed_at Timestamp
currencyCode currency_code CurrencyCode
grossAmount gross_amount Tax-Inclusive Amount
netAmount net_amount Tax-Exclusive Amount
taxAmount tax_amount VAT Amount Type
lifecycleStatus lifecycle_status Status
billingStatus billing_status SO Confirmation
deliveryStatus delivery_status SO Ordering
Items items Single-Character Flag
buyerGuid buyer_guid Node Key
Customer customer Sold-to Party
businessPartnerId customer businessPartnerId Team Member
companyName customer company_name Company
companyEmailAddress customer email_address Email Address
companyWebAddress customer web_address URI
_currencyText _currencyText
_valueHelp _valueHelp

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_EXP_SalesOrder.
-- 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: SADL_V_E_SO

CREATE VIEW SADL_V_EXP_SalesOrder AS
SELECT
  node_key AS salesOrderKey,
  so_id AS salesOrderId,
  created_by AS createdBy,
  created_at AS createdAt,
  changed_by AS changedBy,
  changed_at AS changedAt,
  currency_code AS currencyCode,
  gross_amount AS grossAmount,
  net_amount AS netAmount,
  tax_amount AS taxAmount,
  lifecycle_status AS lifecycleStatus,
  billing_status AS billingStatus,
  delivery_status AS deliveryStatus,
  Items,
  buyer_guid AS buyerGuid,
  Customer,
  customer.businessPartnerId AS businessPartnerId,
  customer.company_name AS companyName,
  customer.email_address AS companyEmailAddress,
  customer.web_address AS companyWebAddress
FROM snwd_so
LEFT OUTER JOIN SADL_V_EXP_SalesOrderItem AS items ON node_key = items.salesOrderItemKey  -- association [0..*]
LEFT OUTER JOIN Sadl_V_Exp_Currency_Text AS _currencyText ON currencyCode = _currencyText.Currency  -- association [0..*]
;