REPM_PurchaseOrderC

DDL: REPM_PURCHASEORDERC SQL: REPM_PurchaseO Type: view

Purchase Order Cube View

REPM_PurchaseOrderC is a CDS View of category Cube that provides data about "Purchase Order Cube View" in SAP S/4HANA. It reads from 1 data source (SEPM_I_PurchaseOrder_E) and exposes 7 fields with key field PurchaseOrder.

Data Sources (1)

SourceAliasJoin Type
SEPM_I_PurchaseOrder_E PO from

Parameters (2)

NameTypeDefault
P_KeyDate sydate
hidden true

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName REPM_PurchaseO view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #CUBE view
EndUserText.label Purchase Order Cube View view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder SEPM_I_PurchaseOrder_E PurchaseOrder Purchasing Document
GrossAmountInTransacCurrency SEPM_I_PurchaseOrder_E GrossAmountInTransacCurrency
P_KeyDateasAmountInTargetCurrency Gross Amout in EUR
BusinessPartner
TransactionCurrency SEPM_I_PurchaseOrder_E TransactionCurrency Transaction Currency
CompanyName
po_counter 1 PurchaseOrder

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 REPM_PurchaseOrderC.
-- 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: REPM_PurchaseO
-- Parameters: P_KeyDate : sydate, hidden : true

CREATE VIEW REPM_PurchaseOrderC AS
SELECT
  PO.PurchaseOrder AS PurchaseOrder,
  PO.GrossAmountInTransacCurrency AS GrossAmountInTransacCurrency,
  currency_conversion ( amount => PO.GrossAmountInTransacCurrency, source_currency => PO.TransactionCurrency, target_currency => cast('EUR'as abap.cuky), client => cast( '000' as abap.clnt ), exchange_rate_type => 'M', exchange_rate_date => $parameters.P_KeyDate ) as AmountInTargetCurrency AS P_KeyDateasAmountInTargetCurrency,
  PO._Supplier.BusinessPartner AS BusinessPartner,
  PO.TransactionCurrency AS TransactionCurrency,
  PO._Supplier.CompanyName AS CompanyName,
  1 AS po_counter
FROM SEPM_I_PurchaseOrder_E AS PO
;