I_PersWrkAgrmtManagerForKeyDte

DDL: I_PERSWRKAGRMTMANAGERFORKEYDTE SQL: IPERSWRKAGRMTMGR Type: view COMPOSITE Package: VDM_SHCM_EMPLOYEE_V2

Retrieve manager for given date

I_PersWrkAgrmtManagerForKeyDte (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Human Resources

I_PersWrkAgrmtManagerForKeyDte is a Composite CDS View (Dimension) that provides data about "Retrieve manager for given date" in SAP S/4HANA. It reads from 1 data source (I_PersWrkAgrmtPosDet) and exposes 6 fields with key fields PersonWorkAgreement, KeyDate, ManagerPersonWorkAgreement. It has 2 associations to related views. Part of development package VDM_SHCM_EMPLOYEE_V2.

SAP API Hub

CategoryComposite
StateC1
Line of BusinessHuman Resources
Application ComponentCA-WFD
CapabilitiesAnalytical Dimension
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageHuman Resources for SAP S/4HANA Cloud Public Edition
Description <p>This view provides the prerequisites for answering the following business question:</p> <ul> <li> <p>Who is the manager of the person work agreement on this particular date?</p> </li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_PersWrkAgrmtPosDet perswrkagrmtposdet from

Parameters (1)

NameTypeDefault
P_KeyDate vdm_v_key_date

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_PersonWorkAgreement _ManagerPersonWorkAgreement _ManagerPersonWorkAgreement.PersonWorkAgreement = $projection.ManagerPersonWorkAgreement
[1..1] I_PersonWorkAgreement_1 _ManagerPersonWorkAgreement_1 _ManagerPersonWorkAgreement_1.PersonWorkAgreement = $projection.ManagerPersonWorkAgreement

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IPERSWRKAGRMTMGR view
VDM.viewType #COMPOSITE 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 #MANDATORY view
Analytics.dataCategory #DIMENSION view
Metadata.allowExtensions true view
ObjectModel.representativeKey PersonWorkAgreement view
EndUserText.label Retrieve manager for given date view
Metadata.ignorePropagatedAnnotations true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY PersonWorkAgreement Personnel Number
KEY KeyDate Field of type DATS
KEY ManagerPersonWorkAgreement Supervisor Area
PersonWorkAgrmtAuthznGrpg Organizational Key
_ManagerPersonWorkAgreement _ManagerPersonWorkAgreement
_ManagerPersonWorkAgreement_1 _ManagerPersonWorkAgreement_1

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_PersWrkAgrmtManagerForKeyDte.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: IPERSWRKAGRMTMGR
-- Parameters: P_KeyDate : vdm_v_key_date

CREATE VIEW I_PersWrkAgrmtManagerForKeyDte AS
SELECT
  cast( PersonWorkAgreement as persno preserving type ) AS PersonWorkAgreement,
  cast( $parameters.P_KeyDate as dats preserving type ) AS KeyDate,
  cast( ManagerPersonWorkAgreement as mstbr preserving type ) AS ManagerPersonWorkAgreement,
  cast( PersonWorkAgrmtAuthznGrpg as vdsk1 preserving type ) AS PersonWorkAgrmtAuthznGrpg
FROM I_PersWrkAgrmtPosDet AS perswrkagrmtposdet
LEFT OUTER JOIN I_PersonWorkAgreement AS _ManagerPersonWorkAgreement ON _ManagerPersonWorkAgreement.PersonWorkAgreement = ManagerPersonWorkAgreement  -- association [1..1]
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _ManagerPersonWorkAgreement_1 ON _ManagerPersonWorkAgreement_1.PersonWorkAgreement = ManagerPersonWorkAgreement  -- association [1..1]
;