R_PhysInvtryDocumentItemTP
RAP PI Document Item
R_PhysInvtryDocumentItemTP is a Transactional CDS View that provides data about "RAP PI Document Item" in SAP S/4HANA. It reads from 1 data source (P_PhysInvtryDocItem2) and exposes 86 fields with key fields FiscalYear, PhysicalInventoryDocument, PhysicalInventoryDocumentItem. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PhysInvtryDocItem2 | P_PhysInvtryDocItem2 | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_PhysInvtryDocumentItem | _Extension | $projection.FiscalYear = _Extension.FiscalYear and $projection.PhysicalInventoryDocument = _Extension.PhysicalInventoryDocument and $projection.PhysicalInventoryDocumentItem = _Extension.PhysicalInventoryDocumentItem |
| [1..1] | I_Batch | _Batch | $projection.Material = _Batch.Material and $projection.Plant = _Batch.Plant and $projection.Batch = _Batch.Batch |
| [1..*] | R_PhysInvtryCountSerialNmbrTP | _CountSerialNumber | |
| [1..*] | R_PhysInvtryBookSerialNmbrTP | _BookSerialNumber | |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | RAP PI Document Item | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (86)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | PhysicalInventoryDocument | PhysicalInventoryDocument | Physical Inventory Document | |
| KEY | PhysicalInventoryDocumentItem | PhysicalInventoryDocumentItem | Physical Inventory Document Item | |
| Material | Material | Vehicle Model | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| Batch | ProductBatch | |||
| ValuationType | _BatchPlant | InventoryValuationType | Valuation Type | |
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| PhysicalInventoryStockType | PhysicalInventoryStockType | Stock Type | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| ScheduleLine | ScheduleLine | Schedule Line | ||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| StockOwner | StockOwner | Owner of stock | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| CountedByUser | CountedByUser | Counted By | ||
| PhysicalInventoryLastCountDate | PhysicalInventoryLastCountDate | Count Date | ||
| AdjustmentPostingMadeByUser | AdjustmentPostingMadeByUser | Adjustment Posting Made By | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| PhysicalInventoryItemIsCounted | PhysicalInventoryItemIsCounted | Is Counted | ||
| PhysInvtryDifferenceIsPosted | PhysInvtryDifferenceIsPosted | Is Difference Posted | ||
| PhysInvtryItemIsRecounted | PhysInvtryItemIsRecounted | Is Recounted | ||
| PhysInvtryItemIsDeleted | PhysInvtryItemIsDeleted | Is Deleted | ||
| IsHandledInAltvUnitOfMsr | IsHandledInAltvUnitOfMsr | Without Unit of Measure Proposal | ||
| BookQtyBfrCountInMatlBaseUnit | BookQtyBfrCountInMatlBaseUnit | Book Quantity | ||
| PhysicalInventoryItemIsZero | PhysicalInventoryItemIsZero | Zero Counted | ||
| Quantity | Quantity | Value | ||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| QuantityInUnitOfEntry | QuantityInUnitOfEntry | Quantity in UnE | ||
| UnitOfEntry | UnitOfEntry | Unit of Entry | ||
| MaterialDocumentYear | MaterialDocumentYear | Material Document Year | ||
| MaterialDocument | MaterialDocument | Material Doc. | ||
| MaterialDocumentItem | MaterialDocumentItem | Material Document Item | ||
| PhysInvtryRecountDocument | PhysInvtryRecountDocument | Recount Doc. | ||
| DifferenceAmountInCoCodeCrcy | DifferenceAmountInCoCodeCrcy | Difference Val. | ||
| Currency | Currency | Valuation Crcy | ||
| CycleCountType | CycleCountType | Cycle Count Type | ||
| WBSElementInternalID | WBS Internal ID | |||
| SlsPrcAmtInclVATInCoCodeCrcy | SlsPrcAmtInclVATInCoCodeCrcy | SalVal inc. VAT | ||
| SlsPrcAmtExclVATInCoCodeCrcy | SlsPrcAmtExclVATInCoCodeCrcy | SalVal w/o VAT | ||
| DiffAmountOnCountEntryInCCCrcy | DiffAmountOnCountEntryInCCCrcy | Diff. Value | ||
| EnteredSlsAmtInCoCodeCrcy | EnteredSlsAmtInCoCodeCrcy | Sales Price Counted Value | ||
| SlsPriceAmountInCoCodeCrcy | SlsPriceAmountInCoCodeCrcy | Sales Price Book Value | ||
| IsValueOnlyMaterial | IsValueOnlyMaterial | Is Value-Only Material | ||
| PhysInvtryCtAmtInCoCodeCrcy | PhysInvtryCtAmtInCoCodeCrcy | Counted Quantity Value | ||
| BookQtyAmountInCoCodeCrcy | BookQtyAmountInCoCodeCrcy | Book Value | ||
| ProductCategory | ProductCategory | Prod Category | ||
| ReasonForPhysInvtryDifference | ReasonForPhysInvtryDifference | Difference Reason | ||
| CrossPlantConfigurableMaterial | CrossPlantConfigurableMaterial | Cross-Plant Configurable Material | ||
| PhysInvtryDiffIsDistributed | PhysInvtryDiffIsDistributed | Difference Distributed | ||
| _PhysicalInventoryDocument | _PhysicalInventoryDocument | |||
| _CountSerialNumber | _CountSerialNumber | |||
| _BookSerialNumber | _BookSerialNumber | |||
| _Material | _Material | |||
| _Product | _Product | |||
| _CrossPlantConfigurableMatl | _CrossPlantConfigurableMatl | |||
| _CrossPlantConfigurableProd | _CrossPlantConfigurableProd | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _CountedByUser | _CountedByUser | |||
| _AdjustmentPostingMadeByUser | _AdjustmentPostingMadeByUser | |||
| _MaterialBaseUnit | _MaterialBaseUnit | |||
| _Currency | _Currency | |||
| _Supplier | _Supplier | |||
| _Customer | _Customer | |||
| _SalesOrder | _SalesOrder | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _SalesOrderScheduleLine | _SalesOrderScheduleLine | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _ProductStorageLocation | _ProductStorageLocation | |||
| _UnitOfEntry | _UnitOfEntry | |||
| _PhysInvtryStatusT | _PhysInvtryStatusT | |||
| _PhysInvtryDocHeader | _PhysInvtryDocHeader | |||
| _PhysicalInventoryStockType | _PhysicalInventoryStockType | |||
| _InventorySpecialStockType | _InventorySpecialStockType | |||
| _ProductCategory | _ProductCategory | |||
| _WBSElement | _WBSElement | |||
| _PhysInvtryDocFiscalYear | _PhysInvtryDocFiscalYear | |||
| _SupplierCompanyByPlant | _SupplierCompanyByPlant | |||
| _CustomerCompanyByPlant | _CustomerCompanyByPlant | |||
| _ProductPlant | _ProductPlant | |||
| _ProductPlantBasic | _ProductPlantBasic | |||
| _Batch | _Batch |
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 R_PhysInvtryDocumentItemTP.
-- 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.
CREATE VIEW R_PhysInvtryDocumentItemTP AS
SELECT
FiscalYear,
PhysicalInventoryDocument,
PhysicalInventoryDocumentItem,
Material,
Plant,
StorageLocation,
ProductBatch AS Batch,
_BatchPlant.InventoryValuationType AS ValuationType,
InventorySpecialStockType,
PhysicalInventoryStockType,
SalesOrder,
SalesOrderItem,
ScheduleLine,
Supplier,
Customer,
StockOwner,
LastChangedByUser,
LastChangeDate,
CountedByUser,
PhysicalInventoryLastCountDate,
AdjustmentPostingMadeByUser,
PostingDate,
PhysicalInventoryItemIsCounted,
PhysInvtryDifferenceIsPosted,
PhysInvtryItemIsRecounted,
PhysInvtryItemIsDeleted,
IsHandledInAltvUnitOfMsr,
BookQtyBfrCountInMatlBaseUnit,
PhysicalInventoryItemIsZero,
Quantity,
MaterialBaseUnit,
QuantityInUnitOfEntry,
UnitOfEntry,
MaterialDocumentYear,
MaterialDocument,
MaterialDocumentItem,
PhysInvtryRecountDocument,
DifferenceAmountInCoCodeCrcy,
Currency,
CycleCountType,
cast ( WBSElementInternalID as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
SlsPrcAmtInclVATInCoCodeCrcy,
SlsPrcAmtExclVATInCoCodeCrcy,
DiffAmountOnCountEntryInCCCrcy,
EnteredSlsAmtInCoCodeCrcy,
SlsPriceAmountInCoCodeCrcy,
IsValueOnlyMaterial,
PhysInvtryCtAmtInCoCodeCrcy,
BookQtyAmountInCoCodeCrcy,
ProductCategory,
ReasonForPhysInvtryDifference,
CrossPlantConfigurableMaterial,
PhysInvtryDiffIsDistributed
FROM P_PhysInvtryDocItem2
LEFT OUTER JOIN E_PhysInvtryDocumentItem AS _Extension ON FiscalYear = _Extension.FiscalYear AND PhysicalInventoryDocument = _Extension.PhysicalInventoryDocument AND PhysicalInventoryDocumentItem = _Extension.PhysicalInventoryDocumentItem -- association [1..1]
LEFT OUTER JOIN I_Batch AS _Batch ON Material = _Batch.Material AND Plant = _Batch.Plant AND Batch = _Batch.Batch -- association [1..1]
LEFT OUTER JOIN R_PhysInvtryCountSerialNmbrTP AS _CountSerialNumber ON /* condition not available in parsed metadata */ -- association [1..*]
LEFT OUTER JOIN R_PhysInvtryBookSerialNmbrTP AS _BookSerialNumber ON /* condition not available in parsed metadata */ -- association [1..*]
;
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