C_InhRepairItemPrecheckObjPg

DDL: C_INHREPAIRITEMPRECHECKOBJPG Type: view_entity CONSUMPTION

Precheck of In-House Repair Item

C_InhRepairItemPrecheckObjPg is a Consumption CDS View that provides data about "Precheck of In-House Repair Item" in SAP S/4HANA. It reads from 1 data source (I_InHouseRepairItemTP) and exposes 59 fields with key fields InHouseRepair, InHouseRepairItem. It has 11 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_InHouseRepairItemTP I_InHouseRepairItemTP projection

Associations (11)

CardinalityTargetAliasCondition
[0..1] C_SrvcMgmtSoldToPartyQuickVw _SoldToPartyQuickView $projection.SoldToParty = _SoldToPartyQuickView.BusinessPartner
[0..1] C_SrvcMgmtCntctPersnQuickVw _ContactPersonQuickView $projection.ContactPerson = _ContactPersonQuickView.BusinessPartner and $projection.SoldToParty = _ContactPersonQuickView.SoldToParty
[0..1] C_SrvcMgmtSoldToPartyQuickVw _ShipToPartyQuickView $projection.ShipToParty = _ShipToPartyQuickView.BusinessPartner
[0..*] C_InhReprItmPrChkExectblActn _InhRepairItemExectblAction $projection.InHouseRepair = _InhRepairItemExectblAction.InHouseRepair and $projection.InHouseRepairItem = _InhRepairItemExectblAction.InHouseRepairItem
[0..*] C_InhRepairItemContract _InhouseRepairContract $projection.InHouseRepair = _InhouseRepairContract.InHouseRepair and $projection.InHouseRepairItem = _InhouseRepairContract.InHouseRepairItem and $projection.SoldToParty = _InhouseRepairContract.SoldToParty and $projection.InhRepairReferenceEquipment = _InhouseRepairContract.InhRepairReferenceEquipment and $projection.DistributionChannel = _InhouseRepairContract.DistributionChannel and $projection.Division = _InhouseRepairContract.Division and $projection.SalesOrganization = _InhouseRepairContract.SalesOrganization
[0..*] C_InhReprItmPrChkSrvcQtanLink _ServiceQuotation $projection.InHouseRepairItemUUID = _ServiceQuotation.InHouseRepairItemUUID
[0..*] C_InhReprItmPrChkSrvcOrdLink _ServiceOrder $projection.InHouseRepairItemUUID = _ServiceOrder.InHouseRepairItemUUID
[0..*] C_InhReprItmPrChkSrvcQtanLink _OpenServiceQuotation $projection.InHouseRepairItemUUID = _OpenServiceQuotation.InHouseRepairItemUUID and _OpenServiceQuotation.ServiceQuotationIsOpen = 'X'
[0..*] C_InhReprItmPrChkSrvcQtanLink _CompletedServiceQuotation $projection.InHouseRepairItemUUID = _CompletedServiceQuotation.InHouseRepairItemUUID and _CompletedServiceQuotation.ServiceQuotationIsOpen = ''
[0..*] C_InhReprItmPrChkSrvcOrdLink _OpenServiceOrder $projection.InHouseRepairItemUUID = _OpenServiceOrder.InHouseRepairItemUUID and _OpenServiceOrder.ServiceOrderIsOpen = 'X'
[0..*] C_InhReprItmPrChkSrvcOrdLink _CompletedServiceOrder $projection.InHouseRepairItemUUID = _CompletedServiceOrder.InHouseRepairItemUUID and _CompletedServiceOrder.ServiceOrderIsOpen = ''

Annotations (8)

NameValueLevelField
EndUserText.label Precheck of In-House Repair Item view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.representativeKey InHouseRepairItem view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.allowExtensions true view

Fields (59)

