P_PERSNWRKAGRMTROLEFOROPG

DDL: P_PERSNWRKAGRMTROLEFOROPG SQL: PPERSWKAGRMTROLE Type: view BASIC

P_PERSNWRKAGRMTROLEFOROPG is a Basic CDS View in SAP S/4HANA. It reads from 5 data sources (wfd_d_assgmtdets, /shcm/d_cnt_wrk, wfd_d_assgmt, wfd_d_new_pers, wfd_d_new_pers) and exposes 2 fields with key field PersonWorkAgreement.

Data Sources (5)

SourceAliasJoin Type
wfd_d_assgmtdets dets inner
/shcm/d_cnt_wrk Identifier from
wfd_d_assgmt new union_all
wfd_d_new_pers switch left_outer
wfd_d_new_pers switch inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPERSWKAGRMTROLE view
VDM.viewType #BASIC view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.preserveKey true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY PersonWorkAgreement /shcm/d_cnt_wrk pernr Personnel no.
workforce_assgmt_idasPersonWorkAgreement

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_PERSNWRKAGRMTROLEFOROPG.
-- 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: PPERSWKAGRMTROLE

CREATE VIEW P_PERSNWRKAGRMTROLEFOROPG AS
SELECT
  Identifier.pernr AS PersonWorkAgreement,
  case when Identifier.is_fl is not initial then 'BBP010' when Identifier.is_sp is not initial then 'BBP005' else 'BUP003' end as BusinessPartnerRole AS workforce_assgmt_idasPersonWorkAgreement
FROM /shcm/d_cnt_wrk AS Identifier
LEFT OUTER JOIN wfd_d_new_pers AS switch ON /* join condition not captured in parsed metadata */
INNER JOIN wfd_d_assgmtdets AS dets ON /* join condition not captured in parsed metadata */
INNER JOIN wfd_d_new_pers AS switch ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): wfd_d_assgmt
;