P_PersnWrkAgrmtCtrlgForOPg
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)
| Source | Alias | Join 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)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA