REPM_OpenPurOrderC1

DDL: REPM_OPENPURORDERC1 SQL: REPM_OPENDYS1 Type: view

Open Days Dimension View

REPM_OpenPurOrderC1 is a CDS View of category Cube that provides data about "Open Days Dimension View" in SAP S/4HANA. It reads from 1 data source (SEPM_I_PurchaseOrder_E) and exposes 9 fields with key field PurchaseOrder.

Data Sources (1)

SourceAliasJoin Type
SEPM_I_PurchaseOrder_E SEPM_I_PurchaseOrder_E from

Parameters (2)

NameTypeDefault
P_KeyDate sydate
hidden true

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName REPM_OPENDYS1 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #CUBE view
EndUserText.label Open Days Dimension View view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder SEPM_I_PurchaseOrder_E PurchaseOrder Purchasing Document
CompanyName
OverallStatus
GrossAmountInTransacCurrency SEPM_I_PurchaseOrder_E GrossAmountInTransacCurrency
TransactionCurrency SEPM_I_PurchaseOrder_E TransactionCurrency Transaction Currency
TargetCurrency
P_KeyDateasAmountInTargetCurrency Gross Amount in EUR
CreationDate
LastChangedDate

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

CREATE VIEW REPM_OpenPurOrderC1 AS
SELECT
  SEPM_I_PurchaseOrder_E.PurchaseOrder AS PurchaseOrder,
  SEPM_I_PurchaseOrder_E._Supplier.CompanyName AS CompanyName,
  SEPM_I_PurchaseOrder_E._OverallStatus.PurchaseOrderOverallStatus AS OverallStatus,
  SEPM_I_PurchaseOrder_E.GrossAmountInTransacCurrency AS GrossAmountInTransacCurrency,
  SEPM_I_PurchaseOrder_E.TransactionCurrency AS TransactionCurrency,
  cast('EUR'as abap.cuky) AS TargetCurrency,
  currency_conversion ( amount => SEPM_I_PurchaseOrder_E.GrossAmountInTransacCurrency, source_currency => SEPM_I_PurchaseOrder_E.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,
  left(cast( SEPM_I_PurchaseOrder_E.CreationDateTime as abap.char(25)), 8) AS CreationDate,
  left(cast( SEPM_I_PurchaseOrder_E.LastChangedDateTime as abap.char(25)), 8) AS LastChangedDate
FROM SEPM_I_PurchaseOrder_E
;