I_InHouseRepairSituation
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)
| Source | Alias | Join Type |
|---|---|---|
| I_InHouseRepair | Header | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | E_InHouseRepair | _InHouseRepairExtension | $projection.CustMgmtObjectType = _InHouseRepairExtension.CustMgmtObjectType and $projection.InHouseRepair = _InHouseRepairExtension.InHouseRepair |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA