C_InhRepairObjPg
In-House Service
C_InhRepairObjPg is a Consumption CDS View that provides data about "In-House Service" in SAP S/4HANA. It reads from 1 data source (I_InHouseRepairTP) and exposes 43 fields with key field InHouseRepair. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_InHouseRepairTP | I_InHouseRepairTP | projection |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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..1] | C_SrvcMgmtSoldToPartyQuickVw | _EndCustomerQuickView | $projection.InHouseRepairEndCustomer = _EndCustomerQuickView.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)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | In-House Service | 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 |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | ||||
| ShipToPartyAddressID | ShipToPartyAddressID | Ship-to Party Address | ||
| ResponsibleEmployee | ResponsibleEmployee | Employee Resp. | ||
| ResponsibleEmployeeName | ||||
| InHouseRepairEndCustomer | InHouseRepairEndCustomer | |||
| InHouseRepairEndCustomerName | ||||
| 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 | ||
| IncotermsPart1 | IncotermsPart1 | Incoterms | ||
| IncotermsPart2 | IncotermsPart2 | Incoterms 2 | ||
| ShippingCondition | ShippingCondition | Shipping Conditions | ||
| DeliveryPriority | DeliveryPriority | Delivery Prior. | ||
| _SrvcDocTypeProcStepOverview | _SrvcDocTypeProcStepOverview | |||
| _SoldToPartyQuickView | _SoldToPartyQuickView | |||
| _ContactPersonQuickView | _ContactPersonQuickView | |||
| _ShipToPartyQuickView | _ShipToPartyQuickView | |||
| _ResponsibleEmployeeQuickView | _ResponsibleEmployeeQuickView | |||
| _EndCustomerQuickView | _EndCustomerQuickView | |||
| _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,
ShipToPartyAddressID,
ResponsibleEmployee,
cast( _ResponsibleEmployee.BusinessPartnerName as crms4_repa_resp_empl_name_lbl preserving type ) AS ResponsibleEmployeeName,
InHouseRepairEndCustomer,
cast( _EndCustomer.BusinessPartnerName as crms4_repa_endcust_name_lbl preserving type ) AS InHouseRepairEndCustomerName,
SalesOrganization,
SalesOrganizationOrgUnitID,
DistributionChannel,
Division,
SalesOffice,
SalesOfficeOrgUnitID,
SalesGroup,
SalesGroupOrgUnitID,
ResponsibleSalesOrganization,
InhRepairExtReference,
InhRepairIsNew,
InhRepairIsInProcess,
InhRepairIsCompleted,
_SitnInstceIndicator.SitnNumberOfInstances AS SitnNumberOfInstances,
IncotermsPart1,
IncotermsPart2,
ShippingCondition,
DeliveryPriority
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_SrvcMgmtSoldToPartyQuickVw AS _EndCustomerQuickView ON InHouseRepairEndCustomer = _EndCustomerQuickView.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..*]
;
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