I_PhysInvtryDocumentItemTP
Physical Inventory Document Item - TP
I_PhysInvtryDocumentItemTP is a Transactional CDS View that provides data about "Physical Inventory Document Item - TP" in SAP S/4HANA. It reads from 1 data source (R_PhysInvtryDocumentItemTP) and exposes 65 fields with key fields FiscalYear, PhysicalInventoryDocument, PhysicalInventoryDocumentItem. Part of development package MM_IM_RAP_PI_PAAS.
SAP Help Documentation
| Category | CDS Views for Physical Inventory |
|---|
Purpose
This CDS view provides the prerequisites for answering the following business questions: Which materials in a storage location were counted when, and with which differences? Who performed the count? Who approved the counted differences? How large was the book quantity in the system before the count? If the inventory count of this item had to be re-done, which physical inventory document was used? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have a role that includes authorization based on at least one of the business catalogs listed above. In this role, the following restriction type must be set to read access: Physical Inventory: Physical Inventory Document in Plant ( M_ISEG_WIB ) These restriction types are edited in the Maintain Business Roles app. Configuration
Structure
Parameters The view does not have any parameters. Fields used for filtering The main filters are as follows: FiscalYear / PhysicalInventoryDocument / PhysicalInventoryDocumentItem used to filter for one specific physical inventory document item Material used to filter for all items of one material PhysicalInventoryItemIsCounted used to find all uncounted items Further important fields Important fields in this view include the following: Field Name Description Comment FiscalYear Fiscal year of the Physical Inventory Document The combination of the fields FiscalYear , PhysicalInventoryDocument and, PhysicalInventoryDocumentItem uniquely identifies a physical inventory document item. PhysicalInventoryDocument Number of the Physical Inventory Document The combination of the fields FiscalYear , PhysicalInventoryDocument and, PhysicalInventoryDocumentItem uniquely identifies a physical inventory document item. PhysicalInventoryDocumentItem Item Number The combination of the fields FiscalYear , PhysicalInventoryDocument and, PhysicalInventoryDocumentItem uniquely identifies a physical inventory document item. Material Material Plant Plant StorageLocation Storage Location Batch Batch Number InventorySpecialStockType Special Stock Indicator Allowed values: B - Customer Stock C - SC Customer Stock E - Orders on Hand F - SC Customer Order Stock I - SC RTP J - SC Vendor Consignment K - Supplier Consignment M - Ret.Trans.Pkg Vendor O - Subcontracting Stock Q - Project Stock R - SC Project Stock V - Ret. Pkg W. Customer W - Customer Consignment Y - Shipping Unit (Warehouse) Not allowed values: P - Pipeline Material T - Stock in Transit PhysicalInventoryStockType Stock Type (Physical Inventory) Allowed values: 1 - (Un)restricted 2 - Quality Inspection 4 - Blocked SalesOrder Sales Order Number SalesOrderItem Item Number in Sales Order ScheduleLine Delivery Schedule for Sales Order Supplier Vendor Account Number Customer Account Number of Customer StockOwner Owner of Stock LastChangedByUser User Name Name of the user who last changed this physical inventory item. LastChangeDate Last Change Timestamp CountedByUser User Name Name of the user who last entered the count results for this physical inventory item. PhysicalInventoryLastCountDate Date of Last Count Specifies the date of the last physical inventory count. AdjustmentPostingMadeByUser Adjustment Posting Made By Name of the user who made the adjustment posting. PostingDate Posting Date PhysInventoryReferenceNumber Reference Number for Physical Inventory PhysicalInventoryItemIsCounted Item has been counted PhysInvtryDifferenceIsPosted Difference has been posted PhysInvtryItemIsRecounted Item will be recounted PhysInvtryItemIsDeleted Item is Deleted
This CDS view provides the prerequisites for answering the following business questions: Which materials in a storage location were counted when, and with which differences? Who performed the count? Who approved the counted differences? How large was the book quantity in the system before the count? If the inventory count of this item had to be re-done, which physical inventory document was used? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have a role that includes authorization based on at least one of the business catalogs listed above. In this role, the following restriction type must be set to read access: Physical Inventory: Physical Inventory Document in Plant ( M_ISEG_WIB ) These restriction types are edited in the Maintain Business Roles app. Configuration
Structure
Parameters The view does not have any parameters. Fields used for filtering The main filters are as follows: FiscalYear / PhysicalInventoryDocument / PhysicalInventoryDocumentItem used to filter for one specific physical inventory document item Material used to filter for all items of one material PhysicalInventoryItemIsCounted used to find all uncounted items Further important fields Important fields in this view include the following: Field Name Description Comment FiscalYear Fiscal year of the Physical Inventory Document The combination of the fields FiscalYear , PhysicalInventoryDocument and, PhysicalInventoryDocumentItem uniquely identifies a physical inventory document item. PhysicalInventoryDocument Number of the Physical Inventory Document The combination of the fields FiscalYear , PhysicalInventoryDocument and, PhysicalInventoryDocumentItem uniquely identifies a physical inventory document item. PhysicalInventoryDocumentItem Item Number The combination of the fields FiscalYear , PhysicalInventoryDocument and, PhysicalInventoryDocumentItem uniquely identifies a physical inventory document item. Material Material Plant Plant StorageLocation Storage Location Batch Batch Number InventorySpecialStockType Special Stock Indicator Allowed values: B - Customer Stock C - SC Customer Stock E - Orders on Hand F - SC Customer Order Stock I - SC RTP J - SC Vendor Consignment K - Supplier Consignment M - Ret.Trans.Pkg Vendor O - Subcontracting Stock Q - Project Stock R - SC Project Stock V - Ret. Pkg W. Customer W - Customer Consignment Y - Shipping Unit (Warehouse) Not allowed values: P - Pipeline Material T - Stock in Transit PhysicalInventoryStockType Stock Type (Physical Inventory) Allowed values: 1 - (Un)restricted 2 - Quality Inspection 4 - Blocked SalesOrder Sales Order Number SalesOrderItem Item Number in Sales Order ScheduleLine Delivery Schedule for Sales Order Supplier Vendor Account Number Customer Account Number of Customer StockOwner Owner of Stock LastChangedByUser User Name Name of the user who last changed this physical inventory item. LastChangeDate Last Change Timestamp CountedByUser User Name Name of the user who last entered the count results for this physical inventory item. PhysicalInventoryLastCountDate Date of Last Count Specifies the date of the last physical inventory count. AdjustmentPostingMadeByUser Adjustment Posting Made By Name of the user who made the adjustment posting. PostingDate Posting Date PhysInventoryReferenceNumber Reference Number for Physical Inventory PhysicalInventoryItemIsCounted Item has been counted PhysInvtryDifferenceIsPosted Difference has been posted PhysInvtryItemIsRecounted Item will be recounted PhysInvtryItemIsDeleted Item is Deleted
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_PhysInvtryDocumentItemTP | R_PhysInvtryDocumentItemTP | projection |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Physical Inventory Document Item - TP | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #TRANSACTIONAL_INTERFACE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #TRANSACTIONAL | view |
Fields (65)
| 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 | Batch | Lot No. | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| ValuationType | ValuationType | Valuation 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 | 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 | ||
| _Supplier | _Supplier | |||
| _Customer | _Customer | |||
| _ProductText | _ProductText | |||
| _CrossPlantConfigProductText | _CrossPlantConfigProductText | |||
| _InventorySpecialStockTypeText | _InventorySpecialStockTypeText | |||
| _PhysInvtryStockTypeText | _PhysInvtryStockTypeText | |||
| _ProductCategoryText | _ProductCategoryText | |||
| _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 I_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 I_PhysInvtryDocumentItemTP AS
SELECT
FiscalYear,
PhysicalInventoryDocument,
PhysicalInventoryDocumentItem,
Material,
Plant,
StorageLocation,
Batch,
InventorySpecialStockType,
ValuationType,
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,
WBSElementInternalID,
SlsPrcAmtInclVATInCoCodeCrcy,
SlsPrcAmtExclVATInCoCodeCrcy,
DiffAmountOnCountEntryInCCCrcy,
EnteredSlsAmtInCoCodeCrcy,
SlsPriceAmountInCoCodeCrcy,
IsValueOnlyMaterial,
PhysInvtryCtAmtInCoCodeCrcy,
BookQtyAmountInCoCodeCrcy,
ProductCategory,
ReasonForPhysInvtryDifference,
CrossPlantConfigurableMaterial,
PhysInvtryDiffIsDistributed
FROM R_PhysInvtryDocumentItemTP
;
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