KeyFieldSource TableSource FieldDescription
KEY InHouseRepair InHouseRepair
KEY InHouseRepairItem InHouseRepairItem
InHouseRepairItemUUID InHouseRepairItemUUID
LastChangeDateTime LastChangeDateTime Timestamp
CreationDateTime _InHouseRepairTP CreationDateTime Timestamp
InHouseRepairUUID InHouseRepairUUID
InhRepairType InhRepairType
PostingDate PostingDate Posting Date for GR
InhRepairItemCategory InhRepairItemCategory
InhRepairItemStatus InhRepairItemStatus
InhRepairItemSuplmntyStatus InhRepairItemSuplmntyStatus
Product Product Product Sold
ProductNameasProductNamelocalized
InhRepairReferenceEquipment InhRepairReferenceEquipment
TechObjIsEquipOrFuncnlLoc TechObjIsEquipOrFuncnlLoc Tech. Obj. Type
TechnicalObject TechnicalObject Technical Object
SerialNumber SerialNumber Serial Number
SoldToParty SoldToParty Sold-to Party
SoldToPartyName
ContactPerson ContactPerson Contact Person Key
ContactPersonName
ShipToParty ShipToParty Ship-To Party (obsolete)
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
SalesOrganization SalesOrganization Sales Organization
ShipToPartyName
RespEmployeeBusinessPartnerId _InHouseRepairTP ResponsibleEmployee Employee Resp.
ResponsibleEmployeeName
CustomerWarrantyEndDate
SupplierWarrantyEndDate
SitnNumberOfInstances _SitnInstceIndicator SitnNumberOfInstances
InhRepairItemAvailyStatus InhRepairItemAvailyStatus
InhRepairItemIsNew InhRepairItemIsNew
InhRepairItemIsInProcess InhRepairItemIsInProcess
InhRepairItemIsCompleted InhRepairItemIsCompleted
CustRetMatlAuthzn _CustomerReturnsItemReference CustRetMatlAuthzn
SalesOffice SalesOffice Sales Office
SalesGroup SalesGroup Sales Group
SalesOrganizationOrgUnitID SalesOrganizationOrgUnitID
SalesOfficeOrgUnitID SalesOfficeOrgUnitID
SalesGroupOrgUnitID SalesGroupOrgUnitID
_InHouseRepair _InHouseRepair
_InhRepairItemCategory _InhRepairItemCategory
_InhRepairItemStatus _InhRepairItemStatus
_InhRepairItemSuplmntyStatus _InhRepairItemSuplmntyStatus
_InhRepairItemAvailyStatus _InhRepairItemAvailyStatus
_InhRepairReferenceEquipment _InhRepairReferenceEquipment
_Product _Product
_InhRepairItemExectblAction _InhRepairItemExectblAction
_SoldToPartyQuickView _SoldToPartyQuickView
_ContactPersonQuickView _ContactPersonQuickView
_ShipToPartyQuickView _ShipToPartyQuickView
_InhouseRepairContract _InhouseRepairContract
_ServiceQuotation _ServiceQuotation
_ServiceOrder _ServiceOrder
_OpenServiceQuotation _OpenServiceQuotation
_CompletedServiceQuotation _CompletedServiceQuotation
_OpenServiceOrder _OpenServiceOrder
_CompletedServiceOrder _CompletedServiceOrder

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_InhRepairItemPrecheckObjPg.
-- 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 C_InhRepairItemPrecheckObjPg AS
SELECT
  InHouseRepair,
  InHouseRepairItem,
  InHouseRepairItemUUID,
  LastChangeDateTime,
  _InHouseRepairTP.CreationDateTime AS CreationDateTime,
  InHouseRepairUUID,
  InhRepairType,
  PostingDate,
  InhRepairItemCategory,
  InhRepairItemStatus,
  InhRepairItemSuplmntyStatus,
  Product,
  _Product._Text.ProductName as ProductName : localized AS ProductNameasProductNamelocalized,
  InhRepairReferenceEquipment,
  TechObjIsEquipOrFuncnlLoc,
  TechnicalObject,
  SerialNumber,
  SoldToParty,
  cast( _InHouseRepairTP._SoldToParty.BusinessPartnerName as crms4_repa_soldto_pty_name_lbl preserving type ) AS SoldToPartyName,
  ContactPerson,
  cast( _InHouseRepairTP._ContactPerson.BusinessPartnerName as crms4_repa_cntct_pers_name_lbl preserving type ) AS ContactPersonName,
  ShipToParty,
  DistributionChannel,
  Division,
  SalesOrganization,
  cast( _InHouseRepairTP._ShipToParty.BusinessPartnerName as crms4_repa_shipto_pty_name_lbl preserving type ) AS ShipToPartyName,
  _InHouseRepairTP.ResponsibleEmployee AS RespEmployeeBusinessPartnerId,
  cast( _InHouseRepairTP._ResponsibleEmployee.BusinessPartnerName as crms4_repa_resp_empl_name_lbl preserving type ) AS ResponsibleEmployeeName,
  _InhRepairReferenceEquipment._MasterWrntyObjectAssgmt[1: WarrantyType='1' ].WarrantyEndDate AS CustomerWarrantyEndDate,
  _InhRepairReferenceEquipment._MasterWrntyObjectAssgmt[1: WarrantyType='2' ].WarrantyEndDate AS SupplierWarrantyEndDate,
  _SitnInstceIndicator.SitnNumberOfInstances AS SitnNumberOfInstances,
  InhRepairItemAvailyStatus,
  InhRepairItemIsNew,
  InhRepairItemIsInProcess,
  InhRepairItemIsCompleted,
  _CustomerReturnsItemReference.CustRetMatlAuthzn AS CustRetMatlAuthzn,
  SalesOffice,
  SalesGroup,
  SalesOrganizationOrgUnitID,
  SalesOfficeOrgUnitID,
  SalesGroupOrgUnitID
