I_PaytRequisitionLineItem
Query Invoice/Down payment request
I_PaytRequisitionLineItem is a Composite CDS View that provides data about "Query Invoice/Down payment request" in SAP S/4HANA. It reads from 1 data source (P_PayReqnLineItems) and exposes 55 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PayReqnLineItems | DocItem | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Currency | _TransactionCurrency | $projection.TransactionCurrency = _TransactionCurrency.Currency |
| [0..1] | I_SpecialGLCodeText | _SpecialGLCodeText | $projection.FinancialAccountType = _SpecialGLCodeText.FinancialAccountType and $projection.SpecialGLCode = _SpecialGLCodeText.SpecialGLCode and _SpecialGLCodeText.Language = $session.system_language |
| [0..1] | I_Supplier | _Supplier | DocItem.Supplier = _Supplier.Supplier |
| [0..*] | I_ProfitCenterText | _ProfitCenterText | $projection.ControllingArea = _ProfitCenterText.ControllingArea and $projection.ProfitCenter = _ProfitCenterText.ProfitCenter |
| [0..*] | I_CostCenterText | _CostCenterText | $projection.ControllingArea = _CostCenterText.ControllingArea and $projection.CostCenter = _CostCenterText.CostCenter |
| [0..*] | I_PaymentMethodText | _PaymentMethodText | $projection.Country = _PaymentMethodText.Country and $projection.PaymentMethod = _PaymentMethodText.PaymentMethod |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPAYTREQNLINEITM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Query Invoice/Down payment request | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_PayReqnLineItems | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | P_PayReqnLineItems | AccountingDocument | Journal Entry |
| KEY | FiscalYear | P_PayReqnLineItems | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocumentItem | P_PayReqnLineItems | AccountingDocumentItem | Posting View Item |
| AccountingDocumentCategory | AccountingDocumentCategory | Journal Entry Category | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| NetDueDate | NetDueDate | Net Due Date | ||
| ItemType | ItemType | Object Type | ||
| TransactionCurrency | P_PayReqnLineItems | TransactionCurrency | Transaction Currency | |
| AmountInTransactionCurrency | P_PayReqnLineItems | AmountInTransactionCurrency | Pt Crcy Amt | |
| PaymentRequestAmountInPaytCrcy | TotalAmount | PaymentRequestAmountInPaytCrcy | ||
| curr232endasRemainingOpenAmtInDspCrcy | ||||
| Supplier | Supplier | Supplier | ||
| SupplierBankType | SupplierBankType | Partner Bank Type | ||
| SupplierIsOneTimeAccount | ||||
| NetDueArrearsDays | NetDueArrearsDays | |||
| ClearingStatus | ClearingStatus | Clearing status | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| SpecialGLCode | SpecialGLCode | Special G/L Ind | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| PaymentIsBlockedForSupplier | _Supplier | PaymentIsBlockedForSupplier | Payment block | |
| 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 | WBSElementExternalID | WBS Element External ID | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| BranchCode | BranchCode | Branch Code | ||
| DocumentItemText | DocumentItemText | Text | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| PaymentBlockingReason | PaymentBlockingReason | Pmnt block | ||
| Reference1IDByBusinessPartner | Reference1IDByBusinessPartner | Reference Key 1 | ||
| Reference2IDByBusinessPartner | Reference2IDByBusinessPartner | Reference Key 2 | ||
| Reference3IDByBusinessPartner | Reference3IDByBusinessPartner | Reference Key 3 | ||
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| BPSupplierName | _Supplier | BPSupplierName | Supplier Name | |
| Country | ||||
| AccountingDocCreatedByUser | _JournalEntry | AccountingDocCreatedByUser | User which created overhead document | |
| _TransactionCurrency | _TransactionCurrency | |||
| _JournalEntry | _JournalEntry | |||
| _ProfitCenterText | _ProfitCenterText | |||
| _CostCenterText | _CostCenterText | |||
| _Supplier | _Supplier | |||
| _SpecialGLCodeText | _SpecialGLCodeText | |||
| _PaymentMethodText | _PaymentMethodText |
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 I_PaytRequisitionLineItem.
-- 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: IPAYTREQNLINEITM
CREATE VIEW I_PaytRequisitionLineItem AS
SELECT
DocItem.CompanyCode AS CompanyCode,
DocItem.AccountingDocument AS AccountingDocument,
DocItem.FiscalYear AS FiscalYear,
DocItem.AccountingDocumentItem AS AccountingDocumentItem,
AccountingDocumentCategory,
FinancialAccountType,
NetDueDate,
ItemType,
DocItem.TransactionCurrency AS TransactionCurrency,
DocItem.AmountInTransactionCurrency AS AmountInTransactionCurrency,
TotalAmount.PaymentRequestAmountInPaytCrcy AS PaymentRequestAmountInPaytCrcy,
case when ( DocItem.ClearingAccountingDocument <> '' and DocItem.ClearingIsReversed = '' ) then cast( ('0') as abap.curr( 23,2)) when TotalAmount.PaidAmountInPaytCurrency is null then DocItem.AmountInTransactionCurrency else cast( (DocItem.AmountInTransactionCurrency + TotalAmount.PaidAmountInPaytCurrency) as abap.curr( 23,2)) end as RemainingOpenAmtInDspCrcy AS curr232endasRemainingOpenAmtInDspCrcy,
Supplier,
SupplierBankType,
cast( _Supplier.IsOneTimeAccount as farp_xcpdk ) AS SupplierIsOneTimeAccount,
NetDueArrearsDays,
ClearingStatus,
DocumentDate,
PostingDate,
SpecialGLCode,
PaymentMethod,
_Supplier.PaymentIsBlockedForSupplier AS PaymentIsBlockedForSupplier,
CostCenter,
PurchasingDocument,
PurchasingDocumentItem,
SalesDocument,
SalesDocumentItem,
CashDiscount1DueDate,
CashDiscount1Percent,
CashDiscount1Days,
CashDiscount2Percent,
CashDiscount2Days,
DueCalculationBaseDate,
WBSElementInternalID,
WBSElementExternalID,
ControllingArea,
ProfitCenter,
BranchCode,
DocumentItemText,
AssignmentReference,
PaymentBlockingReason,
Reference1IDByBusinessPartner,
Reference2IDByBusinessPartner,
Reference3IDByBusinessPartner,
_Supplier.SupplierName AS SupplierName,
_Supplier.BPSupplierName AS BPSupplierName,
_JournalEntry._CompanyCode.Country AS Country,
_JournalEntry.AccountingDocCreatedByUser AS AccountingDocCreatedByUser
FROM P_PayReqnLineItems AS DocItem
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_SpecialGLCodeText AS _SpecialGLCodeText ON FinancialAccountType = _SpecialGLCodeText.FinancialAccountType AND SpecialGLCode = _SpecialGLCodeText.SpecialGLCode AND _SpecialGLCodeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON DocItem.Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON ControllingArea = _ProfitCenterText.ControllingArea AND ProfitCenter = _ProfitCenterText.ProfitCenter -- association [0..*]
LEFT OUTER JOIN I_CostCenterText AS _CostCenterText ON ControllingArea = _CostCenterText.ControllingArea AND CostCenter = _CostCenterText.CostCenter -- association [0..*]
LEFT OUTER JOIN I_PaymentMethodText AS _PaymentMethodText ON Country = _PaymentMethodText.Country AND PaymentMethod = _PaymentMethodText.PaymentMethod -- association [0..*]
;
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