C_InhRepairItemPlanObjPg
Planning of In-House Repair Item
C_InhRepairItemPlanObjPg is a Consumption CDS View that provides data about "Planning of In-House Repair Item" in SAP S/4HANA. It reads from 1 data source (I_InHouseRepairItemTP) and exposes 55 fields with key fields InHouseRepair, InHouseRepairItem. It has 10 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_InHouseRepairItemTP | I_InHouseRepairItemTP | projection |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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_InhReprItmPlanExectblActn | _InhRepairItemExectblAction | $projection.InHouseRepair = _InhRepairItemExectblAction.InHouseRepair and $projection.InHouseRepairItem = _InhRepairItemExectblAction.InHouseRepairItem |
| [0..*] | C_InhReprItmPlnSrvcQtanLink | _ServiceQuotation | $projection.InHouseRepairItemUUID = _ServiceQuotation.InHouseRepairItemUUID |
| [0..*] | C_InhReprItmPlnSrvcOrdLink | _ServiceOrder | $projection.InHouseRepairItemUUID = _ServiceOrder.InHouseRepairItemUUID |
| [0..*] | C_InhReprItmPlnSrvcQtanLink | _OpenServiceQuotation | $projection.InHouseRepairItemUUID = _OpenServiceQuotation.InHouseRepairItemUUID and _OpenServiceQuotation.ServiceQuotationIsOpen = 'X' |
| [0..*] | C_InhReprItmPlnSrvcQtanLink | _CompletedServiceQuotation | $projection.InHouseRepairItemUUID = _CompletedServiceQuotation.InHouseRepairItemUUID and _CompletedServiceQuotation.ServiceQuotationIsOpen = '' |
| [0..*] | C_InhReprItmPlnSrvcOrdLink | _OpenServiceOrder | $projection.InHouseRepairItemUUID = _OpenServiceOrder.InHouseRepairItemUUID and _OpenServiceOrder.ServiceOrderIsOpen = 'X' |
| [0..*] | C_InhReprItmPlnSrvcOrdLink | _CompletedServiceOrder | $projection.InHouseRepairItemUUID = _CompletedServiceOrder.InHouseRepairItemUUID and _CompletedServiceOrder.ServiceOrderIsOpen = '' |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Planning 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 (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InHouseRepair | InHouseRepair | ||
| KEY | InHouseRepairItem | InHouseRepairItem | ||
| InHouseRepairItemUUID | InHouseRepairItemUUID | |||
| CreationDateTime | _InHouseRepairTP | CreationDateTime | Timestamp | |
| InhRepairType | InhRepairType | |||
| PostingDate | PostingDate | Posting Date for GR | ||
| InHouseRepairUUID | InHouseRepairUUID | |||
| InhRepairItemCategory | InhRepairItemCategory | |||
| InhRepairItemStatus | InhRepairItemStatus | |||
| Product | Product | Product Sold | ||
| ProductNameasProductNamelocalized | ||||
| InhRepairReferenceEquipment | InhRepairReferenceEquipment | |||
| SerialNumber | SerialNumber | Serial Number | ||
| TechObjIsEquipOrFuncnlLoc | TechObjIsEquipOrFuncnlLoc | Tech. Obj. Type | ||
| TechnicalObject | TechnicalObject | Technical Object | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| SoldToPartyName | ||||
| ContactPerson | ContactPerson | Contact Person Key | ||
| ContactPersonName | ||||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| ShipToPartyName | ||||
| RespEmployeeBusinessPartnerId | _InHouseRepairTP | ResponsibleEmployee | Employee Resp. | |
| ResponsibleEmployeeName | ||||
| CustomerWarrantyEndDate | ||||
| SupplierWarrantyEndDate | ||||
| SitnNumberOfInstances | _SitnInstceIndicator | SitnNumberOfInstances | ||
| InhRepairItemIsNew | InhRepairItemIsNew | |||
| InhRepairItemIsInProcess | InhRepairItemIsInProcess | |||
| InhRepairItemIsCompleted | InhRepairItemIsCompleted | |||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| InhRepairItemAvailyStatus | InhRepairItemAvailyStatus | |||
| CustRetMatlAuthzn | _CustomerReturnsItemReference | CustRetMatlAuthzn | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesGroup | SalesGroup | Sales Group | ||
| SalesOrganizationOrgUnitID | SalesOrganizationOrgUnitID | |||
| SalesOfficeOrgUnitID | SalesOfficeOrgUnitID | |||
| SalesGroupOrgUnitID | SalesGroupOrgUnitID | |||
| _InHouseRepair | _InHouseRepair | |||
| _InhRepairItemCategory | _InhRepairItemCategory | |||
| _InhRepairItemStatus | _InhRepairItemStatus | |||
| _InhRepairReferenceEquipment | _InhRepairReferenceEquipment | |||
| _Product | _Product | |||
| _SoldToPartyQuickView | _SoldToPartyQuickView | |||
| _ContactPersonQuickView | _ContactPersonQuickView | |||
| _ShipToPartyQuickView | _ShipToPartyQuickView | |||
| _InhRepairItemExectblAction | _InhRepairItemExectblAction | |||
| _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_InhRepairItemPlanObjPg.
-- 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_InhRepairItemPlanObjPg AS
SELECT
InHouseRepair,
InHouseRepairItem,
InHouseRepairItemUUID,
_InHouseRepairTP.CreationDateTime AS CreationDateTime,
InhRepairType,
PostingDate,
InHouseRepairUUID,
InhRepairItemCategory,
InhRepairItemStatus,
Product,
_Product._Text.ProductName as ProductName : localized AS ProductNameasProductNamelocalized,
InhRepairReferenceEquipment,
SerialNumber,
TechObjIsEquipOrFuncnlLoc,
TechnicalObject,
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,
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,
InhRepairItemIsNew,
InhRepairItemIsInProcess,
InhRepairItemIsCompleted,
LastChangeDateTime,
InhRepairItemAvailyStatus,
_CustomerReturnsItemReference.CustRetMatlAuthzn AS CustRetMatlAuthzn,
SalesOrganization,
DistributionChannel,
Division,
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_InhReprItmPlanExectblActn AS _InhRepairItemExectblAction ON InHouseRepair = _InhRepairItemExectblAction.InHouseRepair AND InHouseRepairItem = _InhRepairItemExectblAction.InHouseRepairItem -- association [0..*]
LEFT OUTER JOIN C_InhReprItmPlnSrvcQtanLink AS _ServiceQuotation ON InHouseRepairItemUUID = _ServiceQuotation.InHouseRepairItemUUID -- association [0..*]
LEFT OUTER JOIN C_InhReprItmPlnSrvcOrdLink AS _ServiceOrder ON InHouseRepairItemUUID = _ServiceOrder.InHouseRepairItemUUID -- association [0..*]
LEFT OUTER JOIN C_InhReprItmPlnSrvcQtanLink AS _OpenServiceQuotation ON InHouseRepairItemUUID = _OpenServiceQuotation.InHouseRepairItemUUID AND _OpenServiceQuotation.ServiceQuotationIsOpen = 'X' -- association [0..*]
LEFT OUTER JOIN C_InhReprItmPlnSrvcQtanLink AS _CompletedServiceQuotation ON InHouseRepairItemUUID = _CompletedServiceQuotation.InHouseRepairItemUUID AND _CompletedServiceQuotation.ServiceQuotationIsOpen = '' -- association [0..*]
LEFT OUTER JOIN C_InhReprItmPlnSrvcOrdLink AS _OpenServiceOrder ON InHouseRepairItemUUID = _OpenServiceOrder.InHouseRepairItemUUID AND _OpenServiceOrder.ServiceOrderIsOpen = 'X' -- association [0..*]
LEFT OUTER JOIN C_InhReprItmPlnSrvcOrdLink AS _CompletedServiceOrder ON InHouseRepairItemUUID = _CompletedServiceOrder.InHouseRepairItemUUID AND _CompletedServiceOrder.ServiceOrderIsOpen = '' -- 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