I_DFS_OrganizationalMeasure

DDL: I_DFS_ORGANIZATIONALMEASURE SQL: IORGM Type: view COMPOSITE

Organizational Measure (for User)

I_DFS_OrganizationalMeasure is a Composite CDS View that provides data about "Organizational Measure (for User)" in SAP S/4HANA. It reads from 2 data sources (I_CaseAttribute, I_WorkflowTaskApplObject) and exposes 37 fields with key field DfsOrglMeasureUUID. It has 5 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_CaseAttribute _CaseAttribute from
I_WorkflowTaskApplObject TaskApplicationObject inner

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_WorkflowTask _WorkflowTask TaskApplicationObject.WorkflowTaskInternalID = _WorkflowTask.WorkflowTaskInternalID
[1..1] I_DFS_MeasureAttributes _MeasureAttributes $projection.DfsOrglMeasureUUID = _MeasureAttributes.DfsOrglMeasureUUID
[0..1] I_UserContactCard _ResponsiblePerson $projection.DfsOrglMeasureResponsible = _ResponsiblePerson.ContactCardID
[0..1] I_FrcElmntOrgSuplmntyAttrib _FrcElmntSuplmntyAttribAssgmt $projection.dfsorglmeasureheaderid = _FrcElmntSuplmntyAttribAssgmt.ForceElementOrgID and _FrcElmntSuplmntyAttribAssgmt.FrcElmntOrgLanguage = $session.system_language
[1..1] I_FrcElmntOrg _FrcElmntOrg $projection.dfsorglmeasureheaderid = _FrcElmntOrg.ForceElementOrgID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IORGM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey DfsOrglMeasureUUID view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Organizational Measure (for User) view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY DfsOrglMeasureUUID CaseUniqueID
CaseType CaseType
DfsOrglMeasureCategoryText
CaseID CaseID
CaseExternalReference CaseExternalReference
CaseCreatedBy CaseCreatedBy
CreationDateTime
CaseLastChangedBy CaseLastChangedBy
LastChangeDateTime
CaseClosedBy CaseClosedBy
CloseDateTime
CaseProcessor CaseProcessor
DfsOrglMeasureResponsible CaseResponsible
DfsOrglMeasureDescription CaseTitle
CaseAuthorizationLevel CaseAuthorizationLevel
CaseStatus CaseStatus
CaseStatusName
CaseSystemStatus CaseSystemStatus
CaseStatusObjectNumber CaseStatusObjectNumber
CaseSystemStatusName CaseSystemStatusName
CaseUserStatusName CaseUserStatusName
CaseReason CaseReason
WorkflowTaskInternalID I_WorkflowTaskApplObject WorkflowTaskInternalID
DfsOrglMeasureHeaderType _MeasureAttributes DfsOrglMeasureHeaderType
DfsOrglMeasureHeaderID _MeasureAttributes DfsOrglMeasureHeaderID
DfsOrglMeasureTypeText
DfsOrglMeasureType _MeasureAttributes DfsOrglMeasureType
DfsOrglMsrEffectivenessDate _MeasureAttributes DfsOrglMsrEffectivenessDate
_Reasons _Reasons
_CaseSystemStatus _CaseSystemStatus
_CaseEntity _CaseEntity
_CaseTypes _CaseTypes
_WorkflowTask _WorkflowTask
_MeasureAttributes _MeasureAttributes
_ResponsiblePerson _ResponsiblePerson
_FrcElmntSuplmntyAttribAssgmt _FrcElmntSuplmntyAttribAssgmt
_FrcElmntOrg _FrcElmntOrg
@AbapCatalog.sqlViewName: 'IORGM'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel.representativeKey: 'DfsOrglMeasureUUID'
@ObjectModel.semanticKey: ['CaseID']
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL

@VDM.viewType: #COMPOSITE
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API

