C_PhysInvtryMngItmListDocItemQ

DDL: C_PHYSINVTRYMNGITMLISTDOCITEMQ Type: view_entity CONSUMPTION Package: ODATA_MM_IM_PI_MNG_ITEM_LIST

Physical Inventory Document Item Query

C_PhysInvtryMngItmListDocItemQ is a Consumption CDS View that provides data about "Physical Inventory Document Item Query" in SAP S/4HANA. It reads from 1 data source (P_PhysInvtryMngItmListDocItemQ) and exposes 133 fields with key fields FiscalYear, PhysicalInventoryDocument, PhysicalInventoryDocumentItem. It has 12 associations to related views. It is exposed through 2 OData services (ASQL_F8634, UI_PI_MANAGE_ITEM_LIST). Part of development package ODATA_MM_IM_PI_MNG_ITEM_LIST.

Data Sources (1)

SourceAliasJoin Type
P_PhysInvtryMngItmListDocItemQ _PhysicalInventoryDocumentItem from

Parameters (1)

NameTypeDefault
P_Language sylangu

Associations (12)

CardinalityTargetAliasCondition
[1..1] C_PhysInvtryMngItemListDocQry _PhysicalInventoryDocument $projection.PhysicalInventoryDocument = _PhysicalInventoryDocument.PhysicalInventoryDocument and $projection.FiscalYear = _PhysicalInventoryDocument.FiscalYear
[0..*] C_PhysInvtryMngItmListSrlNmbrQ _SerialNumbers $projection.PhysicalInventoryDocument = _SerialNumbers.PhysicalInventoryDocument and $projection.FiscalYear = _SerialNumbers.FiscalYear and $projection.PhysicalInventoryDocumentItem = _SerialNumbers.PhysicalInventoryDocumentItem
[0..*] C_PhysInvtryMngItmListOutpReqQ _PhysInvtryOutpRequestItem $projection.PhysicalInventoryDocument = _PhysInvtryOutpRequestItem.PhysicalInventoryDocument and $projection.FiscalYear = _PhysInvtryOutpRequestItem.FiscalYear and _PhysInvtryOutpRequestItem.OperationIsPrinted <> 'N'
[0..*] C_ChangeDocument_2 _ChangeDocumentsComponent _ChangeDocumentsComponent.ChangeDocObjectClassForEdit = 'INV_BELEG' and _ChangeDocumentsComponent.ChangeDocObjectForEdit = $projection.ChangeDocObject
[1..1] I_GoodsMovementReasonControl _GoodsMovementReasonControl $projection.MovementTypeForReasonCode = _GoodsMovementReasonControl.GoodsMovementType
[0..1] I_GoodsMovementType _GoodsMovementType $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType
[0..1] C_PhysInvtryReasonCode _PhysInvtryReasonCode $projection.MovementTypeForReasonCode = _PhysInvtryReasonCode.MovementTypeForReasonCode and $projection.ReasonForPhysInvtryDifference = _PhysInvtryReasonCode.ReasonForPhysInvtryDifference
[0..1] I_UserContactCard _CountedByUserContactCard $projection.CountedByUser = _CountedByUserContactCard.ContactCardID
[0..1] I_UserContactCard _CreatedByUserContactCard $projection.CreatedByUserName = _CreatedByUserContactCard.ContactCardID
[0..1] I_UserContactCard _AdjustmentByUserContactCard $projection.AdjustmentPostingMadeByUser = _AdjustmentByUserContactCard.ContactCardID
[0..1] I_UserContactCard _LastChangedByUserContactCard $projection.LastChangedByUser = _LastChangedByUserContactCard.ContactCardID
[0..1] I_Batch _Batch $projection.Material = _Batch.Material and $projection.Plant = _Batch.Plant and $projection.Batch = _Batch.Batch

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Physical Inventory Document Item Query view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
OData.applySupportedForAggregation #FULL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view

OData Services (2)

ServiceBindingVersionContractRelease
ASQL_F8634 ASQL_F8634 C2 NOT_RELEASED
UI_PI_MANAGE_ITEM_LIST UI_PI_MANAGE_ITEM_LIST V4 C1 NOT_RELEASED

Fields (133)

