I_Sadl_Voc_Salesorder

DDL: I_SADL_VOC_SALESORDER SQL: ISADL_VOC_SO Type: view BASIC Package: SADL_GW_EXPOSURE_VOCAN_MOCK

Vocan Core View: Sales Order

I_Sadl_Voc_Salesorder is a Basic CDS View that provides data about "Vocan Core View: Sales Order" in SAP S/4HANA. It reads from 1 data source (snwd_so) and exposes 18 fields with key field node_key. It has 2 associations to related views. Part of development package SADL_GW_EXPOSURE_VOCAN_MOCK.

Data Sources (1)

SourceAliasJoin Type
snwd_so snwd_so from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Sadl_Voc_Businesspartner _BusinessPartner $projection.BusinessPartnerGuid = _BusinessPartner.BusinessPartnerKey
[0..*] I_SADL_VOC_CurrencyCode_Text _CurrencyText _CurrencyText.Currency_Code = $projection.CurrencyCode

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName ISADL_VOC_SO view
DataAging.noAgingRestriction true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Vocan Core View: Sales Order view
ObjectModel.semanticKey SalesOrderId view
VDM.viewType #BASIC view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.writeActivePersistence snwd_so view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY 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
BusinessPartnerGuid Node Key
CurrencyCode currency_code Currency Code
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
OpportunityId op_id Opportunity ID
OverallStatus overall_status Overall Sts
_BusinessPartner _BusinessPartner
_CurrencyText _CurrencyText

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 I_Sadl_Voc_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: ISADL_VOC_SO

CREATE VIEW I_Sadl_Voc_Salesorder AS
SELECT
  cast( node_key as sysuuid_x preserving type ) AS node_key,
  so_id AS SalesOrderId,
  created_by AS CreatedBy,
  created_at AS CreatedAt,
  changed_by AS ChangedBy,
  changed_at AS ChangedAt,
  cast( buyer_guid as sysuuid_x preserving type ) AS BusinessPartnerGuid,
  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,
  op_id AS OpportunityId,
  overall_status AS OverallStatus
FROM snwd_so
LEFT OUTER JOIN I_Sadl_Voc_Businesspartner AS _BusinessPartner ON BusinessPartnerGuid = _BusinessPartner.BusinessPartnerKey  -- association [0..1]
LEFT OUTER JOIN I_SADL_VOC_CurrencyCode_Text AS _CurrencyText ON _CurrencyText.Currency_Code = CurrencyCode  -- association [0..*]
;