SEPMRA_C_GR_PurchaseOrder
Purchase Order
SEPMRA_C_GR_PurchaseOrder is a CDS View that provides data about "Purchase Order" in SAP S/4HANA. It reads from 1 data source (SEPMRA_I_PurchaseOrderWD) and exposes 11 fields with key field PurchaseOrder. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| SEPMRA_I_PurchaseOrderWD | PO | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | SEPMRA_C_GR_PurchaseOrderItem | _Items | $projection.PurchaseOrder = _Items.PurchaseOrder -- essentially a reflexive association, but with fewer fields (thus the cardinality is [1..1]). To be used as value help on the 'PurchaseOrder' key field. -- the value help is more selective regarding the status, because only those purchase orders that are really ready for action via this service are returned. |
| [1..1] | SEPMRA_C_GR_PurchaseOrderVH | _PurchaseOrderValueHelp | $projection.PurchaseOrder = _PurchaseOrderValueHelp.PurchaseOrder |
Annotations (21)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SEPMRACGRPO | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Purchase Order | view | |
| Search.searchable | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.draftEnabled | false | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | false | view | |
| ObjectModel.deleteEnabled | false | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| UI.headerInfo.typeName | Purchase Order | view | |
| UI.headerInfo.typeNamePlural | Purchase Orders | view | |
| UI.headerInfo.title.value | SupplierName | view | |
| UI.headerInfo.description.value | PurchaseOrder | view | |
| Consumption.semanticObject | EPMPurchaseOrder | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | SEPMRA_I_PurchaseOrderWD | PurchaseOrder | Purchasing Document |
| GrossAmountInTransacCurrency | SEPMRA_I_PurchaseOrderWD | GrossAmountInTransacCurrency | ||
| TransactionCurrency | SEPMRA_I_PurchaseOrderWD | TransactionCurrency | Transaction Currency | |
| PurchaseOrderOverallStatus | SEPMRA_I_PurchaseOrderWD | PurchaseOrderOverallStatus | ||
| Supplier | SEPMRA_I_PurchaseOrderWD | Supplier | Supplier | |
| SupplierName | ||||
| Associations_Items | ||||
| _PurchaseOrderValueHelp | _PurchaseOrderValueHelp | |||
| _OverallStatus | SEPMRA_I_PurchaseOrderWD | _OverallStatus | ||
| _TransactionCurrency | SEPMRA_I_PurchaseOrderWD | _TransactionCurrency | ||
| _Supplier | SEPMRA_I_PurchaseOrderWD | _Supplier |
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_GR_PurchaseOrder.
-- 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_GR_PurchaseOrder AS
SELECT
PO.PurchaseOrder AS PurchaseOrder,
PO.GrossAmountInTransacCurrency AS GrossAmountInTransacCurrency,
PO.TransactionCurrency AS TransactionCurrency,
PO.PurchaseOrderOverallStatus AS PurchaseOrderOverallStatus,
PO.Supplier AS Supplier,
PO._Supplier.CompanyName AS SupplierName,
PO._OverallStatus AS _OverallStatus,
PO._TransactionCurrency AS _TransactionCurrency,
PO._Supplier AS _Supplier
FROM SEPMRA_I_PurchaseOrderWD AS PO
LEFT OUTER JOIN SEPMRA_C_GR_PurchaseOrderItem AS _Items ON PurchaseOrder = _Items.PurchaseOrder -- association [0..*]
LEFT OUTER JOIN SEPMRA_C_GR_PurchaseOrderVH AS _PurchaseOrderValueHelp ON PurchaseOrder = _PurchaseOrderValueHelp.PurchaseOrder -- association [1..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