KeyFieldSource TableSource FieldDescription
KEY FiscalYear
KEY PhysicalInventoryDocument PhysicalInventoryDocument Physical Inventory Document
KEY PhysicalInventoryDocumentItem PhysicalInventoryDocumentItem Physical Inventory Document Item
Material Material Vehicle Model
ProductName
MaterialDocumentYear MaterialDocumentYear Material Document Year
MaterialDocument MaterialDocument Material Doc.
MaterialDocumentItem MaterialDocumentItem Material Document Item
ChangeDocObject ChangeDocObject Object Value
Plant Plant Valuation Area
PlantName _Plant PlantName Plant Name
StorageLocation StorageLocation StorageLocation
StorageLocationName _StorageLocation StorageLocationName Storage Loc. Name
WarehouseStorageBin WarehouseStorageBin Storage Bin
Batch Batch Lot No.
InventorySpecialStockType InventorySpecialStockType Special Stock Type
InventorySpecialStockTypeName
PhysicalInventoryStockType PhysicalInventoryStockType Stock Type
PhysicalInventoryStockTypeName
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
ScheduleLine ScheduleLine Schedule Line
Supplier Supplier Supplier
SupplierName _Supplier SupplierName Supplier Name
Customer Customer Sold-to Party
CustomerName _Customer CustomerName Name of Customer
LastChangedByUser LastChangedByUser User Name
LastChangedByUserDescription
LastChangeDate LastChangeDate Time Stamp
LastChangeDateTime
CountedByUser CountedByUser Counted By
CountedByUserDescription _CountedByUserContactCard FullName Name
PhysicalInventoryLastCountDate PhysicalInventoryLastCountDate Count Date
AdjustmentPostingMadeByUser AdjustmentPostingMadeByUser Adjustment Posting Made By
AdjmtPostingMadeByUserDesc
PostingDate PostingDate Posting Date for GR
PhysicalInventoryItemIsCounted PhysicalInventoryItemIsCounted Is Counted
PhysInvtryItemIsDeleted PhysInvtryItemIsDeleted Is Deleted
PhysicalInventoryItemIsZero PhysicalInventoryItemIsZero Zero Counted
PhysInvtryRecountDocument PhysInvtryRecountDocument Recount Doc.
Quantity Value
MaterialBaseUnit MaterialBaseUnit Valuation Unit
Currency Currency Valuation Crcy
CycleCountType Cycle Count Type
NmbrOfPhysInvtryPerFiscalYear NmbrOfPhysInvtryPerFiscalYear
PhysInvtryIntvlForCycCounting PhysInvtryIntvlForCycCounting
PhysInvtryFloatTimeCycCounting PhysInvtryFloatTimeCycCounting
ReasonForPhysInvtryDifference ReasonForPhysInvtryDifference Difference Reason
ReasonForPhysInvtryDiffText
BookQtyAmountInCoCodeCrcy Book Value
EnteredSlsAmtInCoCodeCrcy Sales Price Counted Value
SlsPrcAmtInclVATInCoCodeCrcy SalVal inc. VAT
SlsPriceAmountInCoCodeCrcy Sales Price Book Value
DiffSlsPrcAmtInCoCodeCrcy DiffSlsPrcAmtInCoCodeCrcy
CrossPlantConfigurableMaterial CrossPlantConfigurableMaterial Cross-Plant Configurable Material
CrossPlantConfigurableMatlName
PhysInvtryDifferenceIsPosted PhysInvtryDifferenceIsPosted Is Difference Posted
PhysInvtryItemIsRecounted PhysInvtryItemIsRecounted Is Recounted
ProductCategory ProductCategory Prod Category
ProductCategoryDescription
UnitOfEntry UnitOfEntry Unit of Entry
WBSElementExternalID WBSElementExternalID WBS Element External ID
WBSDescription WBSDescription WBS Element Name
DifferenceAmountInCoCodeCrcy Difference Val.
PhysInvtryCtAmtInCoCodeCrcy Counted Quantity Value
MovementTypeForReasonCode MovementTypeForReasonCode
GoodsMovementType GoodsMovementType Movement Type
GoodsMovementTypeName
GoodsMovementReasonControl _GoodsMovementReasonControl GoodsMovementReasonControl
BookQtyBfrCountInMatlBaseUnit Book Quantity
ValuationType ValuationType Valuation Type
PhysInventoryPlannedCountDate
PhysicalInventoryDocumentDesc
PhysInventoryReferenceNumber
PhysicalInventoryNumber
InventoryTransactionType
InventoryTransactionTypeText
DocumentDate
PostingFiscalPeriod
CreatedByUserName
CreatedByUserDescription
PostingIsBlockedForPhysInvtry
PhysInvtryDocHasQtySnapshot
PhysicalInventoryGroupType
PhysicalInventoryGroupTypeName
PhysicalInventoryGroup
PhysicalInventoryType
DifferenceQuantity
DiffCountedBookAmtInCoCodeCry
PhysInvtryDifferenceInPercent PhysInvtryDifferenceInPercent
PhysicalInventoryStatusText
PhysInvtryRecountSourceDoc
PhysInvtryRecountSrceDocIsHdn
PostPhysInvtryDifferenceIsHdn
RecountPhysInvtryDocItmIsHdn
DeleteLogicallyIsHidden
PhysInvtryDocumentIsPrinted PhysInvtryDocumentIsPrinted
ChangeDocumentsIsDisabled ChangeDocumentsIsDisabled
casewhenBatchthenXelseendasUICT_Batch
_CountedByUserContactCard _CountedByUserContactCard
_CreatedByUserContactCard _CreatedByUserContactCard
_AdjustmentByUserContactCard _AdjustmentByUserContactCard
_LastChangedByUserContactCard _LastChangedByUserContactCard
_SerialNumbers _SerialNumbers
_PhysicalInventoryDocument _PhysicalInventoryDocument
_GoodsMovementType _GoodsMovementType
_PhysInvtryOutpRequestItem _PhysInvtryOutpRequestItem
_ChangeDocumentsComponent _ChangeDocumentsComponent
_PhysInvtryReasonCode _PhysInvtryReasonCode
_CrossPlantConfigurableMatl P_PhysInvtryMngItmListDocItemQ _CrossPlantConfigurableMatl
_CrossPlantConfigurableProd P_PhysInvtryMngItmListDocItemQ _CrossPlantConfigurableProd
_Currency P_PhysInvtryMngItmListDocItemQ _Currency
_Customer P_PhysInvtryMngItmListDocItemQ _Customer
_CustomerCompanyByPlant P_PhysInvtryMngItmListDocItemQ _CustomerCompanyByPlant
_InventorySpecialStockType P_PhysInvtryMngItmListDocItemQ _InventorySpecialStockType
_Material P_PhysInvtryMngItmListDocItemQ _Material
_MaterialBaseUnit P_PhysInvtryMngItmListDocItemQ _MaterialBaseUnit
_PhysicalInventoryStockType P_PhysInvtryMngItmListDocItemQ _PhysicalInventoryStockType
_PhysInvtryDocFiscalYear P_PhysInvtryMngItmListDocItemQ _PhysInvtryDocFiscalYear
_PhysInvtryDocHeader P_PhysInvtryMngItmListDocItemQ _PhysInvtryDocHeader
_PhysInvtryStatusT P_PhysInvtryMngItmListDocItemQ _PhysInvtryStatusT
_Plant P_PhysInvtryMngItmListDocItemQ _Plant
_Product P_PhysInvtryMngItmListDocItemQ _Product
_ProductCategory P_PhysInvtryMngItmListDocItemQ _ProductCategory
_SalesOrder P_PhysInvtryMngItmListDocItemQ _SalesOrder
_SalesOrderItem P_PhysInvtryMngItmListDocItemQ _SalesOrderItem
_SalesOrderScheduleLine P_PhysInvtryMngItmListDocItemQ _SalesOrderScheduleLine
_StorageLocation P_PhysInvtryMngItmListDocItemQ _StorageLocation
_Supplier P_PhysInvtryMngItmListDocItemQ _Supplier
_SupplierCompanyByPlant P_PhysInvtryMngItmListDocItemQ _SupplierCompanyByPlant
_UnitOfEntry P_PhysInvtryMngItmListDocItemQ _UnitOfEntry
_ProductPlantBasic P_PhysInvtryMngItmListDocItemQ _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 C_PhysInvtryMngItmListDocItemQ.
-- 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.
-- Parameters: P_Language : sylangu

