REPM_ClosePurOrderQ

DDL: REPM_CLOSEPURORDERQ SQL: REPM_CLOSEQ Type: view

Closed Purchase Order Query View

REPM_ClosePurOrderQ is a CDS View that provides data about "Closed Purchase Order Query View" in SAP S/4HANA. It reads from 1 data source (REPM_ClosePurOrderC) and exposes 4 fields.

Data Sources (1)

SourceAliasJoin Type
REPM_ClosePurOrderC REPM_ClosePurOrderC from

Parameters (2)

NameTypeDefault
P_KeyDate sydate
hidden true

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName REPM_CLOSEQ view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
Analytics.query true view
EndUserText.label Closed Purchase Order Query View view
OData.publish true view

Fields (4)

KeyFieldSource TableSource FieldDescription
OverallStatus REPM_ClosePurOrderC OverallStatus Status Criticality
GrossAmntelse0endasCloseGA Closed Purchase Gross Amount
GrossAmntelse0endasOpenGA Open Purchase Gross Amount
CompanyName REPM_ClosePurOrderC CompanyName CompanyName

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

CREATE VIEW REPM_ClosePurOrderQ AS
SELECT
  REPM_ClosePurOrderC.OverallStatus AS OverallStatus,
  case when REPM_ClosePurOrderC.OverallStatus = 'D' or REPM_ClosePurOrderC.OverallStatus = 'I' then REPM_ClosePurOrderC.GrossAmnt else 0 end as CloseGA AS GrossAmntelse0endasCloseGA,
  case when REPM_ClosePurOrderC.OverallStatus = 'P' then REPM_ClosePurOrderC.GrossAmnt else 0 end as OpenGA AS GrossAmntelse0endasOpenGA,
  REPM_ClosePurOrderC.CompanyName AS CompanyName
FROM REPM_ClosePurOrderC
;