C_PhysInvtryDocItemObjPage

DDL: C_PHYSINVTRYDOCITEMOBJPAGE SQL: CPIDOCITEMOP Type: view CONSUMPTION

PI Document Item Object Page

C_PhysInvtryDocItemObjPage is a Consumption CDS View that provides data about "PI Document Item Object Page" in SAP S/4HANA. It reads from 1 data source (P_PhysInvtryDocItem) and exposes 91 fields with key fields FiscalYear, PhysicalInventoryDocument, PhysicalInventoryDocumentItem. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_PhysInvtryDocItem P_PhysInvtryDocItem from

Parameters (1)

NameTypeDefault
P_Language sylangu

Associations (9)

CardinalityTargetAliasCondition
[0..*] C_PhysInvtryDocSrlNmbrObjPage _PhysInvtryDocSrlNmbrObjPage $projection.PhysicalInventoryDocument = _PhysInvtryDocSrlNmbrObjPage.PhysicalInventoryDocument and $projection.FiscalYear = _PhysInvtryDocSrlNmbrObjPage.FiscalYear and $projection.PhysicalInventoryDocumentItem = _PhysInvtryDocSrlNmbrObjPage.PhysicalInventoryDocumentItem
[0..1] I_WBSElementByInternalKey _WBSElement $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID and $projection.WBSElementInternalID <> '00000000'
[1..1] I_Product _Product $projection.Material = _Product.Product
[1..1] I_ProductPlant _ProductPlant $projection.Material = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant
[1..1] I_Batch _Batch $projection.Material = _Batch.Material and $projection.Plant = _Batch.Plant and $projection.Batch = _Batch.Batch
[1..1] I_GoodsMovementReasonControl _GoodsMovementReasonControl $projection.GoodsMovementType = _GoodsMovementReasonControl.GoodsMovementType
[1..*] I_PhysInvtryReasonCode _PhysInvtryReasonCode $projection.GoodsMovementType = _PhysInvtryReasonCode.GoodsMovementType
[0..1] I_PhysInvtryDocPrintCount _PhysInvtryDocPrintCount $projection.PhysicalInventoryDocument = _PhysInvtryDocPrintCount.PhysicalInventoryDocument and $projection.FiscalYear = _PhysInvtryDocPrintCount.FiscalYear and $projection.PhysicalInventoryDocumentItem = _PhysInvtryDocPrintCount.PhysicalInventoryDocumentItem
[0..1] E_PhysInvtryDocumentItem _Extension $projection.FiscalYear = _Extension.FiscalYear and $projection.PhysicalInventoryDocument = _Extension.PhysicalInventoryDocument and $projection.PhysicalInventoryDocumentItem = _Extension.PhysicalInventoryDocumentItem

Annotations (15)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName CPIDOCITEMOP view
EndUserText.label PI Document Item Object Page view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED 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 #CONSUMPTION view
UI.headerInfo.typeName Physical Inventory Document Item view
UI.headerInfo.title.label Physical Inventory Document Item view
UI.headerInfo.title.value PhysicalInventoryDocumentItem view

Fields (91)

