P_APFlexibleAging9

DDL: P_APFLEXIBLEAGING9 SQL: PAPFLXBLAGING9 Type: view COMPOSITE

P_APFlexibleAging9 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_APFlexibleAging6, P_APFlexibleAging8) and exposes 21 fields.

Data Sources (2)

SourceAliasJoin Type
P_APFlexibleAging6 P_APFlexibleAging6 left_outer
P_APFlexibleAging8 P_APFlexibleAging8 from

Parameters (4)

NameTypeDefault
P_KeyDate abap.dats
P_AgingGridMeasureInDays abap.int4
P_NumberOfAgingGridColumns abap.int4
P_DisplayCurrency abap.cuky

Annotations (6)

NameValueLevelField
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
AbapCatalog.sqlViewName PAPFLXBLAGING9 view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view

Fields (21)

KeyFieldSource TableSource FieldDescription
CompanyCode AgingGrid CompanyCode Receiver Company Code
TransactionCurrency AgingGrid TransactionCurrency Transaction Currency
BusinessArea AgingGrid BusinessArea Business Area
ReconciliationAccount AgingGrid ReconciliationAccount Recon. account
SpecialGLCode AgingGrid SpecialGLCode Special G/L Ind
Supplier AgingGrid Supplier Supplier
PaymentMethod AgingGrid PaymentMethod Pymt Meth.
PaymentTerms AgingGrid PaymentTerms Pyt Terms
AccountingDocumentCategory AgingGrid AccountingDocumentCategory Journal Entry Category
AgingGridColumnSequence AgingGrid AgingGridColumnSequence
AgingGridText AgingGrid AgingGridText
KeyDate AgingGrid KeyDate Maturity Key Date
DisplayCurrency Display Currency
AgingGridMeasureInDays
NumberOfAgingGridColumns
CompanyCodeCurrency AgingData CompanyCodeCurrency Local Currency
Country Country Venue: Ctry/Reg
ChartOfAccounts ChartOfAccounts Node Class
AmountInCompanyCodeCurrency
NumberOfOpenItems
_CompanyCode _CompanyCode

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_APFlexibleAging9.
-- 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: PAPFLXBLAGING9
-- Parameters: P_KeyDate : abap.dats, P_AgingGridMeasureInDays : abap.int4, P_NumberOfAgingGridColumns : abap.int4, P_DisplayCurrency : abap.cuky

CREATE VIEW P_APFlexibleAging9 AS
SELECT
  AgingGrid.CompanyCode AS CompanyCode,
  AgingGrid.TransactionCurrency AS TransactionCurrency,
  AgingGrid.BusinessArea AS BusinessArea,
  AgingGrid.ReconciliationAccount AS ReconciliationAccount,
  AgingGrid.SpecialGLCode AS SpecialGLCode,
  AgingGrid.Supplier AS Supplier,
  AgingGrid.PaymentMethod AS PaymentMethod,
  AgingGrid.PaymentTerms AS PaymentTerms,
  AgingGrid.AccountingDocumentCategory AS AccountingDocumentCategory,
  AgingGrid.AgingGridColumnSequence AS AgingGridColumnSequence,
  AgingGrid.AgingGridText AS AgingGridText,
  AgingGrid.KeyDate AS KeyDate,
  cast(DisplayCurrency as displaycurrency) AS DisplayCurrency,
  cast(AgingGridMeasureInDays as farp_aging_grid_measure ) AS AgingGridMeasureInDays,
  cast(NumberOfAgingGridColumns as farp_number_of_grid_columns) AS NumberOfAgingGridColumns,
  AgingData.CompanyCodeCurrency AS CompanyCodeCurrency,
  Country,
  ChartOfAccounts,
  cast(AgingData.AmountInCompanyCodeCurrency as dmshb_farp) AS AmountInCompanyCodeCurrency,
  cast(AgingData.NumberOfOpenItems as farp_number_of_open_items ) AS NumberOfOpenItems
FROM P_APFlexibleAging8
LEFT OUTER JOIN P_APFlexibleAging6 ON /* join condition not captured in parsed metadata */
;