SEPMRA_C_GR_PurchaseOrder

DDL: SEPMRA_C_GR_PURCHASEORDER Type: view

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)

SourceAliasJoin Type
SEPMRA_I_PurchaseOrderWD PO from

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;