I_InHouseRepairSituation

DDL: I_INHOUSEREPAIRSITUATION Type: view COMPOSITE

In-House Repair Situations

I_InHouseRepairSituation is a Composite CDS View that provides data about "In-House Repair Situations" in SAP S/4HANA. It reads from 1 data source (I_InHouseRepair) and exposes 32 fields with key fields InHouseRepair, CustMgmtObjectType, InHouseRepairUUID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_InHouseRepair Header from

Associations (1)

CardinalityTargetAliasCondition
[0..1] E_InHouseRepair _InHouseRepairExtension $projection.CustMgmtObjectType = _InHouseRepairExtension.CustMgmtObjectType and $projection.InHouseRepair = _InHouseRepairExtension.InHouseRepair

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IINHREPHDR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
ObjectModel.uniqueIdField InHouseRepairUUID view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label In-House Repair Situations view
Metadata.ignorePropagatedAnnotations true view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY InHouseRepair I_InHouseRepair InHouseRepair
KEY CustMgmtObjectType I_InHouseRepair CustMgmtObjectType Trans. Cat.
KEY InHouseRepairUUID I_InHouseRepair InHouseRepairUUID Unique Identifier
InhRepairType I_InHouseRepair InhRepairType Type of Data
SalesOrganization I_InHouseRepair SalesOrganization Sales Organization
SalesOrganizationOrgUnitID I_InHouseRepair SalesOrganizationOrgUnitID
DistributionChannel I_InHouseRepair DistributionChannel RefDistCh-Cust/Mat.
Division I_InHouseRepair Division Internal Division ID
SalesOffice I_InHouseRepair SalesOffice Sales Office
SalesGroup I_InHouseRepair SalesGroup Sales Group
SalesGroupOrgUnitID I_InHouseRepair SalesGroupOrgUnitID Sales Group
SalesOfficeOrgUnitID I_InHouseRepair SalesOfficeOrgUnitID Sales Office
CreatedByUser I_InHouseRepair CreatedByUser User Name
InhRepairStatus In-House Repair Status
ResponsibleEmployee I_InHouseRepair ResponsibleEmployee Employee Resp.
ResponsibleEmployeeUserID RespEmployeeUser UserID User Name
NrOfDaysAfterCreationDate Number of Days After In-House Repair Creation
_InhRepairType I_InHouseRepair _InhRepairType
_SalesOrganization I_InHouseRepair _SalesOrganization
_SalesOrganizationOrgUnit I_InHouseRepair _SalesOrganizationOrgUnit
_SalesOrganizationOrgUnit_2 I_InHouseRepair _SalesOrganizationOrgUnit_2
_DistributionChannel I_InHouseRepair _DistributionChannel
_Division I_InHouseRepair _Division
_SalesOffice I_InHouseRepair _SalesOffice
_SalesGroup I_InHouseRepair _SalesGroup
_SalesGroupOrgUnit I_InHouseRepair _SalesGroupOrgUnit
_SalesGroupOrgUnit_2 I_InHouseRepair _SalesGroupOrgUnit_2
_SalesOfficeOrgUnit I_InHouseRepair _SalesOfficeOrgUnit
_SalesOfficeOrgUnit_2 I_InHouseRepair _SalesOfficeOrgUnit_2
_RepairOrders I_InHouseRepair _RepairOrders
_ResponsibleEmployee I_InHouseRepair _ResponsibleEmployee
_CustMgmtObjectType I_InHouseRepair _CustMgmtObjectType

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 I_InHouseRepairSituation.
-- 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 I_InHouseRepairSituation AS
SELECT
  Header.InHouseRepair AS InHouseRepair,
  Header.CustMgmtObjectType AS CustMgmtObjectType,
  Header.InHouseRepairUUID AS InHouseRepairUUID,
  Header.InhRepairType AS InhRepairType,
  Header.SalesOrganization AS SalesOrganization,
  Header.SalesOrganizationOrgUnitID AS SalesOrganizationOrgUnitID,
  Header.DistributionChannel AS DistributionChannel,
  Header.Division AS Division,
  Header.SalesOffice AS SalesOffice,
  Header.SalesGroup AS SalesGroup,
  Header.SalesGroupOrgUnitID AS SalesGroupOrgUnitID,
  Header.SalesOfficeOrgUnitID AS SalesOfficeOrgUnitID,
  Header.CreatedByUser AS CreatedByUser,
  cast(Header.InhRepairStatus as crms4_inhrepair_status) AS InhRepairStatus,
  Header.ResponsibleEmployee AS ResponsibleEmployee,
  RespEmployeeUser.UserID AS ResponsibleEmployeeUserID,
  cast( division( TSTMP_SECONDS_BETWEEN(Header.CreationDateTime,tstmp_current_utctimestamp(),'NULL'), 86400, 0 ) as crms4_days_after_creation_date) AS NrOfDaysAfterCreationDate,
  Header._InhRepairType AS _InhRepairType,
  Header._SalesOrganization AS _SalesOrganization,
  Header._SalesOrganizationOrgUnit AS _SalesOrganizationOrgUnit,
  Header._SalesOrganizationOrgUnit_2 AS _SalesOrganizationOrgUnit_2,
  Header._DistributionChannel AS _DistributionChannel,
  Header._Division AS _Division,
  Header._SalesOffice AS _SalesOffice,
  Header._SalesGroup AS _SalesGroup,
  Header._SalesGroupOrgUnit AS _SalesGroupOrgUnit,
  Header._SalesGroupOrgUnit_2 AS _SalesGroupOrgUnit_2,
  Header._SalesOfficeOrgUnit AS _SalesOfficeOrgUnit,
  Header._SalesOfficeOrgUnit_2 AS _SalesOfficeOrgUnit_2,
  Header._RepairOrders AS _RepairOrders,
  Header._ResponsibleEmployee AS _ResponsibleEmployee,
  Header._CustMgmtObjectType AS _CustMgmtObjectType
FROM I_InHouseRepair AS Header
LEFT OUTER JOIN E_InHouseRepair AS _InHouseRepairExtension ON CustMgmtObjectType = _InHouseRepairExtension.CustMgmtObjectType AND InHouseRepair = _InHouseRepairExtension.InHouseRepair  -- association [0..1]
;