SEPM_I_SalesOrder_E
EPM Demo: Sales Order with External IDs
SEPM_I_SalesOrder_E is a CDS View of category Dimension that provides data about "EPM Demo: Sales Order with External IDs" in SAP S/4HANA. It reads from 1 data source (SEPM_I_SalesOrder) and exposes 43 fields with key field SalesOrder. It has 13 associations to related views. Part of development package S_EPM_CDS_REF.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| SEPM_I_SalesOrder | SO | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | SEPM_I_SalesOrderText_E | _Text | $projection.SalesOrder = _Text.SalesOrder |
| [0..1] | SEPM_I_BusinessPartner_E | _Customer | $projection.Customer = _Customer.BusinessPartner |
| [0..1] | SEPM_I_CUSTOMER_E | _CustomerV2 | $projection.Customer = _CustomerV2.Customer |
| [0..*] | SEPM_I_SalesOrderItem_E | _Item | $projection.SalesOrder = _Item.SalesOrder |
| [0..*] | SEPM_I_SalesOrderItem_E_V2 | _ItemV2 | $projection.SalesOrder = _ItemV2.SalesOrder |
| [0..1] | SEPM_I_User_E | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..1] | SEPM_I_User_E | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [1..1] | SEPM_E_SalesOrder | _Extension | SO.salesorderuuid = _Extension.SalesOrderUUID |
| [0..1] | SEPM_I_ContactPerson_E | _CustomerContact | $projection.CustomerContact = _CustomerContact.ContactPerson and $projection.Customer = _CustomerContact.BusinessPartner |
| [0..1] | SEPM_I_Party_E | _BillToParty | $projection.BillToParty = _BillToParty.Party |
| [0..1] | SEPM_I_PartyRole | _BillToPartyRole | $projection.BillToPartyRole = _BillToPartyRole.PartyRole |
| [0..1] | SEPM_I_Party_E | _ShipToParty | $projection.ShipToParty = _ShipToParty.Party |
| [0..1] | SEPM_I_PartyRole | _ShipToPartyRole | $projection.ShipToPartyRole = _ShipToPartyRole.PartyRole |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | EPM Demo: Sales Order with External IDs | view | |
| ObjectModel.compositionRoot | true | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | SEPM_ISOE | view | |
| ObjectModel.representativeKey | SalesOrder | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | SEPM_I_SalesOrder | SalesOrder | SD Document |
| CreatedByUser | ||||
| CreationDateTime | SEPM_I_SalesOrder | CreationDateTime | Timestamp | |
| LastChangedByUser | ||||
| LastChangedDateTime | SEPM_I_SalesOrder | LastChangedDateTime | Time Stamp | |
| IsCreatedByBusinessPartner | SEPM_I_SalesOrder | IsCreatedByBusinessPartner | Value | |
| IsLastChangedByBusinessPartner | SEPM_I_SalesOrder | IsLastChangedByBusinessPartner | Value | |
| Customer | ||||
| CustomerContact | ||||
| TransactionCurrency | SEPM_I_SalesOrder | TransactionCurrency | Transaction Currency | |
| GrossAmountInTransacCurrency | SEPM_I_SalesOrder | GrossAmountInTransacCurrency | Tax-Inclusive Amount | |
| NetAmountInTransactionCurrency | SEPM_I_SalesOrder | NetAmountInTransactionCurrency | Tax-Exclusive Amount | |
| TaxAmountInTransactionCurrency | SEPM_I_SalesOrder | TaxAmountInTransactionCurrency | VAT Amount Type | |
| SalesOrderLifeCycleStatus | SEPM_I_SalesOrder | SalesOrderLifeCycleStatus | Status | |
| SalesOrderBillingStatus | SEPM_I_SalesOrder | SalesOrderBillingStatus | SO Confirmation | |
| SalesOrderDeliveryStatus | SEPM_I_SalesOrder | SalesOrderDeliveryStatus | SO Ordering | |
| SalesOrderOverallStatus | SEPM_I_SalesOrder | SalesOrderOverallStatus | Overall Sts | |
| Opportunity | SEPM_I_SalesOrder | Opportunity | Opportunity ID | |
| SalesOrderPaymentMethod | SEPM_I_SalesOrder | SalesOrderPaymentMethod | Pymt Meth. | |
| SalesOrderPaymentTerms | SEPM_I_SalesOrder | SalesOrderPaymentTerms | Terms of Paymnt | |
| BillToParty | ||||
| BillToPartyRole | BILLTOPARTY | PartyRole | ||
| ShipToParty | ||||
| ShipToPartyRole | SHIPTOPARTY | PartyRole | ||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _Customer | _Customer | |||
| _CustomerV2 | _CustomerV2 | |||
| _Text | _Text | |||
| _CustomerContact | _CustomerContact | |||
| _LifeCycleStatus | SEPM_I_SalesOrder | _LifeCycleStatus | ||
| _BillingStatus | SEPM_I_SalesOrder | _BillingStatus | ||
| _DeliveryStatus | SEPM_I_SalesOrder | _DeliveryStatus | ||
| _OverallStatus | SEPM_I_SalesOrder | _OverallStatus | ||
| _PaymentMethod | SEPM_I_SalesOrder | _PaymentMethod | ||
| _PaymentTerms | SEPM_I_SalesOrder | _PaymentTerms | ||
| _TransactionCurrency | SEPM_I_SalesOrder | _TransactionCurrency | ||
| _BillToParty | _BillToParty | |||
| _BillToPartyRole | _BillToPartyRole | |||
| _ShipToParty | _ShipToParty | |||
| _ShipToPartyRole | _ShipToPartyRole | |||
| _ItemV2 | _ItemV2 | |||
| _Item | _Item |
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 SEPM_I_SalesOrder_E.
-- 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: SEPM_ISOE
CREATE VIEW SEPM_I_SalesOrder_E AS
SELECT
SO.SalesOrder AS SalesOrder,
cast ( CREATEDBY.UserID as sepm_created_by_user preserving type ) AS CreatedByUser,
SO.CreationDateTime AS CreationDateTime,
cast( CHANGEDBY.UserID as sepm_last_chg_by_user preserving type ) AS LastChangedByUser,
SO.LastChangedDateTime AS LastChangedDateTime,
SO.IsCreatedByBusinessPartner AS IsCreatedByBusinessPartner,
SO.IsLastChangedByBusinessPartner AS IsLastChangedByBusinessPartner,
cast ( BP.BusinessPartner as snwd_customer_id preserving type ) AS Customer,
cast( CP.ContactPerson as sepm_customer_contact preserving type ) AS CustomerContact,
SO.TransactionCurrency AS TransactionCurrency,
SO.GrossAmountInTransacCurrency AS GrossAmountInTransacCurrency,
SO.NetAmountInTransactionCurrency AS NetAmountInTransactionCurrency,
SO.TaxAmountInTransactionCurrency AS TaxAmountInTransactionCurrency,
SO.SalesOrderLifeCycleStatus AS SalesOrderLifeCycleStatus,
SO.SalesOrderBillingStatus AS SalesOrderBillingStatus,
SO.SalesOrderDeliveryStatus AS SalesOrderDeliveryStatus,
SO.SalesOrderOverallStatus AS SalesOrderOverallStatus,
SO.Opportunity AS Opportunity,
SO.SalesOrderPaymentMethod AS SalesOrderPaymentMethod,
SO.SalesOrderPaymentTerms AS SalesOrderPaymentTerms,
cast ( BILLTOPARTY.Party as sepm_bill_to_party preserving type ) AS BillToParty,
BILLTOPARTY.PartyRole AS BillToPartyRole,
cast (SHIPTOPARTY.Party as sepm_ship_to_party preserving type ) AS ShipToParty,
SHIPTOPARTY.PartyRole AS ShipToPartyRole,
SO._LifeCycleStatus AS _LifeCycleStatus,
SO._BillingStatus AS _BillingStatus,
SO._DeliveryStatus AS _DeliveryStatus,
SO._OverallStatus AS _OverallStatus,
SO._PaymentMethod AS _PaymentMethod,
SO._PaymentTerms AS _PaymentTerms,
SO._TransactionCurrency AS _TransactionCurrency
FROM SEPM_I_SalesOrder AS SO
LEFT OUTER JOIN SEPM_I_SalesOrderText_E AS _Text ON SalesOrder = _Text.SalesOrder -- association [0..*]
LEFT OUTER JOIN SEPM_I_BusinessPartner_E AS _Customer ON Customer = _Customer.BusinessPartner -- association [0..1]
LEFT OUTER JOIN SEPM_I_CUSTOMER_E AS _CustomerV2 ON Customer = _CustomerV2.Customer -- association [0..1]
LEFT OUTER JOIN SEPM_I_SalesOrderItem_E AS _Item ON SalesOrder = _Item.SalesOrder -- association [0..*]
LEFT OUTER JOIN SEPM_I_SalesOrderItem_E_V2 AS _ItemV2 ON SalesOrder = _ItemV2.SalesOrder -- association [0..*]
LEFT OUTER JOIN SEPM_I_User_E AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN SEPM_I_User_E AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN SEPM_E_SalesOrder AS _Extension ON SO.salesorderuuid = _Extension.SalesOrderUUID -- association [1..1]
LEFT OUTER JOIN SEPM_I_ContactPerson_E AS _CustomerContact ON CustomerContact = _CustomerContact.ContactPerson AND Customer = _CustomerContact.BusinessPartner -- association [0..1]
LEFT OUTER JOIN SEPM_I_Party_E AS _BillToParty ON BillToParty = _BillToParty.Party -- association [0..1]
LEFT OUTER JOIN SEPM_I_PartyRole AS _BillToPartyRole ON BillToPartyRole = _BillToPartyRole.PartyRole -- association [0..1]
LEFT OUTER JOIN SEPM_I_Party_E AS _ShipToParty ON ShipToParty = _ShipToParty.Party -- association [0..1]
LEFT OUTER JOIN SEPM_I_PartyRole AS _ShipToPartyRole ON ShipToPartyRole = _ShipToPartyRole.PartyRole -- association [0..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA