R_PhysInvtryDocumentItemTP

DDL: R_PHYSINVTRYDOCUMENTITEMTP Type: view_entity TRANSACTIONAL Package: MM_IM_RAP_PI

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 92 fields with key fields FiscalYear, PhysicalInventoryDocument, PhysicalInventoryDocumentItem. It has 4 associations to related views. Part of development package MM_IM_RAP_PI.

Data Sources (1)

SourceAliasJoin Type
P_PhysInvtryDocItem2 P_PhysInvtryDocItem2 from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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 (92)

KeyFieldSource TableSource FieldDescription
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
_ProductText _ProductText
_CrossPlantConfigProductText _CrossPlantConfigProductText
_InventorySpecialStockTypeText _InventorySpecialStockTypeText
_PhysInvtryStockTypeText _PhysInvtryStockTypeText
_ProductCategoryText _ProductCategoryText
_EnterpriseProjectElement _EnterpriseProjectElement

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..*]
;