P_PersonWorkAgrmtStatusText
P_PersonWorkAgrmtStatusText is a Basic CDS View 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, WorkAgreementStatus, WorkAgreementStatus. It has 1 association to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| dd07t | dd07t | from |
| dd07t | dd07t | inner |
| wfd_d_new_pers | switch | left_outer |
| wfd_d_new_pers | switch | union_all |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Language | _Language | dd07t.ddlanguage = _Language.Language |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPERWKAGRSTTXTB | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ObjectModel.representativeKey | WorkAgreementStatus | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Language | ddlanguage | ||
| KEY | WorkAgreementStatus | |||
| WorkAgreementStatusName | ddtext | |||
| LanguagekeyddlanguageasLanguage | ||||
| KEY | WorkAgreementStatus | |||
| WorkAgreementStatusName | ddtext | |||
| _Language | _Language |
@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
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 WorkAgreementStatus,
@Semantics.text
ddtext as WorkAgreementStatusName,
_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
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA