SEPMRA_C_SalesOrderTP
Sales Order
SEPMRA_C_SalesOrderTP is a CDS View that provides data about "Sales Order" in SAP S/4HANA. It reads from 1 data source (SEPMRA_I_SalesOrderTP) and exposes 29 fields with key field SalesOrder. It has 11 associations to related views. Part of development package S_ODATA_EPMRA_SO_MAN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| SEPMRA_I_SalesOrderTP | SalesOrder | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | SEPMRA_C_SalesOrderItemTP | _SalesOrderItem | $projection.SalesOrder = _SalesOrderItem.SalesOrder -- FK |
| [0..1] | SEPMRA_C_SalesOrderCustomer | _Customer | $projection.SoldToParty = _Customer.Customer |
| [0..1] | SEPMRA_C_SalesOrderParty | _BillToParty | $projection.BillToParty = _BillToParty.Party |
| [0..1] | SEPMRA_C_SalesOrderParty | _ShipToParty | $projection.ShipToParty = _ShipToParty.Party |
| [0..1] | SEPMRA_C_SalesOrderStatus | _OverallStatus | $projection.SalesOrderOverallStatus = _OverallStatus.SalesOrderOverallStatus |
| [0..1] | SEPMRA_C_SalesOrderReviser | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..1] | SEPMRA_C_SalesOrderReviser | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | SEPMRA_C_SalesOrderCustContact | _CustomerContact | $projection.CustomerContact = _CustomerContact.ContactPerson |
| [0..1] | SEPMRA_C_SalesOrderPaymentTerm | _PaymentTerms | $projection.SalesOrderPaymentTerms = _PaymentTerms.SalesOrderPaymentTerms |
| [0..1] | SEPMRA_C_SalesOrderPaymentMeth | _PaymentMethod | $projection.SalesOrderPaymentMethod = _PaymentMethod.SalesOrderPaymentMethod -- for filtering |
| [0..1] | SEPMRA_I_SalesOrderAge | _Age | $projection.SalesOrder = _Age.SalesOrder |
Annotations (20)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SEPMRACSOTP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Sales Order | view | |
| Metadata.allowExtensions | true | view | |
| Search.searchable | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.deleteEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.representativeKey | SalesOrder | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.transactionalProcessingUnitRoot | true | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Consumption.semanticObject | EPMSalesOrder | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | SEPMRA_I_SalesOrderTP | SalesOrder | SD Document |
| CustomerContact | SEPMRA_I_SalesOrderTP | CustomerContact | ||
| SoldToParty | SEPMRA_I_SalesOrderTP | SoldToParty | Sold-to Party | |
| BillToParty | SEPMRA_I_SalesOrderTP | BillToParty | Inv. Recipient | |
| ShipToParty | SEPMRA_I_SalesOrderTP | ShipToParty | Ship-To Party (obsolete) | |
| CreatedByUser | SEPMRA_I_SalesOrderTP | CreatedByUser | User Name | |
| CreationDateTime | SEPMRA_I_SalesOrderTP | CreationDateTime | Timestamp | |
| CreationDate | SEPMRA_I_SalesOrderTP | CreationDate | Time Stamp | |
| LastChangedByUser | SEPMRA_I_SalesOrderTP | LastChangedByUser | User Name | |
| LastChangedDateTime | SEPMRA_I_SalesOrderTP | LastChangedDateTime | Time Stamp | |
| LastChangedDate | SEPMRA_I_SalesOrderTP | LastChangedDate | Created On | |
| NetAmountInTransactionCurrency | SEPMRA_I_SalesOrderTP | NetAmountInTransactionCurrency | ||
| TransactionCurrency | SEPMRA_I_SalesOrderTP | TransactionCurrency | Transaction Currency | |
| Quantity | SEPMRA_I_SalesOrderTP | Quantity | Value | |
| QuantityUnit | ||||
| SalesOrderOverallStatus | SEPMRA_I_SalesOrderTP | SalesOrderOverallStatus | ||
| SalesOrderPaymentMethod | SEPMRA_I_SalesOrderTP | SalesOrderPaymentMethod | ||
| SalesOrderPaymentTerms | SEPMRA_I_SalesOrderTP | SalesOrderPaymentTerms | ||
| Composition_SalesOrderItem | ||||
| _Customer | _Customer | |||
| _CustomerContact | _CustomerContact | |||
| _BillToParty | _BillToParty | |||
| _ShipToParty | _ShipToParty | |||
| _PaymentMethod | _PaymentMethod | |||
| _PaymentTerms | _PaymentTerms | |||
| _OverallStatus | _OverallStatus | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _TransactionCurrency | _TransactionCurrency |
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 SEPMRA_C_SalesOrderTP.
-- 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.
CREATE VIEW SEPMRA_C_SalesOrderTP AS
SELECT
SalesOrder.SalesOrder AS SalesOrder,
SalesOrder.CustomerContact AS CustomerContact,
SalesOrder.SoldToParty AS SoldToParty,
SalesOrder.BillToParty AS BillToParty,
SalesOrder.ShipToParty AS ShipToParty,
SalesOrder.CreatedByUser AS CreatedByUser,
SalesOrder.CreationDateTime AS CreationDateTime,
SalesOrder.CreationDate AS CreationDate,
SalesOrder.LastChangedByUser AS LastChangedByUser,
SalesOrder.LastChangedDateTime AS LastChangedDateTime,
SalesOrder.LastChangedDate AS LastChangedDate,
SalesOrder.NetAmountInTransactionCurrency AS NetAmountInTransactionCurrency,
SalesOrder.TransactionCurrency AS TransactionCurrency,
SalesOrder.Quantity AS Quantity,
SalesOrder.SalesOrderOverallStatus AS SalesOrderOverallStatus,
SalesOrder.SalesOrderPaymentMethod AS SalesOrderPaymentMethod,
SalesOrder.SalesOrderPaymentTerms AS SalesOrderPaymentTerms
FROM SEPMRA_I_SalesOrderTP AS SalesOrder
LEFT OUTER JOIN SEPMRA_C_SalesOrderItemTP AS _SalesOrderItem ON SalesOrder = _SalesOrderItem.SalesOrder -- association [0..*]
LEFT OUTER JOIN SEPMRA_C_SalesOrderCustomer AS _Customer ON SoldToParty = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN SEPMRA_C_SalesOrderParty AS _BillToParty ON BillToParty = _BillToParty.Party -- association [0..1]
LEFT OUTER JOIN SEPMRA_C_SalesOrderParty AS _ShipToParty ON ShipToParty = _ShipToParty.Party -- association [0..1]
LEFT OUTER JOIN SEPMRA_C_SalesOrderStatus AS _OverallStatus ON SalesOrderOverallStatus = _OverallStatus.SalesOrderOverallStatus -- association [0..1]
LEFT OUTER JOIN SEPMRA_C_SalesOrderReviser AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN SEPMRA_C_SalesOrderReviser AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN SEPMRA_C_SalesOrderCustContact AS _CustomerContact ON CustomerContact = _CustomerContact.ContactPerson -- association [0..1]
LEFT OUTER JOIN SEPMRA_C_SalesOrderPaymentTerm AS _PaymentTerms ON SalesOrderPaymentTerms = _PaymentTerms.SalesOrderPaymentTerms -- association [0..1]
LEFT OUTER JOIN SEPMRA_C_SalesOrderPaymentMeth AS _PaymentMethod ON SalesOrderPaymentMethod = _PaymentMethod.SalesOrderPaymentMethod -- association [0..1]
LEFT OUTER JOIN SEPMRA_I_SalesOrderAge AS _Age ON SalesOrder = _Age.SalesOrder -- 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