P_ES_PTRInvoiceItem
Invoice Data for Spain Payment Time Reporting
P_ES_PTRInvoiceItem is a Composite CDS View that provides data about "Invoice Data for Spain Payment Time Reporting" in SAP S/4HANA. It reads from 1 data source (P_ES_PTRClearingDateBoE) and exposes 38 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem. Part of development package GLO_FIN_IS_AUDIT_ES.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_ES_PTRClearingDateBoE | BSEGITEM | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | vdm_v_start_date | |
| P_EndDate | vdm_v_end_date |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_ES_PTRClearingDateBoE | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | P_ES_PTRClearingDateBoE | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | P_ES_PTRClearingDateBoE | AccountingDocument | Journal Entry |
| KEY | AccountingDocumentItem | P_ES_PTRClearingDateBoE | AccountingDocumentItem | Posting View Item |
| AccountingDocumentType | P_ES_PTRClearingDateBoE | AccountingDocumentType | Journal Entry Type | |
| IsUsedInPaymentTransaction | P_ES_PTRClearingDateBoE | IsUsedInPaymentTransaction | Is Used In Payment Transaction | |
| FinancialAccountType | P_ES_PTRClearingDateBoE | FinancialAccountType | Fin. Account Type | |
| Supplier | P_ES_PTRClearingDateBoE | Supplier | Supplier | |
| PostingDate | P_ES_PTRClearingDateBoE | PostingDate | Posting Date for GR | |
| DocumentDate | P_ES_PTRClearingDateBoE | DocumentDate | Journal Entry Date | |
| TaxFulfillmentDate | ||||
| ClearingDate | P_ES_PTRClearingDateBoE | ClearingDate | Clearing Date | |
| FiscalPeriod | P_ES_PTRClearingDateBoE | FiscalPeriod | Tax period | |
| GLAccount | P_ES_PTRClearingDateBoE | GLAccount | General Ledger | |
| DueCalculationBaseDate | P_ES_PTRClearingDateBoE | DueCalculationBaseDate | Due Calculation Base Date | |
| NetDueDate | P_ES_PTRClearingDateBoE | NetDueDate | Net Due Date | |
| PaymentTerms | P_ES_PTRClearingDateBoE | PaymentTerms | Pyt Terms | |
| PaymentBlockingReason | P_ES_PTRClearingDateBoE | PaymentBlockingReason | Pmnt block | |
| PaymentMethod | P_ES_PTRClearingDateBoE | PaymentMethod | Pymt Meth. | |
| FollowOnDocumentType | P_ES_PTRClearingDateBoE | FollowOnDocumentType | Follow-On Document Type | |
| DebitCreditCode | P_ES_PTRClearingDateBoE | DebitCreditCode | Single-Character Flag | |
| SpecialGLCode | P_ES_PTRClearingDateBoE | SpecialGLCode | Special G/L Ind | |
| SpecialGLTransactionType | P_ES_PTRClearingDateBoE | SpecialGLTransactionType | Transact.Type | |
| ClearingJournalEntry | P_ES_PTRClearingDateBoE | ClearingJournalEntry | Clrng doc. | |
| CompanyCodeCurrency | P_ES_PTRClearingDateBoE | CompanyCodeCurrency | Local Currency | |
| AmountInCompanyCodeCurrency | P_ES_PTRClearingDateBoE | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| TransactionCurrency | P_ES_PTRClearingDateBoE | TransactionCurrency | Transaction Currency | |
| AmountInTransactionCurrency | P_ES_PTRClearingDateBoE | AmountInTransactionCurrency | Pt Crcy Amt | |
| _CompanyCode | P_ES_PTRClearingDateBoE | _CompanyCode | ||
| _FiscalYear | P_ES_PTRClearingDateBoE | _FiscalYear | ||
| _JournalEntry | P_ES_PTRClearingDateBoE | _JournalEntry | ||
| _AccountingDocumentType | P_ES_PTRClearingDateBoE | _AccountingDocumentType | ||
| _FiscalPeriod | P_ES_PTRClearingDateBoE | _FiscalPeriod | ||
| _FinancialAccountType | P_ES_PTRClearingDateBoE | _FinancialAccountType | ||
| _GLAccountInCompanyCode | P_ES_PTRClearingDateBoE | _GLAccountInCompanyCode | ||
| _SpecialGLCode | P_ES_PTRClearingDateBoE | _SpecialGLCode | ||
| _CompanyCodeCurrency | P_ES_PTRClearingDateBoE | _CompanyCodeCurrency | ||
| _TransactionCurrency | P_ES_PTRClearingDateBoE | _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_ES_PTRInvoiceItem.
-- 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.
-- Parameters: P_StartDate : vdm_v_start_date, P_EndDate : vdm_v_end_date
CREATE VIEW P_ES_PTRInvoiceItem AS
SELECT
BSEGITEM.CompanyCode AS CompanyCode,
BSEGITEM.FiscalYear AS FiscalYear,
BSEGITEM.AccountingDocument AS AccountingDocument,
BSEGITEM.AccountingDocumentItem AS AccountingDocumentItem,
BSEGITEM.AccountingDocumentType AS AccountingDocumentType,
BSEGITEM.IsUsedInPaymentTransaction AS IsUsedInPaymentTransaction,
BSEGITEM.FinancialAccountType AS FinancialAccountType,
BSEGITEM.Supplier AS Supplier,
BSEGITEM.PostingDate AS PostingDate,
BSEGITEM.DocumentDate AS DocumentDate,
BSEGITEM._JournalEntry.TaxFulfillmentDate AS TaxFulfillmentDate,
BSEGITEM.ClearingDate AS ClearingDate,
BSEGITEM.FiscalPeriod AS FiscalPeriod,
BSEGITEM.GLAccount AS GLAccount,
BSEGITEM.DueCalculationBaseDate AS DueCalculationBaseDate,
BSEGITEM.NetDueDate AS NetDueDate,
BSEGITEM.PaymentTerms AS PaymentTerms,
BSEGITEM.PaymentBlockingReason AS PaymentBlockingReason,
BSEGITEM.PaymentMethod AS PaymentMethod,
BSEGITEM.FollowOnDocumentType AS FollowOnDocumentType,
BSEGITEM.DebitCreditCode AS DebitCreditCode,
BSEGITEM.SpecialGLCode AS SpecialGLCode,
BSEGITEM.SpecialGLTransactionType AS SpecialGLTransactionType,
BSEGITEM.ClearingJournalEntry AS ClearingJournalEntry,
BSEGITEM.CompanyCodeCurrency AS CompanyCodeCurrency,
BSEGITEM.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
BSEGITEM.TransactionCurrency AS TransactionCurrency,
BSEGITEM.AmountInTransactionCurrency AS AmountInTransactionCurrency,
BSEGITEM._CompanyCode AS _CompanyCode,
BSEGITEM._FiscalYear AS _FiscalYear,
BSEGITEM._JournalEntry AS _JournalEntry,
BSEGITEM._AccountingDocumentType AS _AccountingDocumentType,
BSEGITEM._FiscalPeriod AS _FiscalPeriod,
BSEGITEM._FinancialAccountType AS _FinancialAccountType,
BSEGITEM._GLAccountInCompanyCode AS _GLAccountInCompanyCode,
BSEGITEM._SpecialGLCode AS _SpecialGLCode,
BSEGITEM._CompanyCodeCurrency AS _CompanyCodeCurrency,
BSEGITEM._TransactionCurrency AS _TransactionCurrency
FROM P_ES_PTRClearingDateBoE AS BSEGITEM
;
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