I_EmploymentStatusText

DDL: I_EMPLOYMENTSTATUSTEXT SQL: IEMPLSTATTEXT Type: view BASIC

Employment Status

I_EmploymentStatusText is a Basic CDS View that provides data about "Employment Status" in SAP S/4HANA. It reads from 4 data sources (dd07t, dd07t, wfd_d_new_pers, wfd_d_new_pers) and exposes 7 fields with key fields Language, EmploymentStatus, EmploymentStatus. It has 1 association to related views.

Data Sources (4)

SourceAliasJoin Type
dd07t dd07t from
dd07t dd07t inner
wfd_d_new_pers switch left_outer
wfd_d_new_pers switch union_all

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Language _Language dd07t.ddlanguage = _Language.Language

Annotations (11)

NameValueLevelField
EndUserText.label Employment Status view
AbapCatalog.sqlViewName IEMPLSTATTEXT view
VDM.viewType #BASIC view
ObjectModel.dataCategory #TEXT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey EmploymentStatus view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY Language ddlanguage
KEY EmploymentStatus
Name ddtext
LanguagekeyddlanguageasLanguage
KEY EmploymentStatus
Name ddtext
_Language _Language
@EndUserText.label: 'Employment Status'
@AbapCatalog.sqlViewName: 'IEMPLSTATTEXT'
@VDM.viewType: #BASIC
@ObjectModel.dataCategory: #TEXT
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.representativeKey: 'EmploymentStatus'

@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L

define view I_EmploymentStatusText
  as select from    dd07t
    left outer join wfd_d_new_pers as switch on switch.mandt = $session.client
  association [0..1] to I_Language as _Language on dd07t.ddlanguage = _Language.Language
{
      @Semantics.language: true
      @ObjectModel.foreignKey.association: '_Language'
  key ddlanguage                                                        as Language,
  key cast ( substring( domvalue_l, 1, 1 ) as /shcm/employment_status ) as EmploymentStatus,
      @Semantics.text
      ddtext                                                            as Name,
      _Language
}
where
      domname       =  '/SHCM/EMPLOYMENT_STATUS'
  and as4local      =  'A'
  and (switch.switch is null
  or  switch.switch <> 'NEW' )

union all select from wfd_d_new_pers as switch

  inner join          dd07t on switch.mandt = $session.client
//inner join          wfd_d_assgmtdets as wfd_d_assgmtdets on wfd_d_assgmtdets.client = switch.mandt

association [0..1] to I_Language as _Language on dd07t.ddlanguage = _Language.Language
{
      @Semantics.language: true
      @ObjectModel.foreignKey.association: '_Language'
  key ddlanguage                               as Language,
  key cast (domvalue_l as wfd_emplymt_status ) as EmploymentStatus,
      @Semantics.text
      ddtext                                   as Name,
      _Language
}
where
      domname       = 'WFD_EMPLYMT_STATUS'
  and as4local      = 'A'
  and switch.switch = 'NEW'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"DD07T",
"WFD_D_NEW_PERS"
],
"ASSOCIATED":
[
"I_LANGUAGE"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0
}
}*/