P_N_Employmentcostlevel

DDL: P_N_EMPLOYMENTCOSTLEVEL SQL: PNEMPLOYCLEVEL Type: view BASIC

P_N_Employmentcostlevel is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (wfd_d_assgmtdets, wfd_d_srvcostlvl) and exposes 9 fields with key field EmploymentInternalID. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
wfd_d_assgmtdets assgmtdets inner
wfd_d_srvcostlvl costlevel from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_ServiceCostLevelText _CostLevelText $projection.ServiceCostLevel = _CostLevelText.ServiceCostLevel
[0..1] I_User _IUser $projection.LastChangedByUser = _IUser.UserID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PNEMPLOYCLEVEL view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY EmploymentInternalID wfd_d_srvcostlvl workforce_assgmt_id WorkForce Assgmt ID
StartDate wfd_d_srvcostlvl start_date Valn start date
EndDate wfd_d_srvcostlvl end_date Valn End date
ServiceCostLevel cost_level Service Cost Level
LastChangedByUser
LastChangeDate
_CostLevelText _CostLevelText
LastChangedByUserFullName
PersonWorkAgrmtAuthznGrpg

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_N_Employmentcostlevel.
-- 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: PNEMPLOYCLEVEL

CREATE VIEW P_N_Employmentcostlevel AS
SELECT
  costlevel.workforce_assgmt_id AS EmploymentInternalID,
  costlevel.start_date AS StartDate,
  costlevel.end_date AS EndDate,
  cost_level AS ServiceCostLevel,
  '' AS LastChangedByUser,
  '' AS LastChangeDate,
  '' AS LastChangedByUserFullName,
  '' AS PersonWorkAgrmtAuthznGrpg
FROM wfd_d_srvcostlvl AS costlevel
INNER JOIN wfd_d_assgmtdets AS assgmtdets ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ServiceCostLevelText AS _CostLevelText ON ServiceCostLevel = _CostLevelText.ServiceCostLevel  -- association [0..*]
LEFT OUTER JOIN I_User AS _IUser ON LastChangedByUser = _IUser.UserID  -- association [0..1]
;