P_PERSONWORKAGRMTSTATUSTEXT
Person Work Agreement Status Text
P_PERSONWORKAGRMTSTATUSTEXT is a CDS View in S/4HANA. Person Work Agreement Status Text. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| I_PersonWorkAgrmtStatusText | view | from | BASIC | Person Work Agreement Status with Text |
@AbapCatalog.sqlViewName: 'PPERWKAGRSTTXTB'
//@EndUserText.label: 'Person Work Agreement Status Text'
@VDM.viewType: #BASIC
@VDM.private: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@ObjectModel.representativeKey: 'WorkAgreementStatus'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@Metadata.ignorePropagatedAnnotations:true
define view P_PersonWorkAgrmtStatusText
/* 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 (domvalue_l as /shcm/employment_status ) as WorkAgreementStatus,
@Semantics.text
ddtext as WorkAgreementStatusName,
_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
*/
as select from 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
{
key $session.client as mandt,
@Semantics.language: true
@ObjectModel.foreignKey.association: '_Language'
key ddlanguage as Language,
// key cast (domvalue_l as wfd_emplymt_status ) as WorkAgreementStatus,
key cast (domvalue_l as /shcm/employment_status) as WorkAgreementStatus,
@Semantics.text
ddtext as WorkAgreementStatusName,
_Language
}
where
domname = 'WFD_EMPLYMT_STATUS'
and as4local = 'A'
// and switch.switch = 'NEW'