KeyFieldSource TableSource FieldDescription
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY PhysicalInventoryDocument PhysicalInventoryDocument Physical Inventory Document
KEY PhysicalInventoryDocumentItem PhysicalInventoryDocumentItem Physical Inventory Document Item
SitnNumberOfInstances _SitnInstceIndicator SitnNumberOfInstances
PhysInvtrySitnID PhysInvtrySitnID
Material Material Vehicle Model
Language
Plant Plant Valuation Area
StorageLocation StorageLocation StorageLocation
WarehouseStorageBin _ProductStorageLocation WarehouseStorageBin Storage Bin
Batch RealProductBatch
ValuationType ValuationType Valuation Type
InventorySpecialStockType InventorySpecialStockType Special Stock Type
GoodsMovementType GoodsMovementType Movement Type
GoodsMovementReasonControl _GoodsMovementReasonControl GoodsMovementReasonControl
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
LastChangeUser LastChangeUser User Name
LastChangeUserDescription _LastChangeUser UserDescription Full Name
LastChangeDate LastChangeDate Time Stamp
CountedByUser CountedByUser Counted By
CountedByUserDescription _CountedByUser UserDescription Full Name
PhysicalInventoryLastCountDate PhysicalInventoryLastCountDate Count Date
AdjustmentPostingMadeByUser AdjustmentPostingMadeByUser Adjustment Posting Made By
AdjmtPostingMadeByUserDesc _AdjustmentPostingMadeByUser UserDescription Full Name
PostingDate PostingDate Posting Date for GR
PhysInventoryReferenceNumber PhysInventoryReferenceNumber Physical Inventory Reference
PhysicalInventoryStatusText
IsHandledInAltvUnitOfMsr IsHandledInAltvUnitOfMsr Without Unit of Measure Proposal
PhysicalInventoryItemIsZero PhysicalInventoryItemIsZero Zero Counted
QuantityInUnitOfEntry QuantityInUnitOfEntry Quantity in UnE
Quantity Quantity Value
BookQtyBfrCountInMatlBaseUnit BookQtyBfrCountInMatlBaseUnit Book Quantity
DifferenceQuantityInBaseUnit DifferenceQuantityInBaseUnit
MaterialBaseUnit MaterialBaseUnit Valuation Unit
UnitOfEntry UnitOfEntry Unit of Entry
Currency Currency Valuation Crcy
SlsPriceAmountInCoCodeCrcy SlsPriceAmountInCoCodeCrcy Sales Price Book Value
PhysInvtryCtAmtInCoCodeCrcy PhysInvtryCtAmtInCoCodeCrcy Counted Quantity Value
BookQtyAmountInCoCodeCrcy BookQtyAmountInCoCodeCrcy Book Value
DifferenceAmountInCoCodeCrcy DifferenceAmountInCoCodeCrcy Difference Val.
DiffCountedBookAmtInCoCodeCry DiffCountedBookAmtInCoCodeCry
EnteredSlsAmtInCoCodeCrcy EnteredSlsAmtInCoCodeCrcy Sales Price Counted Value
DiffSlsPrcAmtInCoCodeCrcy DiffSlsPrcAmtInCoCodeCrcy
IsValueOnlyMaterial IsValueOnlyMaterial Is Value-Only Material
MaterialDocument MaterialDocument Material Doc.
MaterialDocumentYear MaterialDocumentYear Material Document Year
MaterialDocumentItem MaterialDocumentItem Material Document Item
PhysInvtryRecountDocument PhysInvtryRecountDocument Recount Doc.
CycleCountType Cycle Count Type
NmbrOfPhysInvtryPerFiscalYear NmbrOfPhysInvtryPerFiscalYear
PhysInvtryIntvlForCycCounting PhysInvtryIntvlForCycCounting
PhysInvtryFloatTimeCycCounting PhysInvtryFloatTimeCycCounting
WBSElementInternalID WBSElementInternalID WBS Internal ID
WBSElement _WBSElement WBSElement WBS Internal ID
WBSDescription _WBSElement WBSDescription WBS Element Name
ProductCategory ProductCategory Prod Category
ReasonForPhysInvtryDifference ReasonForPhysInvtryDifference Difference Reason
CrossPlantConfigurableMaterial CrossPlantConfigurableMaterial Cross-Plant Configurable Material
PhysInvtryDiffIsDistributed PhysInvtryDiffIsDistributed Difference Distributed
PhysicalInventoryNumber _PhysInvtryDocHeader PhysicalInventoryNumber Physical Inventory Number
MaterialName
PhysicalInventoryItemIsCounted PhysicalInventoryItemIsCounted Is Counted
PhysInvtryDifferenceIsPosted PhysInvtryDifferenceIsPosted Is Difference Posted
PhysInvtryItemIsDeleted PhysInvtryItemIsDeleted Is Deleted
PhysInvtryDocHasQtySnapshot _PhysInvtryDocHeader PhysInvtryDocHasQtySnapshot Book Inventory Freeze
SalesPriceValuationIsActive _PhysInvtryDocHeader SalesPriceValuationIsActive Is Sales Price Valuation Active
SerialNumberProfile _ProductPlant SerialNumberProfile SerialNoProfile
_PhysInvtryDocSrlNmbrObjPage _PhysInvtryDocSrlNmbrObjPage
UnitOfMeasure
_Material _Material
_Plant _Plant
_StorageLocation _StorageLocation
_Customer _Customer
_Supplier _Supplier
_InventorySpecialStockType _InventorySpecialStockType
_PhysInvtryReasonCode _PhysInvtryReasonCode
_GoodsMovementType _GoodsMovementType
_PhysicalInventoryStockType _PhysicalInventoryStockType
_ProductCategory _ProductCategory
_CrossPlantConfigurableMatl _CrossPlantConfigurableMatl
_SupplierCompanyByPlant _SupplierCompanyByPlant
_CustomerCompanyByPlant _CustomerCompanyByPlant
_GoodsMovementReasonControl _GoodsMovementReasonControl
_Product _Product
_ProductPlant _ProductPlant
_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 C_PhysInvtryDocItemObjPage.
-- 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: CPIDOCITEMOP
-- Parameters: P_Language : sylangu

