P_APFutureAccountsPay1

DDL: P_APFUTUREACCOUNTSPAY1 SQL: PFIAPFUTACCTPAY1 Type: view COMPOSITE

P_APFutureAccountsPay1 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_ReceivablesPayablesItem, P_APFutureAccountsPay0) and exposes 43 fields.

Data Sources (2)

SourceAliasJoin Type
I_ReceivablesPayablesItem I_ReceivablesPayablesItem union_all
P_APFutureAccountsPay0 P_APFutureAccountsPay0 from

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Annotations (6)

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

Fields (43)

KeyFieldSource TableSource FieldDescription
CompanyCode AccountingDocItemWithRef CompanyCode Receiver Company Code
AccountingDocument AccountingDocItemWithRef AccountingDocument Journal Entry
FiscalYear AccountingDocItemWithRef FiscalYear G/L Fiscal Year
AccountingDocumentItem AccountingDocItemWithRef AccountingDocumentItem Posting View Item
CompanyCodeCurrency AccountingDocItemWithRef CompanyCodeCurrency Local Currency
ClearingDate AccountingDocItemWithRef ClearingDate Clearing Date
FinancialAccountType AccountingDocItemWithRef FinancialAccountType Fin. Account Type
DebitCreditCode AccountingDocItemWithRef DebitCreditCode Single-Character Flag
Supplier AccountingDocItemWithRef Supplier Supplier
InvoiceReference AccountingDocItemWithRef InvoiceReference Invoice Reference
InvoiceReferenceFiscalYear AccountingDocItemWithRef InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
InvoiceItemReference AccountingDocItemWithRef InvoiceItemReference Item
FollowOnDocumentType AccountingDocItemWithRef FollowOnDocumentType Follow-On Document Type
PostingDate AccountingDocItemWithRef PostingDate Posting Date for GR
DocumentDate AccountingDocItemWithRef DocumentDate Journal Entry Date
AmountInCompanyCodeCurrency AccountingDocItemWithRef AmountInCompanyCodeCurrency Local Crcy Amt
BusinessArea AccountingDocItemWithRef BusinessArea Business Area
AccountingDocumentCategory AccountingDocItemWithRef AccountingDocumentCategory Journal Entry Category
PaymentBlockingReason AccountingDocItemWithRef PaymentBlockingReason Pmnt block
GLAccount AccountingDocItemWithRef GLAccount General Ledger
SpecialGLCode AccountingDocItemWithRef SpecialGLCode Special G/L Ind
AccountingDocument AccountingDocument Journal Entry
FiscalYear FiscalYear G/L Fiscal Year
AccountingDocumentItem AccountingDocumentItem Posting View Item
CompanyCodeCurrency CompanyCodeCurrency Local Currency
ClearingDate ClearingDate Clearing Date
FinancialAccountType FinancialAccountType Fin. Account Type
DebitCreditCode DebitCreditCode Single-Character Flag
Supplier Creditor Supplier
InvoiceReference InvoiceReference Invoice Reference
InvoiceReferenceFiscalYear InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
InvoiceItemReference InvoiceItemReference Item
FollowOnDocumentType FollowOnDocumentType Follow-On Document Type
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt
BusinessArea BusinessArea Business Area
AccountingDocumentCategory AccountingDocumentCategory Journal Entry Category
PaymentBlockingReason PaymentBlockingReason Pmnt block
GLAccount GLAccount General Ledger
SpecialGLCode SpecialGLCode Special G/L Ind
NetDueDate NetDueDate Net Due Date
NumberOfOpenItems

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_APFutureAccountsPay1.
-- 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: PFIAPFUTACCTPAY1
-- Parameters: P_KeyDate : sydate

CREATE VIEW P_APFutureAccountsPay1 AS
SELECT
  AccountingDocItemWithRef.CompanyCode AS CompanyCode,
  AccountingDocItemWithRef.AccountingDocument AS AccountingDocument,
  AccountingDocItemWithRef.FiscalYear AS FiscalYear,
  AccountingDocItemWithRef.AccountingDocumentItem AS AccountingDocumentItem,
  AccountingDocItemWithRef.CompanyCodeCurrency AS CompanyCodeCurrency,
  AccountingDocItemWithRef.ClearingDate AS ClearingDate,
  AccountingDocItemWithRef.FinancialAccountType AS FinancialAccountType,
  AccountingDocItemWithRef.DebitCreditCode AS DebitCreditCode,
  AccountingDocItemWithRef.Supplier AS Supplier,
  AccountingDocItemWithRef.InvoiceReference AS InvoiceReference,
  AccountingDocItemWithRef.InvoiceReferenceFiscalYear AS InvoiceReferenceFiscalYear,
  AccountingDocItemWithRef.InvoiceItemReference AS InvoiceItemReference,
  AccountingDocItemWithRef.FollowOnDocumentType AS FollowOnDocumentType,
  AccountingDocItemWithRef.PostingDate AS PostingDate,
  AccountingDocItemWithRef.DocumentDate AS DocumentDate,
  AccountingDocItemWithRef.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  AccountingDocItemWithRef.BusinessArea AS BusinessArea,
  AccountingDocItemWithRef.AccountingDocumentCategory AS AccountingDocumentCategory,
  AccountingDocItemWithRef.PaymentBlockingReason AS PaymentBlockingReason,
  AccountingDocItemWithRef.GLAccount AS GLAccount,
  AccountingDocItemWithRef.SpecialGLCode AS SpecialGLCode,
  NetDueDate,
  cast(1 as abap.int4) AS NumberOfOpenItems
FROM P_APFutureAccountsPay0
-- UNION ALL with additional select branch(es): I_ReceivablesPayablesItem
;