P_PayReqnLineItems
Private view for pay reqn line items
P_PayReqnLineItems is a Composite CDS View that provides data about "Private view for pay reqn line items" in SAP S/4HANA. It reads from 3 data sources (I_Customer, I_OperationalAcctgDocItem, I_OperationalAcctgDocItem) and exposes 94 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, AccountingDocument. It has 2 associations to related views. Part of development package GLO_FIN_PAY_REQN_CN.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_Customer | Customer | inner |
| I_OperationalAcctgDocItem | I_OperationalAcctgDocItem | from |
| I_OperationalAcctgDocItem | I_OperationalAcctgDocItem | union_all |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_JournalEntry | _JournalEntry | $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument |
| [0..1] | I_Currency | _TransactionCurrency | $projection.TransactionCurrency = _TransactionCurrency.Currency |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPAYREQLINEITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (94)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocumentItem | AccountingDocumentItem | Posting View Item | |
| AccountingDocumentCategory | AccountingDocumentCategory | Journal Entry Category | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| NetDueDate | NetDueDate | Net Due Date | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| AbsAmountInTransactionCurrency | ||||
| Supplier | Supplier | Supplier | ||
| SupplierBankType | BPBankAccountInternalID | BP Bank Account | ||
| TodayWeekOfYear | ||||
| DueDateWeekOfYear | ||||
| NetDueArrearsDays | Net Due Date | |||
| ClearingAccountingDocument | ClearingAccountingDocument | Clearing Journal Entry | ||
| ClearingIsReversed | ClearingIsReversed | Clearing Is Reversed | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| SpecialGLCode | SpecialGLCode | Special G/L Ind | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| CostCenter | CostCenter | Cost Center | ||
| PurchasingDocument | PurchasingDocument | Purchasing Document | ||
| PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item | ||
| SalesDocument | SalesDocument | SD Document | ||
| SalesDocumentItem | SalesDocumentItem | Sales Document Item | ||
| CashDiscount1DueDate | CashDiscount1DueDate | Cash Discount 1 | ||
| CashDiscount1Percent | CashDiscount1Percent | Disc. Percent 1 | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Percent | CashDiscount2Percent | Disc. Percent 2 | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| DueCalculationBaseDate | DueCalculationBaseDate | Due Calculation Base Date | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSElementExternalID | _WBSElementBasicData | WBSElementExternalID | WBS Element External ID | |
| ControllingArea | ControllingArea | Controlling Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| BranchCode | BranchCode | Branch Code | ||
| DocumentItemText | DocumentItemText | Text | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| ReferenceDocumentType | _JournalEntry | ReferenceDocumentType | Reference Document Type | |
| OriginalReferenceDocument | _JournalEntry | OriginalReferenceDocument | Reference Key | |
| PaymentBlockingReason | I_OperationalAcctgDocItem | PaymentBlockingReason | Pmnt block | |
| Reference1IDByBusinessPartner | Reference1IDByBusinessPartner | Reference Key 1 | ||
| Reference2IDByBusinessPartner | Reference2IDByBusinessPartner | Reference Key 2 | ||
| Reference3IDByBusinessPartner | Reference3IDByBusinessPartner | Reference Key 3 | ||
| _JournalEntry | _JournalEntry | |||
| CompanyCodeasCompanyCode | ||||
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocumentItem | AccountingDocumentItem | Posting View Item | |
| AccountingDocumentCategory | AccountingDocumentCategory | Journal Entry Category | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| NetDueDate | NetDueDate | Net Due Date | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| AbsAmountInTransactionCurrency | ||||
| Supplier | I_Customer | Supplier | Supplier | |
| SupplierBankType | I_OperationalAcctgDocItem | BPBankAccountInternalID | BP Bank Account | |
| TodayWeekOfYear | ||||
| DueDateWeekOfYear | ||||
| NetDueArrearsDays | Net Due Date | |||
| ClearingAccountingDocument | ClearingAccountingDocument | Clearing Journal Entry | ||
| ClearingIsReversed | ClearingIsReversed | Clearing Is Reversed | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| SpecialGLCode | SpecialGLCode | Special G/L Ind | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| CostCenter | CostCenter | Cost Center | ||
| PurchasingDocument | PurchasingDocument | Purchasing Document | ||
| PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item | ||
| SalesDocument | SalesDocument | SD Document | ||
| SalesDocumentItem | SalesDocumentItem | Sales Document Item | ||
| CashDiscount1DueDate | CashDiscount1DueDate | Cash Discount 1 | ||
| CashDiscount1Percent | CashDiscount1Percent | Disc. Percent 1 | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Percent | CashDiscount2Percent | Disc. Percent 2 | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| DueCalculationBaseDate | DueCalculationBaseDate | Due Calculation Base Date | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSElementExternalID | _WBSElementBasicData | WBSElementExternalID | WBS Element External ID | |
| ControllingArea | ControllingArea | Controlling Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| BranchCode | BranchCode | Branch Code | ||
| DocumentItemText | DocumentItemText | Text | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| ReferenceDocumentType | _JournalEntry | ReferenceDocumentType | Reference Document Type | |
| OriginalReferenceDocument | _JournalEntry | OriginalReferenceDocument | Reference Key | |
| PaymentBlockingReason | I_OperationalAcctgDocItem | PaymentBlockingReason | Pmnt block | |
| Reference1IDByBusinessPartner | Reference1IDByBusinessPartner | Reference Key 1 | ||
| Reference2IDByBusinessPartner | Reference2IDByBusinessPartner | Reference Key 2 | ||
| Reference3IDByBusinessPartner | Reference3IDByBusinessPartner | Reference Key 3 | ||
| ItemType | ||||
| _JournalEntry | _JournalEntry | |||
| _TransactionCurrency | _TransactionCurrency |
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_PayReqnLineItems.
-- 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: PPAYREQLINEITEM
CREATE VIEW P_PayReqnLineItems AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
AccountingDocumentItem,
AccountingDocumentCategory,
FinancialAccountType,
NetDueDate,
TransactionCurrency,
AmountInTransactionCurrency,
abs(AmountInTransactionCurrency) AS AbsAmountInTransactionCurrency,
Supplier,
BPBankAccountInternalID AS SupplierBankType,
div( dats_days_between( cast( concat( FiscalYear , '0101' ) as abap.dats ), cast($session.system_date as abap.dats) ), 7) AS TodayWeekOfYear,
div( dats_days_between( cast( concat( FiscalYear , '0101' ) as abap.dats ), NetDueDate ), 7) AS DueDateWeekOfYear,
dats_days_between(cast($session.system_date as abap.dats), cast(NetDueDate as abap.dats)) AS NetDueArrearsDays,
ClearingAccountingDocument,
ClearingIsReversed,
DocumentDate,
PostingDate,
SpecialGLCode,
PaymentMethod,
CostCenter,
PurchasingDocument,
PurchasingDocumentItem,
SalesDocument,
SalesDocumentItem,
CashDiscount1DueDate,
CashDiscount1Percent,
CashDiscount1Days,
CashDiscount2Percent,
CashDiscount2Days,
DueCalculationBaseDate,
WBSElementInternalID,
_WBSElementBasicData.WBSElementExternalID AS WBSElementExternalID,
ControllingArea,
ProfitCenter,
BranchCode,
DocumentItemText,
AssignmentReference,
_JournalEntry.ReferenceDocumentType AS ReferenceDocumentType,
_JournalEntry.OriginalReferenceDocument AS OriginalReferenceDocument,
I_OperationalAcctgDocItem.PaymentBlockingReason AS PaymentBlockingReason,
Reference1IDByBusinessPartner,
Reference2IDByBusinessPartner,
Reference3IDByBusinessPartner,
'M' AS ItemType
FROM I_OperationalAcctgDocItem
INNER JOIN I_Customer AS Customer ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND FiscalYear = _JournalEntry.FiscalYear AND AccountingDocument = _JournalEntry.AccountingDocument -- association [1..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency -- association [0..1]
-- UNION ALL with additional select branch(es): I_OperationalAcctgDocItem
;
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