P_U_PersWrkAgrmtMgrForKeyDte
P_U_PersWrkAgrmtMgrForKeyDte is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (P_N_PersWrkAgrmtMgrForKeyDte, P_O_PersWrkAgrmtMgrForKeyDte, wfd_d_new_pers, wfd_d_new_pers) and exposes 11 fields with key fields PersonWorkAgreement, KeyDate, ManagerPersonWorkAgreement, KeyDate, ManagerPersonWorkAgreement.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| P_N_PersWrkAgrmtMgrForKeyDte | P_N_PersWrkAgrmtMgrForKeyDte | union_all |
| P_O_PersWrkAgrmtMgrForKeyDte | P_O_PersWrkAgrmtMgrForKeyDte | from |
| wfd_d_new_pers | switch | left_outer |
| wfd_d_new_pers | switch | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | vdm_v_key_date |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PUPERWRKAGRMTMGR | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.representativeKey | PersonWorkAgreement | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonWorkAgreement | PersonWorkAgreement | ||
| KEY | KeyDate | KeyDate | ||
| KEY | ManagerPersonWorkAgreement | ManagerPersonWorkAgreement | ||
| PersonWorkAgrmtAuthznGrpg | PersonWorkAgrmtAuthznGrpg | |||
| _ManagerPersonWorkAgreement | _ManagerPersonWorkAgreement | |||
| mandtkeyPersonWorkAgreement | ||||
| KEY | KeyDate | KeyDate | ||
| KEY | ManagerPersonWorkAgreement | ManagerPersonWorkAgreement | ||
| PersonWorkAgrmtAuthznGrpg | PersonWorkAgrmtAuthznGrpg | |||
| _ManagerPersonWorkAgreement | _ManagerPersonWorkAgreement | |||
| _ManagerPersonWorkAgreement_1 | _ManagerPersonWorkAgreement_1 |
@AbapCatalog.sqlViewName: 'PUPERWRKAGRMTMGR'
@VDM.viewType: #COMPOSITE
@VDM.private: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AbapCatalog.preserveKey:true
//@Analytics.dataCategory: #DIMENSION
//@Metadata.allowExtensions: true
@ObjectModel.representativeKey: 'PersonWorkAgreement'
//@EndUserText.label: 'Retrieve manager for given date'
//@Metadata.ignorePropagatedAnnotations:true
define view P_U_PersWrkAgrmtMgrForKeyDte
with parameters
@Consumption.hidden : true
@Environment.systemField: #SYSTEM_DATE
P_KeyDate : vdm_v_key_date
as select from P_O_PersWrkAgrmtMgrForKeyDte(P_KeyDate: $parameters.P_KeyDate) as old
left outer join wfd_d_new_pers as switch on old.mandt = switch.mandt
{
key PersonWorkAgreement,
key KeyDate,
key ManagerPersonWorkAgreement,
PersonWorkAgrmtAuthznGrpg,
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_ManagerPersonWorkAgreement_1'
_ManagerPersonWorkAgreement,
_ManagerPersonWorkAgreement_1
}
where
switch.switch is null
or switch.switch <> 'NEW'
union all select from P_N_PersWrkAgrmtMgrForKeyDte(P_KeyDate: $parameters.P_KeyDate) as new
inner join wfd_d_new_pers as switch on new.mandt = switch.mandt
{
key PersonWorkAgreement,
key KeyDate,
key ManagerPersonWorkAgreement,
PersonWorkAgrmtAuthznGrpg,
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_ManagerPersonWorkAgreement_1'
_ManagerPersonWorkAgreement,
_ManagerPersonWorkAgreement_1
}
where
switch.switch = 'NEW'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_N_PERSWRKAGRMTMGRFORKEYDTE",
"P_O_PERSWRKAGRMTMGRFORKEYDTE",
"WFD_D_NEW_PERS"
],
"ASSOCIATED":
[
"I_PERSONWORKAGREEMENT",
"I_PERSONWORKAGREEMENT_1"
],
"BASE":
[
"P_O_PERSWRKAGRMTMGRFORKEYDTE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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