CREATE VIEW C_PhysInvtryDocItemObjPage AS
SELECT
  FiscalYear,
  PhysicalInventoryDocument,
  PhysicalInventoryDocumentItem,
  _SitnInstceIndicator.SitnNumberOfInstances AS SitnNumberOfInstances,
  PhysInvtrySitnID,
  Material,
  Plant,
  StorageLocation,
  _ProductStorageLocation.WarehouseStorageBin AS WarehouseStorageBin,
  RealProductBatch AS Batch,
  ValuationType,
  InventorySpecialStockType,
  GoodsMovementType,
  _GoodsMovementReasonControl.GoodsMovementReasonControl AS GoodsMovementReasonControl,
  PhysicalInventoryStockType,
  SalesOrder,
  SalesOrderItem,
  ScheduleLine,
  Supplier,
  Customer,
  LastChangeUser,
  _LastChangeUser.UserDescription AS LastChangeUserDescription,
  LastChangeDate,
  CountedByUser,
  _CountedByUser.UserDescription AS CountedByUserDescription,
  PhysicalInventoryLastCountDate,
  AdjustmentPostingMadeByUser,
  _AdjustmentPostingMadeByUser.UserDescription AS AdjmtPostingMadeByUserDesc,
  PostingDate,
  PhysInventoryReferenceNumber,
  _PhysInvtryStatusT[1: Language=$parameters.P_Language].PhysicalInventoryStatusText AS PhysicalInventoryStatusText,
  IsHandledInAltvUnitOfMsr,
  PhysicalInventoryItemIsZero,
  QuantityInUnitOfEntry,
  Quantity,
  BookQtyBfrCountInMatlBaseUnit,
  DifferenceQuantityInBaseUnit,
  MaterialBaseUnit,
  UnitOfEntry,
  Currency,
  SlsPriceAmountInCoCodeCrcy,
  PhysInvtryCtAmtInCoCodeCrcy,
  BookQtyAmountInCoCodeCrcy,
  DifferenceAmountInCoCodeCrcy,
  DiffCountedBookAmtInCoCodeCry,
  EnteredSlsAmtInCoCodeCrcy,
  DiffSlsPrcAmtInCoCodeCrcy,
  IsValueOnlyMaterial,
  MaterialDocument,
  MaterialDocumentYear,
  MaterialDocumentItem,
  PhysInvtryRecountDocument,
  cast( CycleCountType as mmim_cycle_count_type ) AS CycleCountType,
  NmbrOfPhysInvtryPerFiscalYear,
  PhysInvtryIntvlForCycCounting,
  PhysInvtryFloatTimeCycCounting,
  WBSElementInternalID,
  _WBSElement.WBSElement AS WBSElement,
  _WBSElement.WBSDescription AS WBSDescription,
  ProductCategory,
  ReasonForPhysInvtryDifference,
  CrossPlantConfigurableMaterial,
  PhysInvtryDiffIsDistributed,
  _PhysInvtryDocHeader.PhysicalInventoryNumber AS PhysicalInventoryNumber,
  _Material._Text[1: Language=$session.system_language].MaterialName AS MaterialName,
  PhysicalInventoryItemIsCounted,
  PhysInvtryDifferenceIsPosted,
  PhysInvtryItemIsDeleted,
  _PhysInvtryDocHeader.PhysInvtryDocHasQtySnapshot AS PhysInvtryDocHasQtySnapshot,
  _PhysInvtryDocHeader.SalesPriceValuationIsActive AS SalesPriceValuationIsActive,
  _ProductPlant.SerialNumberProfile AS SerialNumberProfile,
  cast( cast( '10' as char3) as msehi) AS UnitOfMeasure
FROM P_PhysInvtryDocItem
LEFT OUTER JOIN C_PhysInvtryDocSrlNmbrObjPage AS _PhysInvtryDocSrlNmbrObjPage ON PhysicalInventoryDocument = _PhysInvtryDocSrlNmbrObjPage.PhysicalInventoryDocument AND FiscalYear = _PhysInvtryDocSrlNmbrObjPage.FiscalYear AND PhysicalInventoryDocumentItem = _PhysInvtryDocSrlNmbrObjPage.PhysicalInventoryDocumentItem  -- association [0..*]
LEFT OUTER JOIN I_WBSElementByInternalKey AS _WBSElement ON WBSElementInternalID = _WBSElement.WBSElementInternalID AND WBSElementInternalID <> '00000000'  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND Plant = _ProductPlant.Plant  -- 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 I_GoodsMovementReasonControl AS _GoodsMovementReasonControl ON GoodsMovementType = _GoodsMovementReasonControl.GoodsMovementType  -- association [1..1]
LEFT OUTER JOIN I_PhysInvtryReasonCode AS _PhysInvtryReasonCode ON GoodsMovementType = _PhysInvtryReasonCode.GoodsMovementType  -- association [1..*]
LEFT OUTER JOIN I_PhysInvtryDocPrintCount AS _PhysInvtryDocPrintCount ON PhysicalInventoryDocument = _PhysInvtryDocPrintCount.PhysicalInventoryDocument AND FiscalYear = _PhysInvtryDocPrintCount.FiscalYear AND PhysicalInventoryDocumentItem = _PhysInvtryDocPrintCount.PhysicalInventoryDocumentItem  -- association [0..1]
LEFT OUTER JOIN E_PhysInvtryDocumentItem AS _Extension ON FiscalYear = _Extension.FiscalYear AND PhysicalInventoryDocument = _Extension.PhysicalInventoryDocument AND PhysicalInventoryDocumentItem = _Extension.PhysicalInventoryDocumentItem  -- association [0..1]
;