P_SuplrInvcItm
Supplier Invoice Item Details
P_SuplrInvcItm is a Consumption CDS View that provides data about "Supplier Invoice Item Details" in SAP S/4HANA. It reads from 2 data sources (P_ITEM_ONLINE, I_SupplierInvoice) and exposes 35 fields with key fields SupplierInvoice, SupplierInvoiceItem, FiscalYear, OrdinalNumber. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_ITEM_ONLINE | Item | from |
| I_SupplierInvoice | SupplierInvoice | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | P_SuplrInvcItmAcctAssgmt | _SuppInvcAcctAssgmt | $projection.SupplierInvoice = _SuppInvcAcctAssgmt.SupplierInvoice and $projection.FiscalYear = _SuppInvcAcctAssgmt.FiscalYear and $projection.SupplierInvoiceItem = _SuppInvcAcctAssgmt.SupplierInvoiceItem |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPURGDOCITMINV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | Supplier Invoice Item Details | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SupplierInvoice | P_ITEM_ONLINE | SupplierInvoice | SD Document |
| KEY | SupplierInvoiceItem | SupplierInvoiceItem | Posting View Item | |
| KEY | FiscalYear | P_ITEM_ONLINE | FiscalYear | G/L Fiscal Year |
| KEY | OrdinalNumber | _SuppInvcAcctAssgmt | OrdinalNumber | Sequence Number |
| SupplierInvoiceWithItem | ||||
| MaterialDocumentItemText | SupplierInvoiceItemText | Text | ||
| Material | PurchaseOrderItemMaterial | Vehicle Model | ||
| PurchaseOrder | PurchaseOrder | Purchasing Document | ||
| FormattedPurchaseOrderItem | ||||
| PurchaseOrderHistIsDisplayed | ||||
| QuantityendasQuantity | ||||
| ObjectType | ||||
| CostCenter | _SuppInvcAcctAssgmt | CostCenter | Cost Center | |
| ControllingArea | _SuppInvcAcctAssgmt | ControllingArea | Controlling Area | |
| SalesOrder | _SuppInvcAcctAssgmt | SalesOrder | SD Document | |
| SalesOrderItemendasSalesOrderItem | ||||
| CompanyCode | I_SupplierInvoice | CompanyCode | Receiver Company Code | |
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| InvoicingParty | I_SupplierInvoice | InvoicingParty | Supplier | |
| TaxCode | TaxCode | Tax Code | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| WBSElementExternalID | _SuppInvcAcctAssgmt | WBSElementExternalID | WBS Element External ID | |
| PurchaseOrderQuantityUnit | PurchaseOrderQuantityUnit | Order Unit | ||
| DocumentCurrency | I_SupplierInvoice | DocumentCurrency | Document Currency | |
| CompanyCodeCurrency | ||||
| ServicePerformer | ||||
| WorkItem | ||||
| SupplyingPlant | ||||
| AccountAssignmentCategory | ||||
| PurchasingDocumentItemCategory | ||||
| DeliveryDate | ||||
| PurchasingDocument | P_ITEM_ONLINE | SupplierInvoice | Purchasing Document | |
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| _CompanyCode | I_SupplierInvoice | _CompanyCode | ||
| IsEndOfPurposeBlocked | I_SupplierInvoice | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. |
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_SuplrInvcItm.
-- 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: PPURGDOCITMINV
CREATE VIEW P_SuplrInvcItm AS
SELECT
Item.SupplierInvoice AS SupplierInvoice,
SupplierInvoiceItem,
Item.FiscalYear AS FiscalYear,
_SuppInvcAcctAssgmt.OrdinalNumber AS OrdinalNumber,
cast (concat(concat(concat(concat(Item.SupplierInvoice, '/'), SupplierInvoiceItem),'/'), Item.FiscalYear) as abap.char(22) ) AS SupplierInvoiceWithItem,
SupplierInvoiceItemText AS MaterialDocumentItemText,
PurchaseOrderItemMaterial AS Material,
PurchaseOrder,
cast (concat(concat(PurchaseOrder, '/'), PurchaseOrderItem) as vdm_formattedpurchaseorditm) AS FormattedPurchaseOrderItem,
'' AS PurchaseOrderHistIsDisplayed,
case when DebitCreditCode is not null and DebitCreditCode = 'H' then -_SuppInvcAcctAssgmt.Quantity else _SuppInvcAcctAssgmt.Quantity end as Quantity AS QuantityendasQuantity,
cast('3' as numc1) AS ObjectType,
_SuppInvcAcctAssgmt.CostCenter AS CostCenter,
_SuppInvcAcctAssgmt.ControllingArea AS ControllingArea,
_SuppInvcAcctAssgmt.SalesOrder AS SalesOrder,
case when _SuppInvcAcctAssgmt.SalesOrderItem is null or _SuppInvcAcctAssgmt.SalesOrderItem = '000000' then '' else concat(concat(_SuppInvcAcctAssgmt.SalesOrder, '/'),_SuppInvcAcctAssgmt.SalesOrderItem) end as SalesOrderItem AS SalesOrderItemendasSalesOrderItem,
SupplierInvoice.CompanyCode AS CompanyCode,
DebitCreditCode,
SupplierInvoice.InvoicingParty AS InvoicingParty,
TaxCode,
TaxJurisdiction,
_SuppInvcAcctAssgmt.WBSElementExternalID AS WBSElementExternalID,
PurchaseOrderQuantityUnit,
SupplierInvoice.DocumentCurrency AS DocumentCurrency,
SupplierInvoice._CompanyCode.Currency AS CompanyCodeCurrency,
'' AS ServicePerformer,
'' AS WorkItem,
'' AS SupplyingPlant,
'' AS AccountAssignmentCategory,
'_' AS PurchasingDocumentItemCategory,
cast ('00000000' as mm_a_delivery_date) AS DeliveryDate,
Item.SupplierInvoice AS PurchasingDocument,
PurchaseOrderItem,
SupplierInvoice._CompanyCode AS _CompanyCode,
SupplierInvoice.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked
FROM P_ITEM_ONLINE AS Item
INNER JOIN I_SupplierInvoice AS SupplierInvoice ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_SuplrInvcItmAcctAssgmt AS _SuppInvcAcctAssgmt ON SupplierInvoice = _SuppInvcAcctAssgmt.SupplierInvoice AND FiscalYear = _SuppInvcAcctAssgmt.FiscalYear AND SupplierInvoiceItem = _SuppInvcAcctAssgmt.SupplierInvoiceItem -- 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