P_PersnWrkAgrmtCtrlgForOPg

DDL: P_PERSNWRKAGRMTCTRLGFOROPG SQL: PPERSWKAGRMTCTRL Type: view BASIC

P_PersnWrkAgrmtCtrlgForOPg is a Basic CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 25 fields with key field PersonWorkAgreement. It has 2 associations to related views.

Data Sources (6)

SourceAliasJoin Type
I_PersonWorkAgrmtSrvcCostLevel _PersonWorkAgrmtSrvcCostLevel left_outer
I_PersonWorkAgrmtSrvcCostLevel _PersonWorkAgrmtSrvcCostLevel left_outer
P_PersonWorkAgrmtOrglDetails EmploymentDetails from
P_PersonWorkAgrmtOrglDetails EmploymentDetails union_all
wfd_d_new_pers switch left_outer
wfd_d_new_pers switch inner

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Employmentcostlevel _ServiceCostLevel $projection.PersonWorkAgreement = _ServiceCostLevel.EmploymentInternalID and $projection.ValidityStartDate = _ServiceCostLevel.StartDate and $projection.ValidityEndDate = _ServiceCostLevel.EndDate
[0..*] I_OrganizationalUnitText _OrganizationalUnitName $projection.OrganizationalUnit = _OrganizationalUnitName.OrganizationalUnit and _OrganizationalUnitName.StartDate <= $session.system_date and _OrganizationalUnitName.EndDate >= $session.system_date and _OrganizationalUnitName.Language = $session.system_language

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PPERSWKAGRMTCTRL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC 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
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.preserveKey true view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY PersonWorkAgreement P_PersonWorkAgrmtOrglDetails PersonWorkAgreement Personnel No.
KeyDate P_PersonWorkAgrmtOrglDetails StartDate Valid From
CompanyCode P_PersonWorkAgrmtOrglDetails CompanyCode Receiver Company Code
CostCenter P_PersonWorkAgrmtOrglDetails CostCenter Cost Center
Job P_PersonWorkAgrmtOrglDetails Job Undefined range (can be used for patch levels)
OrganizationalUnit P_PersonWorkAgrmtOrglDetails OrganizationalUnit Org. Unit ID
WorkAgreementStatus
PersonWorkAgrmtAuthznGrpg P_PersonWorkAgrmtOrglDetails PersonWorkAgrmtAuthznGrpg Org.key
ValidityStartDate I_PersonWorkAgrmtSrvcCostLevel StartDate Valid From
ValidityEndDate I_PersonWorkAgrmtSrvcCostLevel EndDate Term to
ServiceCostLevel I_PersonWorkAgrmtSrvcCostLevel ServiceCostLevel Service Cost Level
_ServiceCostLevel _ServiceCostLevel
PersonWorkAgreementasPersonWorkAgreement
KeyDate P_PersonWorkAgrmtOrglDetails StartDate Valid From
CompanyCode P_PersonWorkAgrmtOrglDetails CompanyCode Receiver Company Code
CostCenter P_PersonWorkAgrmtOrglDetails CostCenter Cost Center
Job P_PersonWorkAgrmtOrglDetails Job Undefined range (can be used for patch levels)
OrganizationalUnit P_PersonWorkAgrmtOrglDetails OrganizationalUnit Org. Unit ID
WorkAgreementStatus
PersonWorkAgrmtAuthznGrpg P_PersonWorkAgrmtOrglDetails PersonWorkAgrmtAuthznGrpg Org.key
ValidityStartDate I_PersonWorkAgrmtSrvcCostLevel StartDate Valid From
ValidityEndDate I_PersonWorkAgrmtSrvcCostLevel EndDate Term to
ServiceCostLevel I_PersonWorkAgrmtSrvcCostLevel ServiceCostLevel Service Cost Level
_ServiceCostLevel _ServiceCostLevel
_OrganizationalUnitName _OrganizationalUnitName

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 P_PersnWrkAgrmtCtrlgForOPg.
-- 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: PPERSWKAGRMTCTRL

CREATE VIEW P_PersnWrkAgrmtCtrlgForOPg AS
SELECT
  EmploymentDetails.PersonWorkAgreement AS PersonWorkAgreement,
  EmploymentDetails.StartDate AS KeyDate,
  EmploymentDetails.CompanyCode AS CompanyCode,
  EmploymentDetails.CostCenter AS CostCenter,
  EmploymentDetails.Job AS Job,
  EmploymentDetails.OrganizationalUnit AS OrganizationalUnit,
  EmploymentDetails.PersonWorkAgrmtAuthznGrpg AS PersonWorkAgrmtAuthznGrpg,
  _PersonWorkAgrmtSrvcCostLevel.StartDate AS ValidityStartDate,
  _PersonWorkAgrmtSrvcCostLevel.EndDate AS ValidityEndDate,
  _PersonWorkAgrmtSrvcCostLevel.ServiceCostLevel AS ServiceCostLevel
FROM P_PersonWorkAgrmtOrglDetails AS EmploymentDetails
LEFT OUTER JOIN I_PersonWorkAgrmtSrvcCostLevel AS _PersonWorkAgrmtSrvcCostLevel ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN wfd_d_new_pers AS switch ON /* join condition not captured in parsed metadata */
INNER JOIN wfd_d_new_pers AS switch ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Employmentcostlevel AS _ServiceCostLevel ON PersonWorkAgreement = _ServiceCostLevel.EmploymentInternalID AND ValidityStartDate = _ServiceCostLevel.StartDate AND ValidityEndDate = _ServiceCostLevel.EndDate  -- association [0..1]
LEFT OUTER JOIN I_OrganizationalUnitText AS _OrganizationalUnitName ON OrganizationalUnit = _OrganizationalUnitName.OrganizationalUnit AND _OrganizationalUnitName.StartDate <= $session.system_date AND _OrganizationalUnitName.EndDate >= $session.system_date AND _OrganizationalUnitName.Language = $session.system_language  -- association [0..*]
-- UNION ALL with additional select branch(es): P_PersonWorkAgrmtOrglDetails
;