P_APFutureAccountsPay1
Accounts Payable. Future Accounts Payable
P_APFutureAccountsPay1 is a Composite CDS View that provides data about "Accounts Payable. Future Accounts Payable" in SAP S/4HANA. It reads from 2 data sources (I_ReceivablesPayablesItem, P_APFutureAccountsPay0) and exposes 43 fields. Part of development package FINS_FIS_AP_APPS.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ReceivablesPayablesItem | I_ReceivablesPayablesItem | union_all |
| P_APFutureAccountsPay0 | P_APFutureAccountsPay0 | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sydate |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA