C_RSHResourceServiceOrg
Service organization for a cost center
C_RSHResourceServiceOrg is a Consumption CDS View that provides data about "Service organization for a cost center" in SAP S/4HANA. It reads from 2 data sources (I_CostCenterText, I_RSHResourceServiceOrg) and exposes 8 fields with key fields AssignedOrganisation, CompanyCode. Part of development package RSH_CDS_RES.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CostCenterText | costcentertxt | inner |
| I_RSHResourceServiceOrg | serviceorg | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CRSHRESSERORG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.private | false | view | |
| EndUserText.label | Service organization for a cost center | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AssignedOrganisation | AssignedOrganisation | ||
| KEY | CompanyCode | I_RSHResourceServiceOrg | CompanyCode | |
| EngagementProjectServiceOrg | EngagementProjectServiceOrg | |||
| EngmtProjectServiceOrgName | EngmtProjectServiceOrgName | |||
| CostCenterName | CostCenterName | |||
| CostCenterDescription | CostCenterDescription | |||
| ControllingArea | I_RSHResourceServiceOrg | ControllingArea | ||
| ValidityEndDate |
@AbapCatalog.sqlViewName: 'CRSHRESSERORG'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #M
@VDM.private: false
@EndUserText.label: 'Service organization for a cost center'
@VDM.viewType: #CONSUMPTION
@ClientHandling.algorithm: #SESSION_VARIABLE
/*
CONTRACT**********************************************************************************************************************
Name: Service Organization
Specification: This View returns the service organization and cost center details of the resource
Requires: No
Ensures: All the service org and cost center association for employees are returned
Owners: SY
Contributors: SY
Unit Test required Y/N: Yes
Additional comments None
END OF CONTRACT***************************************************************************************************************
*/
define view C_RSHResourceServiceOrg
as select from I_RSHResourceServiceOrg as serviceorg
inner join I_CostCenterText as costcentertxt on costcentertxt.CostCenter = serviceorg.AssignedOrganisation
and costcentertxt.ControllingArea = serviceorg.ControllingArea
and costcentertxt.Language = $session.system_language
and costcentertxt.ValidityStartDate <= $session.system_date
and costcentertxt.ValidityEndDate >= $session.system_date
{
@EndUserText: {label: 'Cost Center ID'}
key AssignedOrganisation,
@UI.hidden: true
key serviceorg.CompanyCode,
@EndUserText: {label: 'Service Organization ID'}
EngagementProjectServiceOrg,
@EndUserText: {label: 'Service Organization'}
EngmtProjectServiceOrgName,
@EndUserText: {label: 'Cost Center Name'}
CostCenterName,
@Semantics.text: true
CostCenterDescription,
serviceorg.ControllingArea,
max(costcentertxt.ValidityEndDate) as ValidityEndDate
}
group by
AssignedOrganisation,
serviceorg.ControllingArea,
EngagementProjectServiceOrg,
EngmtProjectServiceOrgName,
CostCenterName,
CostCenterDescription,
serviceorg.CompanyCode
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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