P_PrimaryCostAssignments
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)
| Source | Alias | Join Type |
|---|---|---|
| I_WorkforceAssignmentDetails | assgmtdets | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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