C_SuplrInvcItm
Supplier Invoice Item Details
C_SuplrInvcItm is a Consumption CDS View that provides data about "Supplier Invoice Item Details" in SAP S/4HANA. It reads from 1 data source (P_SuplrInvcItm) and exposes 65 fields with key fields SupplierInvoice, SupplierInvoiceItem, FiscalYear, OrdinalNumber. It has 10 associations to related views. It is exposed through 1 OData service (ASQL_F0547B). Part of development package ODATA_MM_PUR_MYPURGDOCITEMS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_SuplrInvcItm | P_SuplrInvcItm | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | C_POItemQtyAndValueCalc | _QtyAndValueCalc | $projection.PurchaseOrder = _QtyAndValueCalc.PurchaseOrder and $projection.PurchaseOrderItem = _QtyAndValueCalc.PurchaseOrderItem |
| [0..1] | R_PurgDocGoodsReceiptCalc | _GRCalc | $projection.PurchaseOrder = _GRCalc.PurchaseOrder and $projection.PurchaseOrderItem = _GRCalc.PurchaseOrderItem |
| [0..1] | I_PurchaseOrderItem | _PurOrdItem | $projection.PurchaseOrder = _PurOrdItem.PurchaseOrder and $projection.PurchaseOrderItem = _PurOrdItem.PurchaseOrderItem |
| [0..1] | I_CustomerProjectWorkPackage | _CustProjectWorkPackagerbco | $projection.WBSElementExternalID = _CustProjectWorkPackagerbco.WBSElementObject |
| [1..1] | I_SupplierInvoiceStsAndOrign | _SupplierInvoiceStsAndOrign | $projection.SupplierInvoice = _SupplierInvoiceStsAndOrign.SupplierInvoice and $projection.FiscalYear = _SupplierInvoiceStsAndOrign.FiscalYear |
| [0..1] | I_SupplierInvoiceStsOriginText | _SupplierInvoiceStsOriginText | _SupplierInvoiceStsAndOrign.InvoiceStatusAndOrigin = _SupplierInvoiceStsOriginText.InvoiceStatusAndOrigin and _SupplierInvoiceStsOriginText.Language = $session.system_language |
| [1..1] | I_DebitCreditCode | _DebitCreditText | _DebitCreditText.DebitCreditCode = $projection.DebitCreditCode |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..1] | I_CostCenter | _CostCenter | $projection.CostCenter = _CostCenter.CostCenter and $projection.ControllingArea = _CostCenter.ControllingArea and _CostCenter.ValidityStartDate <= $session.system_date and _CostCenter.ValidityEndDate >= $session.system_date |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPURGDOCITMINV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Supplier Invoice Item Details | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| UI.headerInfo.typeName | Invoice Item | view | |
| UI.headerInfo.typeNamePlural | Invoice Items | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F0547B | ASQL_F0547B | C2 | NOT_RELEASED |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SupplierInvoice | SupplierInvoice | ||
| KEY | SupplierInvoiceItem | SupplierInvoiceItem | Item | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | OrdinalNumber | OrdinalNumber | Sequence Number | |
| SupplierInvoiceWithItem | SupplierInvoiceWithItem | Invoice Item | ||
| MaterialDocumentItemText | MaterialDocumentItemText | Item Description | ||
| Material | Material | Vehicle Model | ||
| MaterialName | ||||
| PurchaseOrder | PurchaseOrder | Purchasing Document | ||
| FormattedPurchaseOrderItem | FormattedPurchaseOrderItem | |||
| PurchaseOrderHistIsDisplayed | PurchaseOrderHistIsDisplayed | Purchase Order History | ||
| PurgDocItemInvoicedQuantity | PurgDocItemInvoicedQuantity | |||
| SupplierInvoiceItemAmount | SupplierInvoiceItemAmount | Amount | ||
| Quantity | Quantity | Value | ||
| InvoicedAmount | InvoicedAmount | |||
| Status | _SupplierInvoiceStsAndOrign | InvoiceStatusAndOrigin | Status | |
| ObjectType | ObjectType | Type | ||
| CostCenter | CostCenter | Cost Center | ||
| CostCenterName | ||||
| ControllingArea | ControllingArea | Controlling Area | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| DebitCreditCode | DebitCreditCode | Debit/Credit Indicator | ||
| DebitCreditCodeName | ||||
| SupplierendasSupplier | ||||
| IncotermsClassification | _PurOrdItem | IncotermsClassification | Incoterms | |
| IncotermsClassificationName | ||||
| OverallLimitAmount | _PurOrdItem | OverallLimitAmount | Overall Limit | |
| Plant | _PurOrdItem | Plant | Valuation Area | |
| PlantName | ||||
| IsReturnsItem | _PurOrdItem | IsReturnsItem | Returns Item | |
| TaxCode | TaxCode | Tax Code | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| OrderQuantity | _PurOrdItem | OrderQuantity | Ordered Quantity | |
| GoodsReceiptQty | _GRCalc | GoodsReceiptQuantity | Delivered Quantity | |
| WBSElementExternalID | WBSElementExternalID | Work Package | ||
| CustProjWorkPackageFullName | _CustProjectWorkPackagerbco | CustProjWorkPackageFullName | Work Package Full Name | |
| PurchaseOrderQuantityUnit | PurchaseOrderQuantityUnit | Order Unit | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| MaterialGroup | _PurOrdItem | MaterialGroup | Product Group | |
| PurchasingOrganization | ||||
| PurchasingGroup | ||||
| ServicePerformer | ServicePerformer | Service Performer | ||
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | ||
| _DebitCreditText | _DebitCreditText | |||
| WorkItem | WorkItem | Work Item ID | ||
| SupplyingPlant | SupplyingPlant | Supplying Plant | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Acct Assgmt Cat | ||
| PurchasingDocumentItemCategory | PurchasingDocumentItemCategory | Item Category | ||
| DeliveryDate | DeliveryDate | Delivery Date | ||
| PurchasingDocument | PurchasingDocument | Purchasing Document | ||
| PurchasingDocumentType | Purchasing Document Type | |||
| PurchasingDocumentTypeName | ||||
| _SupplierInvoiceStsOriginText | _SupplierInvoiceStsOriginText | |||
| _QtyAndValueCalc | _QtyAndValueCalc | |||
| _Material | _Material | |||
| _CostCenter | _CostCenter | |||
| _Supplier | _Supplier | |||
| _Plant | _PurOrdItem | _Plant | ||
| _CompanyCode | _CompanyCode | |||
| _IncotermsClassification | _PurOrdItem | _IncotermsClassification |
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 C_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: CPURGDOCITMINV
CREATE VIEW C_SuplrInvcItm AS
SELECT
SupplierInvoice,
SupplierInvoiceItem,
FiscalYear,
OrdinalNumber,
SupplierInvoiceWithItem,
MaterialDocumentItemText,
Material,
_Material._Text[1: Language = $session.system_language ].MaterialName AS MaterialName,
PurchaseOrder,
FormattedPurchaseOrderItem,
PurchaseOrderHistIsDisplayed,
PurgDocItemInvoicedQuantity,
SupplierInvoiceItemAmount,
Quantity,
InvoicedAmount,
_SupplierInvoiceStsAndOrign.InvoiceStatusAndOrigin AS Status,
ObjectType,
CostCenter,
_CostCenter._Text[1: Language = $session.system_language ].CostCenterName AS CostCenterName,
ControllingArea,
SalesOrder,
SalesOrderItem,
CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
DebitCreditCode,
_DebitCreditText._Text[1: Language = $session.system_language ].DebitCreditCodeName AS DebitCreditCodeName,
case when _PurOrdItem._PurchaseOrder.Supplier is null or _PurOrdItem._PurchaseOrder.Supplier = '' then InvoicingParty else _PurOrdItem._PurchaseOrder.Supplier end as Supplier AS SupplierendasSupplier,
_PurOrdItem.IncotermsClassification AS IncotermsClassification,
_PurOrdItem._IncotermsClassification._Text[1: Language = $session.system_language ].IncotermsClassificationName AS IncotermsClassificationName,
_PurOrdItem.OverallLimitAmount AS OverallLimitAmount,
_PurOrdItem.Plant AS Plant,
_PurOrdItem._Plant.PlantName AS PlantName,
_PurOrdItem.IsReturnsItem AS IsReturnsItem,
TaxCode,
TaxJurisdiction,
_PurOrdItem.OrderQuantity AS OrderQuantity,
_GRCalc.GoodsReceiptQuantity AS GoodsReceiptQty,
WBSElementExternalID,
_CustProjectWorkPackagerbco.CustProjWorkPackageFullName AS CustProjWorkPackageFullName,
PurchaseOrderQuantityUnit,
DocumentCurrency,
CompanyCodeCurrency,
_PurOrdItem.MaterialGroup AS MaterialGroup,
_PurOrdItem._PurchaseOrder.PurchasingOrganization AS PurchasingOrganization,
_PurOrdItem._PurchaseOrder.PurchasingGroup AS PurchasingGroup,
ServicePerformer,
PurchaseOrderItem,
IsEndOfPurposeBlocked,
WorkItem,
SupplyingPlant,
AccountAssignmentCategory,
PurchasingDocumentItemCategory,
DeliveryDate,
PurchasingDocument,
_PurOrdItem._PurchaseOrder.PurchaseOrderType AS PurchasingDocumentType,
_PurOrdItem._PurchaseOrder._PurchaseOrderType._Text[1:Language = $session.system_language].PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
_PurOrdItem._Plant AS _Plant,
_PurOrdItem._IncotermsClassification AS _IncotermsClassification
FROM P_SuplrInvcItm
LEFT OUTER JOIN C_POItemQtyAndValueCalc AS _QtyAndValueCalc ON PurchaseOrder = _QtyAndValueCalc.PurchaseOrder AND PurchaseOrderItem = _QtyAndValueCalc.PurchaseOrderItem -- association [0..1]
LEFT OUTER JOIN R_PurgDocGoodsReceiptCalc AS _GRCalc ON PurchaseOrder = _GRCalc.PurchaseOrder AND PurchaseOrderItem = _GRCalc.PurchaseOrderItem -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrderItem AS _PurOrdItem ON PurchaseOrder = _PurOrdItem.PurchaseOrder AND PurchaseOrderItem = _PurOrdItem.PurchaseOrderItem -- association [0..1]
LEFT OUTER JOIN I_CustomerProjectWorkPackage AS _CustProjectWorkPackagerbco ON WBSElementExternalID = _CustProjectWorkPackagerbco.WBSElementObject -- association [0..1]
LEFT OUTER JOIN I_SupplierInvoiceStsAndOrign AS _SupplierInvoiceStsAndOrign ON SupplierInvoice = _SupplierInvoiceStsAndOrign.SupplierInvoice AND FiscalYear = _SupplierInvoiceStsAndOrign.FiscalYear -- association [1..1]
LEFT OUTER JOIN I_SupplierInvoiceStsOriginText AS _SupplierInvoiceStsOriginText ON _SupplierInvoiceStsAndOrign.InvoiceStatusAndOrigin = _SupplierInvoiceStsOriginText.InvoiceStatusAndOrigin AND _SupplierInvoiceStsOriginText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_DebitCreditCode AS _DebitCreditText ON _DebitCreditText.DebitCreditCode = DebitCreditCode -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter AND ControllingArea = _CostCenter.ControllingArea AND _CostCenter.ValidityStartDate <= $session.system_date AND _CostCenter.ValidityEndDate >= $session.system_date -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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