C_RSHResourceServiceOrg

DDL: C_RSHRESOURCESERVICEORG SQL: CRSHRESSERORG Type: view CONSUMPTION

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.

Data Sources (2)

SourceAliasJoin Type
I_CostCenterText costcentertxt inner
I_RSHResourceServiceOrg serviceorg from

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
{
      @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