P_MX_JrnlEntrItmInvcCompType
P_MX_JrnlEntrItmInvcCompType is a Consumption CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 99 fields with key fields SourceLedger, Ledger, CompanyCode, AccountingDocument, FiscalYear.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| P_MX_JournalEntryGRHistory2 | GoodsReceiptDetails | inner |
| I_StRpJournalEntryHeaderLog | I_StRpJournalEntryHeaderLog | inner |
| P_MX_JrnlEntrItmInvcDetails | P_MX_JrnlEntrItmInvcDetails | inner |
| P_MX_JrnlEntrItmInvcDetails | P_MX_JrnlEntrItmInvcDetails | union_all |
| P_JrnlEntrAddlClrgInformation | PaidInvoices | from |
| P_JrnlEntrAddlClrgInformation | PaidInvoices | union_all |
Parameters (8)
| Name | Type | Default |
|---|---|---|
| P_Ledger | fins_ledger | |
| P_FiscalYear | fis_gjahr_no_conv | |
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to | |
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id | |
| P_CompanyCode | fis_bukrs |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMXINVCOMP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (99)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | DocumentDetails | SourceLedger | Source Ledger |
| KEY | Ledger | DocumentDetails | Ledger | Ledger |
| KEY | CompanyCode | DocumentDetails | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | DocumentDetails | AccountingDocument | Journal Entry |
| KEY | FiscalYear | DocumentDetails | FiscalYear | Material Document Year |
| StatryRptCategory | StatryRptCategory | Report ID | ||
| StatryRptgEntity | StatryRptgEntity | Reporting Entity | ||
| StatryRptRunID | StatryRptRunID | Report Run ID | ||
| AccountingDocumentItem | DocumentDetails | AccountingDocumentItem | Posting View Item | |
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| AmountInTransactionCurrency | DocumentDetails | AmountInTransactionCurrency | Pt Crcy Amt | |
| TransactionCurrency | DocumentDetails | TransactionCurrency | Transaction Currency | |
| ElectronicInvoiceUUID | ElectronicInvoiceUUID | Mexico UUID | ||
| JrnlEntryCntrySpecificRef5 | DocumentDetails | JrnlEntryCntrySpecificRef5 | Country/Region Specific Reference 5 | |
| TaxNumber1 | TaxNumber1 | VAT Reg. No. | ||
| IsFormatedForDigitalInvoice | IsFormatedForDigitalInvoice | |||
| Country | Country | Venue: Ctry/Reg | ||
| Supplier | DocumentDetails | Supplier | Supplier | |
| Customer | DocumentDetails | Customer | Sold-to Party | |
| FinancialAccountType | DocumentDetails | FinancialAccountType | Fin. Account Type | |
| ClearingDocFiscalYear | DocumentDetails | ClearingDocFiscalYear | Fiscal Year of Clearing Journal Entry | |
| IsReversal | DocumentDetails | IsReversal | Reversal doc. | |
| IsReversed | DocumentDetails | IsReversed | Reversed? | |
| PaymentMethod | DocumentDetails | PaymentMethod | Pymt Meth. | |
| InvoiceReferenceFiscalYear | DocumentDetails | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | |
| AccountingDocumentType | DocumentDetails | AccountingDocumentType | Journal Entry Type | |
| PostingDate | DocumentDetails | PostingDate | Posting Date for GR | |
| ClearingDate | Clearing Date | |||
| P_Ledger | ||||
| P_FiscalYear | ||||
| P_FromPostingDate | ||||
| P_ToPostingDate | ||||
| P_StatryRptgEntity | ||||
| P_StatryRptCategory | ||||
| P_StatryRptRunID | ||||
| SourceLedger | Source Ledger | |||
| KEY | Ledger | InvoiceDetails | Ledger | Ledger |
| KEY | CompanyCode | P_JrnlEntrAddlClrgInformation | ClearingCompanyCode | Receiver Company Code |
| KEY | AccountingDocument | P_JrnlEntrAddlClrgInformation | ClearingAccountingDocument | Journal Entry |
| KEY | FiscalYear | P_JrnlEntrAddlClrgInformation | ClearingDocFiscalYear | Material Document Year |
| StatryRptCategory | InvoiceDetails | StatryRptCategory | Report ID | |
| StatryRptgEntity | InvoiceDetails | StatryRptgEntity | Reporting Entity | |
| StatryRptRunID | InvoiceDetails | StatryRptRunID | Report Run ID | |
| AccountingDocumentItem | InvoiceDetails | AccountingDocumentItem | Posting View Item | |
| DocumentReferenceID | InvoiceDetails | DocumentReferenceID | Reference | |
| AmountInTransactionCurrency | Pt Crcy Amt | |||
| TransactionCurrency | InvoiceDetails | TransactionCurrency | Transaction Currency | |
| ElectronicInvoiceUUID | InvoiceDetails | ElectronicInvoiceUUID | Mexico UUID | |
| JrnlEntryCntrySpecificRef5 | InvoiceDetails | JrnlEntryCntrySpecificRef5 | Country/Region Specific Reference 5 | |
| TaxNumber1 | InvoiceDetails | TaxNumber1 | VAT Reg. No. | |
| IsFormatedForDigitalInvoice | InvoiceDetails | IsFormatedForDigitalInvoice | ||
| Country | InvoiceDetails | Country | Venue: Ctry/Reg | |
| Supplier | InvoiceDetails | Supplier | Supplier | |
| Customer | InvoiceDetails | Customer | Sold-to Party | |
| FinancialAccountType | InvoiceDetails | FinancialAccountType | Fin. Account Type | |
| ClearingDocFiscalYear | P_JrnlEntrAddlClrgInformation | ClearingDocFiscalYear | Fiscal Year of Clearing Journal Entry | |
| IsReversal | InvoiceDetails | IsReversal | Reversal doc. | |
| IsReversed | InvoiceDetails | IsReversed | Reversed? | |
| PaymentMethod | InvoiceDetails | PaymentMethod | Pymt Meth. | |
| InvoiceReferenceFiscalYear | InvoiceDetails | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | |
| AccountingDocumentType | InvoiceDetails | AccountingDocumentType | Journal Entry Type | |
| PostingDate | InvoiceDetails | PostingDate | Posting Date for GR | |
| ClearingDate | InvoiceDetails | ClearingDate | Clearing Date | |
| P_Ledger | ||||
| P_FiscalYear | ||||
| P_FromPostingDate | ||||
| P_ToPostingDate | ||||
| P_StatryRptgEntity | ||||
| P_StatryRptCategory | ||||
| P_StatryRptRunID | ||||
| SourceLedger | Source Ledger | |||
| KEY | Ledger | SupplierInvoiceDetails | Ledger | Ledger |
| KEY | CompanyCode | SupplierInvoiceDetails | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | P_MX_JournalEntryGRHistory2 | MaterialDocumentNumber | Journal Entry |
| KEY | FiscalYear | P_MX_JournalEntryGRHistory2 | MaterialDocumentYear | Material Document Year |
| StatryRptCategory | SupplierInvoiceDetails | StatryRptCategory | Report ID | |
| StatryRptgEntity | SupplierInvoiceDetails | StatryRptgEntity | Reporting Entity | |
| StatryRptRunID | SupplierInvoiceDetails | StatryRptRunID | Report Run ID | |
| AccountingDocumentItem | SupplierInvoiceDetails | AccountingDocumentItem | Posting View Item | |
| DocumentReferenceID | SupplierInvoiceDetails | DocumentReferenceID | Reference | |
| AmountInTransactionCurrency | Pt Crcy Amt | |||
| TransactionCurrency | SupplierInvoiceDetails | TransactionCurrency | Transaction Currency | |
| ElectronicInvoiceUUID | SupplierInvoiceDetails | ElectronicInvoiceUUID | Mexico UUID | |
| JrnlEntryCntrySpecificRef5 | SupplierInvoiceDetails | JrnlEntryCntrySpecificRef5 | Country/Region Specific Reference 5 | |
| TaxNumber1 | SupplierInvoiceDetails | TaxNumber1 | VAT Reg. No. | |
| IsFormatedForDigitalInvoice | SupplierInvoiceDetails | IsFormatedForDigitalInvoice | ||
| Country | SupplierInvoiceDetails | Country | Venue: Ctry/Reg | |
| Supplier | SupplierInvoiceDetails | Supplier | Supplier | |
| Customer | SupplierInvoiceDetails | Customer | Sold-to Party | |
| FinancialAccountType | SupplierInvoiceDetails | FinancialAccountType | Fin. Account Type | |
| ClearingDocFiscalYear | SupplierInvoiceDetails | ClearingDocFiscalYear | Fiscal Year of Clearing Journal Entry | |
| IsReversal | SupplierInvoiceDetails | IsReversal | Reversal doc. | |
| IsReversed | SupplierInvoiceDetails | IsReversed | Reversed? | |
| PaymentMethod | SupplierInvoiceDetails | PaymentMethod | Pymt Meth. | |
| InvoiceReferenceFiscalYear | SupplierInvoiceDetails | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | |
| AccountingDocumentType | SupplierInvoiceDetails | AccountingDocumentType | Journal Entry Type | |
| PostingDate | SupplierInvoiceDetails | PostingDate | Posting Date for GR | |
| ClearingDate | SupplierInvoiceDetails | ClearingDate | Clearing Date | |
| IsOriginalDocument |
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_MX_JrnlEntrItmInvcCompType.
-- 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: PMXINVCOMP
-- Parameters: P_Ledger : fins_ledger, P_FiscalYear : fis_gjahr_no_conv, P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to, P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_CompanyCode : fis_bukrs
CREATE VIEW P_MX_JrnlEntrItmInvcCompType AS
SELECT
DocumentDetails.SourceLedger AS SourceLedger,
DocumentDetails.Ledger AS Ledger,
DocumentDetails.CompanyCode AS CompanyCode,
DocumentDetails.AccountingDocument AS AccountingDocument,
DocumentDetails.FiscalYear AS FiscalYear,
StatryRptCategory,
StatryRptgEntity,
StatryRptRunID,
DocumentDetails.AccountingDocumentItem AS AccountingDocumentItem,
DocumentReferenceID,
DocumentDetails.AmountInTransactionCurrency AS AmountInTransactionCurrency,
DocumentDetails.TransactionCurrency AS TransactionCurrency,
ElectronicInvoiceUUID,
DocumentDetails.JrnlEntryCntrySpecificRef5 AS JrnlEntryCntrySpecificRef5,
TaxNumber1,
IsFormatedForDigitalInvoice,
Country,
DocumentDetails.Supplier AS Supplier,
DocumentDetails.Customer AS Customer,
DocumentDetails.FinancialAccountType AS FinancialAccountType,
DocumentDetails.ClearingDocFiscalYear AS ClearingDocFiscalYear,
DocumentDetails.IsReversal AS IsReversal,
DocumentDetails.IsReversed AS IsReversed,
DocumentDetails.PaymentMethod AS PaymentMethod,
DocumentDetails.InvoiceReferenceFiscalYear AS InvoiceReferenceFiscalYear,
DocumentDetails.AccountingDocumentType AS AccountingDocumentType,
DocumentDetails.PostingDate AS PostingDate,
cast ('00000000' as augdt ) AS ClearingDate,
'X' as IsOriginalDocument AS P_Ledger,
P_FiscalYear : $parameters.P_FiscalYear AS P_FiscalYear,
P_FromPostingDate : $parameters.P_FromPostingDate AS P_FromPostingDate,
P_ToPostingDate : $parameters.P_ToPostingDate AS P_ToPostingDate,
P_StatryRptgEntity : $parameters.P_StatryRptgEntity AS P_StatryRptgEntity,
P_StatryRptCategory : $parameters.P_StatryRptCategory AS P_StatryRptCategory,
P_StatryRptRunID : $parameters.P_StatryRptRunID AS P_StatryRptRunID,
'' AS IsOriginalDocument
FROM P_JrnlEntrAddlClrgInformation AS PaidInvoices
INNER JOIN P_MX_JrnlEntrItmInvcDetails ON /* join condition not captured in parsed metadata */
INNER JOIN I_StRpJournalEntryHeaderLog ON /* join condition not captured in parsed metadata */
INNER JOIN P_MX_JournalEntryGRHistory2 AS GoodsReceiptDetails ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_JrnlEntrAddlClrgInformation, P_MX_JrnlEntrItmInvcDetails
;
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