I_RSHResourceServiceOrg

DDL: I_RSHRESOURCESERVICEORG SQL: IRSHRESSERORG Type: view COMPOSITE

Service organization for a cost center

I_RSHResourceServiceOrg is a Composite CDS View that provides data about "Service organization for a cost center" in SAP S/4HANA. It reads from 1 data source (I_EngagementProjectSrvcOrgDets) and exposes 6 fields with key fields AssignedOrganisation, CompanyCode.

Data Sources (1)

SourceAliasJoin Type
I_EngagementProjectSrvcOrgDets orgdet from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IRSHRESSERORG view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #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 #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY AssignedOrganisation I_EngagementProjectSrvcOrgDets AssignedOrganisation
KEY CompanyCode
EngagementProjectServiceOrg I_EngagementProjectSrvcOrgDets EngagementProjectServiceOrg
EngmtProjectServiceOrgName
AssignedOrganisationType I_EngagementProjectSrvcOrgDets AssignedOrganisationType
ControllingArea
@AbapCatalog.sqlViewName: 'IRSHRESSERORG'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #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: #COMPOSITE
@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 I_RSHResourceServiceOrg

  as select from I_EngagementProjectSrvcOrgDets as orgdet
{

      //One CostCenter can semantically only be assigned to one ServiceOrg: this KeyDefinition is correct (warning can be ignored)

      @EndUserText: {label: 'Cost Center ID'}
  key orgdet.AssignedOrganisation                                                                                                                                       as AssignedOrganisation,
      
      @EndUserText: {label: 'Company Code'}
  key orgdet._EngagementProjectServiceOrg._CompanyCode.AssignedOrganisation                                                                                          as CompanyCode,
      @EndUserText: {label: 'Service Organization ID'}
      orgdet.EngagementProjectServiceOrg,
      @EndUserText: {label: 'Service Organization'}
      orgdet._EngagementProjectServiceOrg._Text[1: Language = $session.system_language ].EngmtProjectServiceOrgName                                                     as EngmtProjectServiceOrgName,
      @Consumption.hidden: true
      orgdet.AssignedOrganisationType,
      @UI.hidden: true
      orgdet._EngagementProjectServiceOrg._ControllingArea.AssignedOrganisation                                                                                             as ControllingArea

}
where
  AssignedOrganisationType = 'CS'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ENGAGEMENTPROJECTSRVCORG",
"I_ENGAGEMENTPROJECTSRVCORGDETS",
"I_ENGAGEMENTPROJECTSRVCORGTEXT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/