REPM_OpenPurOrderC

DDL: REPM_OPENPURORDERC SQL: REPM_OPENDAYSC Type: view

Open Days Cube View

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

Data Sources (1)

SourceAliasJoin Type
REPM_OpenPurOrderC1 REPM_OpenPurOrderC1 from

Parameters (2)

NameTypeDefault
P_KeyDate sydate
hidden true

Annotations (5)

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

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder REPM_OpenPurOrderC1 PurchaseOrder Purchasing Document
CompanyName REPM_OpenPurOrderC1 CompanyName Text
CreationDate REPM_OpenPurOrderC1 CreationDate Time Stamp
LastChangedDate REPM_OpenPurOrderC1 LastChangedDate Created On
datsasOpenDays
TransactionCurrency REPM_OpenPurOrderC1 TransactionCurrency Transaction Currency
GrossAmountInTransacCurrency REPM_OpenPurOrderC1 GrossAmountInTransacCurrency
OverallStatus REPM_OpenPurOrderC1 OverallStatus Status Criticality

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

CREATE VIEW REPM_OpenPurOrderC AS
SELECT
  REPM_OpenPurOrderC1.PurchaseOrder AS PurchaseOrder,
  REPM_OpenPurOrderC1.CompanyName AS CompanyName,
  REPM_OpenPurOrderC1.CreationDate AS CreationDate,
  REPM_OpenPurOrderC1.LastChangedDate AS LastChangedDate,
  dats_days_between( cast( REPM_OpenPurOrderC1.CreationDate as abap.dats ), cast( REPM_OpenPurOrderC1.LastChangedDate as abap.dats ) ) as OpenDays AS datsasOpenDays,
  REPM_OpenPurOrderC1.TransactionCurrency AS TransactionCurrency,
  REPM_OpenPurOrderC1.GrossAmountInTransacCurrency AS GrossAmountInTransacCurrency,
  REPM_OpenPurOrderC1.OverallStatus AS OverallStatus
FROM REPM_OpenPurOrderC1
;