P_GLAcctMaxPostgDteBfrKDte

DDL: P_GLACCTMAXPOSTGDTEBFRKDTE SQL: PGRCGAMPDBKD Type: view CONSUMPTION

GL accounts with last posting date

P_GLAcctMaxPostgDteBfrKDte is a Consumption CDS View that provides data about "GL accounts with last posting date" in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItemRawData) and exposes 3 fields with key fields GLAccount, CompanyCode.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountLineItemRawData I_GLAccountLineItemRawData from

Parameters (1)

NameTypeDefault
P_ToKeyDateDays abap.int4

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PGRCGAMPDBKD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label GL accounts with last posting date view
VDM.viewType #CONSUMPTION view
VDM.private true view
AbapCatalog.buffering.status #NOT_ALLOWED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY GLAccount GLAccount General Ledger
KEY CompanyCode CompanyCode Receiver Company Code
LatestPostingDateBeforeKeyDate

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 P_GLAcctMaxPostgDteBfrKDte.
-- 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: PGRCGAMPDBKD
-- Parameters: P_ToKeyDateDays : abap.int4

CREATE VIEW P_GLAcctMaxPostgDteBfrKDte AS
SELECT
  GLAccount,
  CompanyCode,
  max(_JournalEntry.AccountingDocumentCreationDate) AS LatestPostingDateBeforeKeyDate
FROM I_GLAccountLineItemRawData
;