FROM I_InHouseRepairItemTP
LEFT OUTER JOIN C_SrvcMgmtSoldToPartyQuickVw AS _SoldToPartyQuickView ON SoldToParty = _SoldToPartyQuickView.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN C_SrvcMgmtCntctPersnQuickVw AS _ContactPersonQuickView ON ContactPerson = _ContactPersonQuickView.BusinessPartner AND SoldToParty = _ContactPersonQuickView.SoldToParty  -- association [0..1]
LEFT OUTER JOIN C_SrvcMgmtSoldToPartyQuickVw AS _ShipToPartyQuickView ON ShipToParty = _ShipToPartyQuickView.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN C_InhReprItmPrChkExectblActn AS _InhRepairItemExectblAction ON InHouseRepair = _InhRepairItemExectblAction.InHouseRepair AND InHouseRepairItem = _InhRepairItemExectblAction.InHouseRepairItem  -- association [0..*]
LEFT OUTER JOIN C_InhRepairItemContract AS _InhouseRepairContract ON InHouseRepair = _InhouseRepairContract.InHouseRepair AND InHouseRepairItem = _InhouseRepairContract.InHouseRepairItem AND SoldToParty = _InhouseRepairContract.SoldToParty AND InhRepairReferenceEquipment = _InhouseRepairContract.InhRepairReferenceEquipment AND DistributionChannel = _InhouseRepairContract.DistributionChannel AND Division = _InhouseRepairContract.Division AND SalesOrganization = _InhouseRepairContract.SalesOrganization  -- association [0..*]
LEFT OUTER JOIN C_InhReprItmPrChkSrvcQtanLink AS _ServiceQuotation ON InHouseRepairItemUUID = _ServiceQuotation.InHouseRepairItemUUID  -- association [0..*]
LEFT OUTER JOIN C_InhReprItmPrChkSrvcOrdLink AS _ServiceOrder ON InHouseRepairItemUUID = _ServiceOrder.InHouseRepairItemUUID  -- association [0..*]
LEFT OUTER JOIN C_InhReprItmPrChkSrvcQtanLink AS _OpenServiceQuotation ON InHouseRepairItemUUID = _OpenServiceQuotation.InHouseRepairItemUUID AND _OpenServiceQuotation.ServiceQuotationIsOpen = 'X'  -- association [0..*]
LEFT OUTER JOIN C_InhReprItmPrChkSrvcQtanLink AS _CompletedServiceQuotation ON InHouseRepairItemUUID = _CompletedServiceQuotation.InHouseRepairItemUUID AND _CompletedServiceQuotation.ServiceQuotationIsOpen = ''  -- association [0..*]
LEFT OUTER JOIN C_InhReprItmPrChkSrvcOrdLink AS _OpenServiceOrder ON InHouseRepairItemUUID = _OpenServiceOrder.InHouseRepairItemUUID AND _OpenServiceOrder.ServiceOrderIsOpen = 'X'  -- association [0..*]
LEFT OUTER JOIN C_InhReprItmPrChkSrvcOrdLink AS _CompletedServiceOrder ON InHouseRepairItemUUID = _CompletedServiceOrder.InHouseRepairItemUUID AND _CompletedServiceOrder.ServiceOrderIsOpen = ''  -- association [0..*]
;