I_AugmentedPhysInvtryDocItem
Augmented Physical Inventory Doc Item
I_AugmentedPhysInvtryDocItem is a Composite CDS View that provides data about "Augmented Physical Inventory Doc Item" in SAP S/4HANA. It reads from 1 data source (I_PhysInvtryDocItem) and exposes 74 fields with key fields FiscalYear, PhysicalInventoryDocument, PhysicalInventoryDocumentItem. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PhysInvtryDocItem | I_PhysInvtryDocItem | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_AdjmtPostingMovementType | _AdjmtPostingMovementType | $projection.PhysicalInventoryStockType = _AdjmtPostingMovementType.PhysicalInventoryStockType and $projection.InventorySpecialStockType = _AdjmtPostingMovementType.InventorySpecialStockType |
| [0..1] | I_GoodsMovementType | _GoodsMovementType | $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | IAUPIDOCITEM | view | |
| EndUserText.label | Augmented Physical Inventory Doc Item | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | false | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (74)
| 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 | |
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| Material | Material | Vehicle Model | ||
| RealProductBatch | RealProductBatch | |||
| Batch | Batch | Lot No. | ||
| 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 | ||
| PhysicalInventoryLastCountDate | PhysicalInventoryLastCountDate | Count Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| ReasonForPhysInvtryDifference | ReasonForPhysInvtryDifference | Difference Reason | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| PhysInvtryDiffIsDistributed | PhysInvtryDiffIsDistributed | Difference Distributed | ||
| Currency | Currency | Valuation Crcy | ||
| MaterialDocumentYear | MaterialDocumentYear | Material Document Year | ||
| MaterialDocument | MaterialDocument | Material Doc. | ||
| MaterialDocumentItem | MaterialDocumentItem | Material Document Item | ||
| PhysInvtryRecountDocument | PhysInvtryRecountDocument | Recount Doc. | ||
| IsValueOnlyMaterial | IsValueOnlyMaterial | Is Value-Only Material | ||
| IsHandledInAltvUnitOfMsr | IsHandledInAltvUnitOfMsr | Without Unit of Measure Proposal | ||
| ProductCategory | ProductCategory | Prod Category | ||
| CrossPlantConfigurableMaterial | CrossPlantConfigurableMaterial | Cross-Plant Configurable Material | ||
| BookQtyBfrCountInMatlBaseUnit | BookQtyBfrCountInMatlBaseUnit | Book Quantity | ||
| PhysicalInventoryItemIsZero | PhysicalInventoryItemIsZero | Zero Counted | ||
| Quantity | Quantity | Value | ||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| QuantityInUnitOfEntry | QuantityInUnitOfEntry | Quantity in UnE | ||
| DifferenceQuantityInBaseUnit | ||||
| UnitOfEntry | UnitOfEntry | Unit of Entry | ||
| EnteredSlsAmtInCoCodeCrcy | EnteredSlsAmtInCoCodeCrcy | Sales Price Counted Value | ||
| SlsPriceAmountInCoCodeCrcy | SlsPriceAmountInCoCodeCrcy | Sales Price Book Value | ||
| PhysInvtryCtAmtInCoCodeCrcy | PhysInvtryCtAmtInCoCodeCrcy | Counted Quantity Value | ||
| BookQtyAmountInCoCodeCrcy | BookQtyAmountInCoCodeCrcy | Book Value | ||
| MaxAbsDiffAmountInCoCodeCrcy | Difference Val. | |||
| MinAbsDiffAmountInCoCodeCrcy | Difference Val. | |||
| DiffSlsPrcAmtInCoCodeCrcy | ||||
| NumberOfPhysInvtryItems | ||||
| _WBSElement | _WBSElement | |||
| _AdjmtPostingMovementType | _AdjmtPostingMovementType | |||
| _Material | _Material | |||
| _ProductPlant | _ProductPlant | |||
| _ProductStorageLocation | _ProductStorageLocation | |||
| _CrossPlantConfigurableMatl | _CrossPlantConfigurableMatl | |||
| _MaterialBaseUnit | _MaterialBaseUnit | |||
| _UnitOfEntry | _UnitOfEntry | |||
| _Currency | _Currency | |||
| _Supplier | _Supplier | |||
| _Customer | _Customer | |||
| _SalesOrder | _SalesOrder | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _SalesOrderScheduleLine | _SalesOrderScheduleLine | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _PhysInvtryDocHeader | _PhysInvtryDocHeader | |||
| _PhysicalInventoryStockType | _PhysicalInventoryStockType | |||
| _InventorySpecialStockType | _InventorySpecialStockType | |||
| _ProductCategory | _ProductCategory | |||
| _GoodsMovementType | _GoodsMovementType | |||
| _SupplierCompanyByPlant | _SupplierCompanyByPlant | |||
| _CustomerCompanyByPlant | _CustomerCompanyByPlant |
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_AugmentedPhysInvtryDocItem.
-- 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: IAUPIDOCITEM
CREATE VIEW I_AugmentedPhysInvtryDocItem AS
SELECT
FiscalYear,
PhysicalInventoryDocument,
PhysicalInventoryDocumentItem,
Plant,
StorageLocation,
Material,
RealProductBatch,
Batch,
ValuationType,
InventorySpecialStockType,
PhysicalInventoryStockType,
SalesOrder,
SalesOrderItem,
ScheduleLine,
Supplier,
Customer,
WBSElementInternalID,
PhysicalInventoryItemIsCounted,
PhysInvtryDifferenceIsPosted,
PhysInvtryItemIsRecounted,
PhysInvtryItemIsDeleted,
CycleCountType,
PhysicalInventoryLastCountDate,
PostingDate,
ReasonForPhysInvtryDifference,
LastChangeDate,
PhysInvtryDiffIsDistributed,
Currency,
MaterialDocumentYear,
MaterialDocument,
MaterialDocumentItem,
PhysInvtryRecountDocument,
IsValueOnlyMaterial,
IsHandledInAltvUnitOfMsr,
ProductCategory,
CrossPlantConfigurableMaterial,
BookQtyBfrCountInMatlBaseUnit,
PhysicalInventoryItemIsZero,
Quantity,
MaterialBaseUnit,
QuantityInUnitOfEntry,
cast ((Quantity - BookQtyBfrCountInMatlBaseUnit) as pi_item_diff_qty_i_base_unit preserving type ) AS DifferenceQuantityInBaseUnit,
UnitOfEntry,
EnteredSlsAmtInCoCodeCrcy,
SlsPriceAmountInCoCodeCrcy,
PhysInvtryCtAmtInCoCodeCrcy,
BookQtyAmountInCoCodeCrcy,
cast(DifferenceAmountInCoCodeCrcy as pi_item_max_diff_value preserving type ) AS MaxAbsDiffAmountInCoCodeCrcy,
cast(DifferenceAmountInCoCodeCrcy as pi_item_min_diff_value preserving type ) AS MinAbsDiffAmountInCoCodeCrcy,
cast((EnteredSlsAmtInCoCodeCrcy - SlsPriceAmountInCoCodeCrcy) as pi_item_diff_sls_prc_co_cry2 preserving type ) AS DiffSlsPrcAmtInCoCodeCrcy,
cast( 1 as pi_number_of_items) AS NumberOfPhysInvtryItems
FROM I_PhysInvtryDocItem
LEFT OUTER JOIN I_AdjmtPostingMovementType AS _AdjmtPostingMovementType ON PhysicalInventoryStockType = _AdjmtPostingMovementType.PhysicalInventoryStockType AND InventorySpecialStockType = _AdjmtPostingMovementType.InventorySpecialStockType -- association [0..1]
LEFT OUTER JOIN I_GoodsMovementType AS _GoodsMovementType ON GoodsMovementType = _GoodsMovementType.GoodsMovementType -- association [0..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