P_PurDocItem
View for Purchasing Document Item
P_PurDocItem is a Consumption CDS View that provides data about "View for Purchasing Document Item" in SAP S/4HANA. It reads from 1 data source (R_PurchasingDocumentItem) and exposes 42 fields with key fields PurchasingDocument, PurchasingDocumentItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_PurchasingDocumentItem | _PurgDocItm | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPURDOCITM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | View for Purchasing Document Item | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (42)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | R_PurchasingDocumentItem | PurchasingDocument | Purchasing Document |
| KEY | PurchasingDocumentItem | R_PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item |
| PurchasingDocumentItemText | PurchasingDocumentItemText | Short Text | ||
| Assembly | Vehicle Model | |||
| Material | Material | Vehicle Model | ||
| _Material | _Material | |||
| Plant | Plant | Valuation Area | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Acct Assgmt Cat | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| RequirementTracking | RequirementTracking | Tracking Number | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| _PurgDocumentCategory | _PurgDocumentCategory | |||
| TargetQuantity | TargetQuantity | Target Quantity | ||
| NetAmount | NetAmount | Stated Amount | ||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| NetPriceQuantity | NetPriceQuantity | Price Unit | ||
| IsReturnsItem | IsReturnsItem | Returns Item | ||
| ProductTypeCode | ProductTypeCode | Product Type Group | ||
| ProductType | ProductType | Product Type Group | ||
| OrderQuantity | OrderQuantity | Quantity | ||
| CurrentDate | ||||
| OrderQuantityUnit | R_PurchasingDocumentItem | OrderQuantityUnit | Sales Unit | |
| DocumentCurrency | R_PurchasingDocumentItem | DocumentCurrency | Document Currency | |
| SupplierIsSubcontractor | SupplierIsSubcontractor | SC Supplier | ||
| MRPArea | MRPArea | MRP Area | ||
| StockSegment | StockSegment | Stock Segment | ||
| ProductSeasonYear | ProductSeasonYear | Season Year | ||
| ProductSeason | ProductSeason | Season | ||
| ProductCollection | ProductCollection | Collection | ||
| ProductTheme | ProductTheme | Theme | ||
| CrossPlantConfigurableProduct | CrossPlantConfigurableProduct | Cross-plant CP | ||
| ProductCharacteristic1 | ProductCharacteristic1 | Characteristic 1 | ||
| ProductCharacteristic2 | ProductCharacteristic2 | Characteristic 2 | ||
| ProductCharacteristic3 | ProductCharacteristic3 | Characteristic 3 | ||
| PurchasingDocumentItemCategory | PurchasingDocumentItemCategory | Item Category | ||
| GoodsReceiptIsExpected | GoodsReceiptIsExpected | Goods Receipt | ||
| IsCompletelyDelivered | IsCompletelyDelivered | Is completely delivered | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Del. Indicator | ||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | ||
| _PurchasingDocument | _PurchasingDocument |
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_PurDocItem.
-- 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: PPURDOCITM
CREATE VIEW P_PurDocItem AS
SELECT
_PurgDocItm.PurchasingDocument AS PurchasingDocument,
_PurgDocItm.PurchasingDocumentItem AS PurchasingDocumentItem,
PurchasingDocumentItemText,
cast(Material as bagrp) AS Assembly,
Material,
Plant,
MaterialGroup,
AccountAssignmentCategory,
CompanyCode,
StorageLocation,
RequirementTracking,
PurchasingDocumentCategory,
TargetQuantity,
NetAmount,
NetPriceAmount,
NetPriceQuantity,
IsReturnsItem,
ProductTypeCode,
ProductType,
OrderQuantity,
$session.system_date AS CurrentDate,
_PurgDocItm.OrderQuantityUnit AS OrderQuantityUnit,
_PurgDocItm.DocumentCurrency AS DocumentCurrency,
SupplierIsSubcontractor,
MRPArea,
StockSegment,
ProductSeasonYear,
ProductSeason,
ProductCollection,
ProductTheme,
CrossPlantConfigurableProduct,
ProductCharacteristic1,
ProductCharacteristic2,
ProductCharacteristic3,
PurchasingDocumentItemCategory,
GoodsReceiptIsExpected,
IsCompletelyDelivered,
PurchasingDocumentDeletionCode,
IsEndOfPurposeBlocked
FROM R_PurchasingDocumentItem AS _PurgDocItm
;
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