CREATE VIEW C_PhysInvtryMngItmListDocItemQ AS
SELECT
  cast(_PhysicalInventoryDocumentItem.FiscalYear as fis_gjahr_no_conv preserving type) AS FiscalYear,
  PhysicalInventoryDocument,
  PhysicalInventoryDocumentItem,
  Material,
  cast(_Product._Text[1: Language = $parameters.P_Language].ProductName as maktx preserving type ) AS ProductName,
  MaterialDocumentYear,
  MaterialDocument,
  MaterialDocumentItem,
  ChangeDocObject,
  Plant,
  _Plant.PlantName AS PlantName,
  StorageLocation,
  _StorageLocation.StorageLocationName AS StorageLocationName,
  WarehouseStorageBin,
  Batch,
  InventorySpecialStockType,
  _InventorySpecialStockType._Text[1: Language = $parameters.P_Language].InventorySpecialStockTypeName AS InventorySpecialStockTypeName,
  PhysicalInventoryStockType,
  _PhysicalInventoryStockType._Text[1: Language = $parameters.P_Language].PhysicalInventoryStockTypeName AS PhysicalInventoryStockTypeName,
  SalesOrder,
  SalesOrderItem,
  ScheduleLine,
  Supplier,
  _Supplier.SupplierName AS SupplierName,
  Customer,
  _Customer.CustomerName AS CustomerName,
  LastChangedByUser,
  cast(_LastChangeUser.UserDescription as im_pi_changed_by_user_desc) AS LastChangedByUserDescription,
  LastChangeDate,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).LastChangeDateTime AS LastChangeDateTime,
  CountedByUser,
  _CountedByUserContactCard.FullName AS CountedByUserDescription,
  PhysicalInventoryLastCountDate,
  AdjustmentPostingMadeByUser,
  cast(_AdjustmentPostingMadeByUser.UserDescription as pi_adjustment_posting_usr_desc) AS AdjmtPostingMadeByUserDesc,
  PostingDate,
  PhysicalInventoryItemIsCounted,
  PhysInvtryItemIsDeleted,
  PhysicalInventoryItemIsZero,
  PhysInvtryRecountDocument,
  cast(Quantity as pi_item_cntd_qty_16_3) AS Quantity,
  MaterialBaseUnit,
  Currency,
  cast(CycleCountType as mmim_cycle_count_type preserving type) AS CycleCountType,
  NmbrOfPhysInvtryPerFiscalYear,
  PhysInvtryIntvlForCycCounting,
  PhysInvtryFloatTimeCycCounting,
  ReasonForPhysInvtryDifference,
  _PhysInvtryReasonCode._PhysInvtryReasonCodeText[1: Language = $parameters.P_Language].ReasonForPhysInvtryDiffText AS ReasonForPhysInvtryDiffText,
  cast(BookQtyAmountInCoCodeCrcy as pi_item_book_value_16) AS BookQtyAmountInCoCodeCrcy,
  cast(EnteredSlsAmtInCoCodeCrcy as pi_item_ext_value_sp_16) AS EnteredSlsAmtInCoCodeCrcy,
  cast(SlsPrcAmtInclVATInCoCodeCrcy as pi_vkwrt_16) AS SlsPrcAmtInclVATInCoCodeCrcy,
  cast(SlsPriceAmountInCoCodeCrcy as pi_item_sp_of_book_value_16) AS SlsPriceAmountInCoCodeCrcy,
  DiffSlsPrcAmtInCoCodeCrcy,
  CrossPlantConfigurableMaterial,
  _CrossPlantConfigurableMatl._Text[1: Language = $parameters.P_Language].MaterialName AS CrossPlantConfigurableMatlName,
  PhysInvtryDifferenceIsPosted,
  PhysInvtryItemIsRecounted,
  ProductCategory,
  _ProductCategory._Text[1: Language = $parameters.P_Language].Name AS ProductCategoryDescription,
  UnitOfEntry,
  WBSElementExternalID,
  WBSDescription,
  cast(DifferenceAmountInCoCodeCrcy as pi_item_diff_value_16) AS DifferenceAmountInCoCodeCrcy,
  cast(PhysInvtryCtAmtInCoCodeCrcy as pi_item_counted_qty_value_16) AS PhysInvtryCtAmtInCoCodeCrcy,
  MovementTypeForReasonCode,
  GoodsMovementType,
  _GoodsMovementType._Text[1: Language = $parameters.P_Language].GoodsMovementTypeName AS GoodsMovementTypeName,
  _GoodsMovementReasonControl.GoodsMovementReasonControl AS GoodsMovementReasonControl,
  cast(BookQtyBfrCountInMatlBaseUnit as pi_buchm_16_3) AS BookQtyBfrCountInMatlBaseUnit,
  ValuationType,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).PhysInventoryPlannedCountDate AS PhysInventoryPlannedCountDate,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).PhysicalInventoryDocumentDesc AS PhysicalInventoryDocumentDesc,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).PhysInventoryReferenceNumber AS PhysInventoryReferenceNumber,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).PhysicalInventoryNumber AS PhysicalInventoryNumber,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).InventoryTransactionType AS InventoryTransactionType,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language)._InventoryTransactionType._Text[1: Language = $parameters.P_Language].InventoryTransactionTypeText AS InventoryTransactionTypeText,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).DocumentDate AS DocumentDate,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).PostingFiscalPeriod AS PostingFiscalPeriod,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).CreatedByUserName AS CreatedByUserName,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language)._CreatedByUser.UserDescription AS CreatedByUserDescription,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).PostingIsBlockedForPhysInvtry AS PostingIsBlockedForPhysInvtry,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).PhysInvtryDocHasQtySnapshot AS PhysInvtryDocHasQtySnapshot,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).PhysicalInventoryGroupType AS PhysicalInventoryGroupType,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language)._PhysInvtryGroupType._Text[1: Language = $parameters.P_Language].PhysicalInventoryGroupTypeName AS PhysicalInventoryGroupTypeName,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).PhysicalInventoryGroup AS PhysicalInventoryGroup,
  _PhysicalInventoryDocument(P_Language: $parameters.P_Language).PhysicalInventoryType AS PhysicalInventoryType,
  cast(DifferenceQuantity as pi_item_diff_qty_i_base_unit16) AS DifferenceQuantity,
  cast(DiffCountedBookAmtInCoCodeCry as mmim_pi_dif_count_book_value16) AS DiffCountedBookAmtInCoCodeCry,
  PhysInvtryDifferenceInPercent,
  _PhysInvtryStatusT[1: Language = $parameters.P_Language].PhysicalInventoryStatusText AS PhysicalInventoryStatusText,
  cast(' ' as pi_source_document preserving type) AS PhysInvtryRecountSourceDoc,
  cast('' as boole_d preserving type) AS PhysInvtryRecountSrceDocIsHdn,
  cast('' as boole_d preserving type) AS PostPhysInvtryDifferenceIsHdn,
  cast('' as boole_d preserving type) AS RecountPhysInvtryDocItmIsHdn,
  cast('' as boole_d preserving type) AS DeleteLogicallyIsHidden,
  PhysInvtryDocumentIsPrinted,
  ChangeDocumentsIsDisabled,
  case when Batch = '' then 'X' else ' ' end as UICT_Batch AS casewhenBatchthenXelseendasUICT_Batch,
  _PhysicalInventoryDocumentItem._CrossPlantConfigurableMatl AS _CrossPlantConfigurableMatl,
  _PhysicalInventoryDocumentItem._CrossPlantConfigurableProd AS _CrossPlantConfigurableProd,
  _PhysicalInventoryDocumentItem._Currency AS _Currency,
  _PhysicalInventoryDocumentItem._Customer AS _Customer,
  _PhysicalInventoryDocumentItem._CustomerCompanyByPlant AS _CustomerCompanyByPlant,
  _PhysicalInventoryDocumentItem._InventorySpecialStockType AS _InventorySpecialStockType,
  _PhysicalInventoryDocumentItem._Material AS _Material,
  _PhysicalInventoryDocumentItem._MaterialBaseUnit AS _MaterialBaseUnit,
  _PhysicalInventoryDocumentItem._PhysicalInventoryStockType AS _PhysicalInventoryStockType,
  _PhysicalInventoryDocumentItem._PhysInvtryDocFiscalYear AS _PhysInvtryDocFiscalYear,
  _PhysicalInventoryDocumentItem._PhysInvtryDocHeader AS _PhysInvtryDocHeader,
  _PhysicalInventoryDocumentItem._PhysInvtryStatusT AS _PhysInvtryStatusT,
  _PhysicalInventoryDocumentItem._Plant AS _Plant,
  _PhysicalInventoryDocumentItem._Product AS _Product,
  _PhysicalInventoryDocumentItem._ProductCategory AS _ProductCategory,
  _PhysicalInventoryDocumentItem._SalesOrder AS _SalesOrder,
  _PhysicalInventoryDocumentItem._SalesOrderItem AS _SalesOrderItem,
  _PhysicalInventoryDocumentItem._SalesOrderScheduleLine AS _SalesOrderScheduleLine,
  _PhysicalInventoryDocumentItem._StorageLocation AS _StorageLocation,
  _PhysicalInventoryDocumentItem._Supplier AS _Supplier,
  _PhysicalInventoryDocumentItem._SupplierCompanyByPlant AS _SupplierCompanyByPlant,
  _PhysicalInventoryDocumentItem._UnitOfEntry AS _UnitOfEntry,
  _PhysicalInventoryDocumentItem._ProductPlantBasic AS _ProductPlantBasic