@EndUserText.label: 'Organizational Measure (for User)'
define view I_DFS_OrganizationalMeasure
  as select from I_CaseAttribute          as _CaseAttribute
    inner join   I_WorkflowTaskApplObject as TaskApplicationObject on _CaseAttribute.CaseUniqueID = TaskApplicationObject.TechnicalWrkflwObject
    
  association [1..1] to I_WorkflowTask              as _WorkflowTask                 on  TaskApplicationObject.WorkflowTaskInternalID = _WorkflowTask.WorkflowTaskInternalID
  association [1..1] to I_DFS_MeasureAttributes     as _MeasureAttributes            on  $projection.DfsOrglMeasureUUID = _MeasureAttributes.DfsOrglMeasureUUID
  association [0..1] to I_UserContactCard           as _ResponsiblePerson        on  $projection.DfsOrglMeasureResponsible = _ResponsiblePerson.ContactCardID
  association [0..1] to I_FrcElmntOrgSuplmntyAttrib as _FrcElmntSuplmntyAttribAssgmt on  $projection.dfsorglmeasureheaderid                    = _FrcElmntSuplmntyAttribAssgmt.ForceElementOrgID
                                                                                     and _FrcElmntSuplmntyAttribAssgmt.FrcElmntOrgLanguage = $session.system_language
  association [1..1] to I_FrcElmntOrg as _FrcElmntOrg on  $projection.dfsorglmeasureheaderid = _FrcElmntOrg.ForceElementOrgID
{
  key CaseUniqueID as DfsOrglMeasureUUID,
  
      CaseType,
      'Organizational Measure'                                                       as DfsOrglMeasureCategoryText,

      CaseID,
      CaseExternalReference,
      CaseCreatedBy,
      cast( CaseCreatedOn as tzntstmps preserving type )        as CreationDateTime,
      CaseLastChangedBy,
      cast( CaseLastChangedOn as tzntstmps preserving type )    as LastChangeDateTime,
      CaseClosedBy,
      cast( CaseClosedTime as tzntstmps preserving type )       as CloseDateTime,
      CaseProcessor,
      CaseResponsible                                           as DfsOrglMeasureResponsible,
      CaseTitle                                                 as DfsOrglMeasureDescription,
      CaseAuthorizationLevel,
      
      CaseStatus,
      _CaseAttribute._Individual._Text[1:Language = $session.system_language].CaseStatusName,

      case
        when( CaseStatus = '10') then 2  //In Preperation    

        when( CaseStatus = '20') then 0  //In Process

        when( CaseStatus = '30') then 3   //Partly active

        when( CaseStatus = '40') then 3   //Active

        when( CaseStatus = '50') then 1   //Withdrawn        

      end                                                                            as StatusCriticality,

      CaseSystemStatus,
      CaseStatusObjectNumber,
      CaseSystemStatusName,
      CaseUserStatusName,
      CaseReason,

      TaskApplicationObject.WorkflowTaskInternalID,


       _MeasureAttributes.DfsOrglMeasureHeaderType,
       _MeasureAttributes.DfsOrglMeasureHeaderID,
       _MeasureAttributes._MeasureType._Text[1:Language = $session.system_language].DfsOrglMeasureTypeText,
       _MeasureAttributes.DfsOrglMeasureType,
       _MeasureAttributes.DfsOrglMsrEffectivenessDate,
       
       
      _Reasons,
      _CaseSystemStatus,
      _CaseEntity,
      _CaseTypes,
      _WorkflowTask,
      _MeasureAttributes,
      _ResponsiblePerson,

      _FrcElmntSuplmntyAttribAssgmt,
      _FrcElmntOrg
}
where
         CaseType                              = 'DFP1'
  and(
         CaseStatus                            = '20'
    or   CaseStatus                            = '25'
  )
  and(
         _WorkflowTask.WorkflowTaskCurrentUser = $session.user
    and(
         _WorkflowTask.WorkflowTaskStatus      = 'STARTED'
      or _WorkflowTask.WorkflowTaskStatus      = 'SELECTED'
      or _WorkflowTask.WorkflowTaskStatus      = 'COMMITTED'
    )
    and(
         _WorkflowTask.WorkflowTaskDefinition  = 'TS78907914'
      or _WorkflowTask.WorkflowTaskDefinition  = 'TS78907915'
    )
  )
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CASEATTRIBUTE",
"I_CASEINDIVIDUALSTATUS",
"I_CASEINDIVIDUALSTATUSTEXT",
"I_DFS_MEASUREATTRIBUTES",
"I_DFS_MEASURETYPE",
"I_DFS_MEASURETYPETEXT",
"I_WORKFLOWTASK",
"I_WORKFLOWTASKAPPLOBJECT"
],
"ASSOCIATED":
[
"I_CASEENTITY",
"I_CASEREASONS",
"I_CASESYSTEMSTATUS",
"I_CASETYPES",
"I_DFS_MEASUREATTRIBUTES",
"I_FRCELMNTORG",
"I_FRCELMNTORGSUPLMNTYATTRIB",
"I_USERCONTACTCARD",
"I_WORKFLOWTASK"
],
"BASE":
[
"I_CASEATTRIBUTE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/