C_InhRepairObjPg

DDL: C_INHREPAIROBJPG Type: view_entity CONSUMPTION Package: CRMS4_REPAIR_ODATA

In-House Repair

C_InhRepairObjPg is a Consumption CDS View that provides data about "In-House Repair" in SAP S/4HANA. It reads from 1 data source (I_InHouseRepairTP) and exposes 35 fields with key field InHouseRepair. It has 6 associations to related views. It is exposed through 1 OData service (UI_MANAGEINHREPAIRS). It is used in 1 Fiori application: Manage In-House Services. Part of development package CRMS4_REPAIR_ODATA.

Data Sources (1)

SourceAliasJoin Type
I_InHouseRepairTP I_InHouseRepairTP projection

Associations (6)

CardinalityTargetAliasCondition
[0..*] C_SrvcDocTypeProcStepOverview _SrvcDocTypeProcStepOverview $projection.InhRepairType = _SrvcDocTypeProcStepOverview.ServiceDocumentType
[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..1] C_SrvcMgmtRespEmplQuickVw _ResponsibleEmployeeQuickView $projection.ResponsibleEmployee = _ResponsibleEmployeeQuickView.BusinessPartner
[0..*] C_InhRepairItemContract _InhouseRepairContract $projection.InHouseRepair = _InhouseRepairContract.InHouseRepair and $projection.SoldToParty = _InhouseRepairContract.SoldToParty and $projection.DistributionChannel = _InhouseRepairContract.DistributionChannel and $projection.Division = _InhouseRepairContract.Division and $projection.SalesOrganization = _InhouseRepairContract.SalesOrganization

Annotations (9)

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

OData Services (1)

ServiceBindingVersionContractRelease
UI_MANAGEINHREPAIRS UI_MANAGEINHREPAIRS V2 C1 NOT_RELEASED

Fiori Apps (1)

App IDApp NameTypeDescription
F4025 Manage In-House Services Transactional You can use this app to create and process in-house services, and add in-house objects (service object) for which you want to perform maintenance or repair. You can filter, sort, and group a list of all in-house services in the system. You can also call up in-house services, and change their data.

Manage In-House Services

Business Role: Service Manager

You can use this app to create and process in-house repairs, and add the objects to be repaired. You can filter, sort, and group a list of all in-house repairs in the system. You can also call up in-house repairs, and change their data.

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY InHouseRepair InHouseRepair
InHouseRepairUUID InHouseRepairUUID
InhRepairType InhRepairType
PostingDate PostingDate Posting Date for GR
LastChangeDateTime LastChangeDateTime Timestamp
CreationDateTime CreationDateTime Timestamp
InhRepairStatus InhRepairStatus
SoldToParty SoldToParty Sold-to Party
SoldToPartyName
ContactPerson ContactPerson Contact Person Key
ContactPersonName
ShipToParty ShipToParty Ship-To Party (obsolete)
ShipToPartyName
ResponsibleEmployee ResponsibleEmployee Employee Resp.
ResponsibleEmployeeName
SalesOrganization SalesOrganization Sales Organization
SalesOrganizationOrgUnitID SalesOrganizationOrgUnitID
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
SalesOffice SalesOffice Sales Office
SalesOfficeOrgUnitID SalesOfficeOrgUnitID
SalesGroup SalesGroup Sales Group
SalesGroupOrgUnitID SalesGroupOrgUnitID
ResponsibleSalesOrganization ResponsibleSalesOrganization
InhRepairExtReference InhRepairExtReference
InhRepairIsNew InhRepairIsNew
InhRepairIsInProcess InhRepairIsInProcess
InhRepairIsCompleted InhRepairIsCompleted
SitnNumberOfInstances _SitnInstceIndicator SitnNumberOfInstances
_SrvcDocTypeProcStepOverview _SrvcDocTypeProcStepOverview
_SoldToPartyQuickView _SoldToPartyQuickView
_ContactPersonQuickView _ContactPersonQuickView
_ShipToPartyQuickView _ShipToPartyQuickView
_ResponsibleEmployeeQuickView _ResponsibleEmployeeQuickView
_InhouseRepairContract _InhouseRepairContract

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_InhRepairObjPg.
-- 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_InhRepairObjPg AS
SELECT
  InHouseRepair,
  InHouseRepairUUID,
  InhRepairType,
  PostingDate,
  LastChangeDateTime,
  CreationDateTime,
  InhRepairStatus,
  SoldToParty,
  cast( _SoldToParty.BusinessPartnerName as crms4_repa_soldto_pty_name_lbl preserving type ) AS SoldToPartyName,
  ContactPerson,
  cast( _ContactPerson.BusinessPartnerName as crms4_repa_cntct_pers_name_lbl preserving type ) AS ContactPersonName,
  ShipToParty,
  cast( _ShipToParty.BusinessPartnerName as crms4_repa_shipto_pty_name_lbl preserving type ) AS ShipToPartyName,
  ResponsibleEmployee,
  cast( _ResponsibleEmployee.BusinessPartnerName as crms4_repa_resp_empl_name_lbl preserving type ) AS ResponsibleEmployeeName,
  SalesOrganization,
  SalesOrganizationOrgUnitID,
  DistributionChannel,
  Division,
  SalesOffice,
  SalesOfficeOrgUnitID,
  SalesGroup,
  SalesGroupOrgUnitID,
  ResponsibleSalesOrganization,
  InhRepairExtReference,
  InhRepairIsNew,
  InhRepairIsInProcess,
  InhRepairIsCompleted,
  _SitnInstceIndicator.SitnNumberOfInstances AS SitnNumberOfInstances
FROM I_InHouseRepairTP
LEFT OUTER JOIN C_SrvcDocTypeProcStepOverview AS _SrvcDocTypeProcStepOverview ON InhRepairType = _SrvcDocTypeProcStepOverview.ServiceDocumentType  -- association [0..*]
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_SrvcMgmtRespEmplQuickVw AS _ResponsibleEmployeeQuickView ON ResponsibleEmployee = _ResponsibleEmployeeQuickView.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN C_InhRepairItemContract AS _InhouseRepairContract ON InHouseRepair = _InhouseRepairContract.InHouseRepair AND SoldToParty = _InhouseRepairContract.SoldToParty AND DistributionChannel = _InhouseRepairContract.DistributionChannel AND Division = _InhouseRepairContract.Division AND SalesOrganization = _InhouseRepairContract.SalesOrganization  -- association [0..*]
;