P_PrimaryCostAssignments

DDL: P_PRIMARYCOSTASSIGNMENTS SQL: PWFDPRMCSTASGMT Type: view COMPOSITE Package: VDM_WFD_WORK_FORCE

Primary Cost Assignments for Work Assignments

P_PrimaryCostAssignments is a Composite CDS View that provides data about "Primary Cost Assignments for Work Assignments" in SAP S/4HANA. It reads from 1 data source (I_WorkforceAssignmentDetails) and exposes 11 fields with key fields WorkAssignment, WorkforceAssgmtStartDate. Part of development package VDM_WFD_WORK_FORCE.

Data Sources (1)

SourceAliasJoin Type
I_WorkforceAssignmentDetails assgmtdets from

Parameters (4)

NameTypeDefault
P_WorkAssignment wfd_workforce_assgmt
P_StartDate vdm_v_start_date
P_EndDate vdm_v_end_date
P_CostAssignmentType wfd_cost_assgmt_type

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PWFDPRMCSTASGMT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #A view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY WorkAssignment I_WorkforceAssignmentDetails WorkforceAssignment WorkForce Assgmt ID
KEY WorkforceAssgmtStartDate I_WorkforceAssignmentDetails WorkforceAssgmtStartDate Valn start date
WorkforceAssgmtEndDate I_WorkforceAssignmentDetails WorkforceAssgmtEndDate Valn End date
CostCenter I_WorkforceAssignmentDetails CostCenter Cost Center
BudgetPeriod
FunctionalArea
Fund
FundsCenter
GrantID
WBSElementExternalID
AlternateCostPercent

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_PrimaryCostAssignments.
-- 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: PWFDPRMCSTASGMT
-- Parameters: P_WorkAssignment : wfd_workforce_assgmt, P_StartDate : vdm_v_start_date, P_EndDate : vdm_v_end_date, P_CostAssignmentType : wfd_cost_assgmt_type

CREATE VIEW P_PrimaryCostAssignments AS
SELECT
  assgmtdets.WorkforceAssignment AS WorkAssignment,
  assgmtdets.WorkforceAssgmtStartDate AS WorkforceAssgmtStartDate,
  assgmtdets.WorkforceAssgmtEndDate AS WorkforceAssgmtEndDate,
  assgmtdets.CostCenter AS CostCenter,
  cast('' as fm_budget_period) AS BudgetPeriod,
  cast('' as fm_farea ) AS FunctionalArea,
  cast('' as bp_geber ) AS Fund,
  cast('' as fm_fictr) AS FundsCenter,
  cast('' as gm_grant_nbr) AS GrantID,
  cast('' as ps_posid_edit ) AS WBSElementExternalID,
  cast( 0 as wfd_percent ) AS AlternateCostPercent
FROM I_WorkforceAssignmentDetails AS assgmtdets
;