C_PhysInvtryQuery
Physical Inventory Analysis
C_PhysInvtryQuery is a Consumption CDS View that provides data about "Physical Inventory Analysis" in SAP S/4HANA. It reads from 1 data source (I_PhysInvtryCube) and exposes 63 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PhysInvtryCube | PhysicalInventoryCube | from |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | CPHYSINVTRYQUERY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | Physical Inventory Analysis | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| OData.publish | true | view | |
| VDM.private | false | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.query | true | view |
Fields (63)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| PhysicalInventoryDocument | PhysicalInventoryDocument | Physical Inventory Document | ||
| PhysicalInventoryDocumentItem | PhysicalInventoryDocumentItem | Physical Inventory Document Item | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| Material | Material | Vehicle Model | ||
| Batch | RealProductBatch | |||
| ValuationType | ValuationType | 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 | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| PhysicalInventoryItemIsCounted | PhysicalInventoryItemIsCounted | Is Counted | ||
| PhysInvtryDifferenceIsPosted | PhysInvtryDifferenceIsPosted | Is Difference Posted | ||
| PhysInvtryItemIsRecounted | PhysInvtryItemIsRecounted | Is Recounted | ||
| PhysInvtryItemIsDeleted | PhysInvtryItemIsDeleted | Is Deleted | ||
| CycleCountType | CycleCountType | Cycle Count Type | ||
| PhysicalInventoryType | PhysicalInventoryType | |||
| InventoryTransactionType | InventoryTransactionType | Trans. Ev. Type | ||
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| PostingIsBlockedForPhysInvtry | PostingIsBlockedForPhysInvtry | Posting Block | ||
| PhysInvtryDocHasQtySnapshot | PhysInvtryDocHasQtySnapshot | Book Inventory Freeze | ||
| PhysicalInventoryLastCountDate | PhysicalInventoryLastCountDate | Count Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| ReasonForPhysInvtryDifference | ReasonForPhysInvtryDifference | Difference Reason | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| PhysInventoryPlannedCountDate | PhysInventoryPlannedCountDate | Plan.Count date | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| Currency | Currency | Valuation Crcy | ||
| PhysicalInventoryGroupType | PhysicalInventoryGroupType | Grouping Type | ||
| PhysicalInventoryGroup | PhysicalInventoryGroup | Grpg Crit. | ||
| PhysicalInventoryNumber | PhysicalInventoryNumber | Physical Inventory Number | ||
| PhysicalInventoryDocumentDesc | PhysicalInventoryDocumentDesc | Description | ||
| PhysInventoryReferenceNumber | PhysInventoryReferenceNumber | Physical Inventory Reference | ||
| MaterialDocumentYear | MaterialDocumentYear | Material Document Year | ||
| MaterialDocument | MaterialDocument | Material Doc. | ||
| MaterialDocumentItem | MaterialDocumentItem | Material Document Item | ||
| PhysInvtryRecountDocument | PhysInvtryRecountDocument | Recount Doc. | ||
| IsValueOnlyMaterial | IsValueOnlyMaterial | Is Value-Only Material | ||
| ProductCategory | ProductCategory | Prod Category | ||
| CrossPlantConfigurableMaterial | CrossPlantConfigurableMaterial | Cross-Plant Configurable Material | ||
| SalesPriceValuationIsActive | SalesPriceValuationIsActive | Is Sales Price Valuation Active | ||
| PhysicalInventoryItemIsZero | PhysicalInventoryItemIsZero | Zero Counted | ||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| UnitOfEntry | UnitOfEntry | Unit of Entry | ||
| BookQtyAmountInCoCodeCrcy | BookQtyAmountInCoCodeCrcy | Book Value | ||
| DifferenceAmountInCoCodeCrcy | DifferenceAmountInCoCodeCrcy | Difference Val. | ||
| NumberOfPhysInvtryItems | NumberOfPhysInvtryItems | |||
| MaxAbsDiffAmountInCoCodeCrcy | MaxAbsDiffAmountInCoCodeCrcy | |||
| MinAbsDiffAmountInCoCodeCrcy | MinAbsDiffAmountInCoCodeCrcy | |||
| PhysInvtryCtAmtInCoCodeCrcy | PhysInvtryCtAmtInCoCodeCrcy | Counted Quantity Value | ||
| BookQtyBfrCountInMatlBaseUnit | BookQtyBfrCountInMatlBaseUnit | Book Quantity | ||
| Quantity | Quantity | Value | ||
| QuantityInUnitOfEntry | QuantityInUnitOfEntry | Quantity in UnE | ||
| DifferenceQuantityInBaseUnit | DifferenceQuantityInBaseUnit | |||
| SlsPriceAmountInCoCodeCrcy | SlsPriceAmountInCoCodeCrcy | Sales Price Book Value | ||
| EnteredSlsAmtInCoCodeCrcy | EnteredSlsAmtInCoCodeCrcy | Sales Price Counted Value | ||
| DiffSlsPrcAmtInCoCodeCrcy | DiffSlsPrcAmtInCoCodeCrcy |
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_PhysInvtryQuery.
-- 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: CPHYSINVTRYQUERY
CREATE VIEW C_PhysInvtryQuery AS
SELECT
FiscalYear,
PhysicalInventoryDocument,
PhysicalInventoryDocumentItem,
Plant,
StorageLocation,
Material,
RealProductBatch AS Batch,
ValuationType,
InventorySpecialStockType,
PhysicalInventoryStockType,
SalesOrder,
SalesOrderItem,
ScheduleLine,
Supplier,
Customer,
WBSElementInternalID,
PhysicalInventoryItemIsCounted,
PhysInvtryDifferenceIsPosted,
PhysInvtryItemIsRecounted,
PhysInvtryItemIsDeleted,
CycleCountType,
PhysicalInventoryType,
InventoryTransactionType,
GoodsMovementType,
PostingIsBlockedForPhysInvtry,
PhysInvtryDocHasQtySnapshot,
PhysicalInventoryLastCountDate,
PostingDate,
ReasonForPhysInvtryDifference,
DocumentDate,
LastChangeDate,
PhysInventoryPlannedCountDate,
FiscalPeriod,
Currency,
PhysicalInventoryGroupType,
PhysicalInventoryGroup,
PhysicalInventoryNumber,
PhysicalInventoryDocumentDesc,
PhysInventoryReferenceNumber,
MaterialDocumentYear,
MaterialDocument,
MaterialDocumentItem,
PhysInvtryRecountDocument,
IsValueOnlyMaterial,
ProductCategory,
CrossPlantConfigurableMaterial,
SalesPriceValuationIsActive,
PhysicalInventoryItemIsZero,
MaterialBaseUnit,
UnitOfEntry,
BookQtyAmountInCoCodeCrcy,
DifferenceAmountInCoCodeCrcy,
NumberOfPhysInvtryItems,
MaxAbsDiffAmountInCoCodeCrcy,
MinAbsDiffAmountInCoCodeCrcy,
PhysInvtryCtAmtInCoCodeCrcy,
BookQtyBfrCountInMatlBaseUnit,
Quantity,
QuantityInUnitOfEntry,
DifferenceQuantityInBaseUnit,
SlsPriceAmountInCoCodeCrcy,
EnteredSlsAmtInCoCodeCrcy,
DiffSlsPrcAmtInCoCodeCrcy
FROM I_PhysInvtryCube AS PhysicalInventoryCube
;
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