FROM P_PhysInvtryMngItmListDocItemQ AS _PhysicalInventoryDocumentItem
LEFT OUTER JOIN C_PhysInvtryMngItemListDocQry AS _PhysicalInventoryDocument ON PhysicalInventoryDocument = _PhysicalInventoryDocument.PhysicalInventoryDocument AND FiscalYear = _PhysicalInventoryDocument.FiscalYear  -- association [1..1]
LEFT OUTER JOIN C_PhysInvtryMngItmListSrlNmbrQ AS _SerialNumbers ON PhysicalInventoryDocument = _SerialNumbers.PhysicalInventoryDocument AND FiscalYear = _SerialNumbers.FiscalYear AND PhysicalInventoryDocumentItem = _SerialNumbers.PhysicalInventoryDocumentItem  -- association [0..*]
LEFT OUTER JOIN C_PhysInvtryMngItmListOutpReqQ AS _PhysInvtryOutpRequestItem ON PhysicalInventoryDocument = _PhysInvtryOutpRequestItem.PhysicalInventoryDocument AND FiscalYear = _PhysInvtryOutpRequestItem.FiscalYear AND _PhysInvtryOutpRequestItem.OperationIsPrinted <> 'N'  -- association [0..*]
LEFT OUTER JOIN C_ChangeDocument_2 AS _ChangeDocumentsComponent ON _ChangeDocumentsComponent.ChangeDocObjectClassForEdit = 'INV_BELEG' AND _ChangeDocumentsComponent.ChangeDocObjectForEdit = ChangeDocObject  -- association [0..*]
LEFT OUTER JOIN I_GoodsMovementReasonControl AS _GoodsMovementReasonControl ON MovementTypeForReasonCode = _GoodsMovementReasonControl.GoodsMovementType  -- association [1..1]
LEFT OUTER JOIN I_GoodsMovementType AS _GoodsMovementType ON GoodsMovementType = _GoodsMovementType.GoodsMovementType  -- association [0..1]
LEFT OUTER JOIN C_PhysInvtryReasonCode AS _PhysInvtryReasonCode ON MovementTypeForReasonCode = _PhysInvtryReasonCode.MovementTypeForReasonCode AND ReasonForPhysInvtryDifference = _PhysInvtryReasonCode.ReasonForPhysInvtryDifference  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _CountedByUserContactCard ON CountedByUser = _CountedByUserContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByUserContactCard ON CreatedByUserName = _CreatedByUserContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _AdjustmentByUserContactCard ON AdjustmentPostingMadeByUser = _AdjustmentByUserContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _LastChangedByUserContactCard ON LastChangedByUser = _LastChangedByUserContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_Batch AS _Batch ON Material = _Batch.Material AND Plant = _Batch.Plant AND Batch = _Batch.Batch  -- association [0..1]
;