P_WorkPackageWorkItem
P_WorkPackageWorkItem is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (/cpd/d_work_item, /cpd/d_pfp_ps) and exposes 16 fields. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| /cpd/d_work_item | WorkItem | from |
| /cpd/d_pfp_ps | WorkPackage | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_WorkItemText | _WorkItemText | $projection.WorkItem = _WorkItemText.WorkItem |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PWRKPCKGWITM | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| WorkItemUUID | /cpd/d_work_item | db_key | UUID | |
| EngagementProject | /cpd/d_work_item | mp_id | Cust Project ID | |
| WorkPackage | /cpd/d_work_item | wp_id | Plan Item | |
| WBSElementObject | /cpd/d_pfp_ps | mapped_item_id | Object ID | |
| EngagementProjFinPlanUUID | /cpd/d_work_item | root_key | UUID | |
| WorkPackageUUID | /cpd/d_work_item | parent_key | UUID | |
| WorkItem | /cpd/d_work_item | work_item_id | Work Item ID | |
| work_item_nameendasWorkItemName | ||||
| WorkItemIsInactive | /cpd/d_work_item | work_item_is_inactive | Is Inactive | |
| WorkItemIsStandard | /cpd/d_work_item | work_item_is_standard | Is Standard | |
| created_by | /cpd/d_work_item | created_by | Version Created By | |
| created_on | ||||
| changed_by | /cpd/d_work_item | changed_by | User Name | |
| changed_on | ||||
| is_deleted | /cpd/d_pfp_ps | is_deleted | Truth Value | |
| _WorkItemText | _WorkItemText |
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_WorkPackageWorkItem.
-- 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: PWRKPCKGWITM
CREATE VIEW P_WorkPackageWorkItem AS
SELECT
WorkItem.db_key AS WorkItemUUID,
WorkItem.mp_id AS EngagementProject,
WorkItem.wp_id AS WorkPackage,
WorkPackage.mapped_item_id AS WBSElementObject,
WorkItem.root_key AS EngagementProjFinPlanUUID,
WorkItem.parent_key AS WorkPackageUUID,
WorkItem.work_item_id AS WorkItem,
case when WorkItem.work_item_is_standard = 'X' then _WorkItemText[1:Language=$session.system_language].WorkItemName else WorkItem.work_item_name end as WorkItemName AS work_item_nameendasWorkItemName,
WorkItem.work_item_is_inactive AS WorkItemIsInactive,
WorkItem.work_item_is_standard AS WorkItemIsStandard,
WorkItem.created_by AS created_by,
cast(WorkItem.created_on as /cpd/cpm_createdon) AS created_on,
WorkItem.changed_by AS changed_by,
cast(WorkItem.changed_on as /cpd/cpm_changedon) AS changed_on,
WorkPackage.is_deleted AS is_deleted
FROM /cpd/d_work_item AS WorkItem
INNER JOIN /cpd/d_pfp_ps AS WorkPackage ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WorkItemText AS _WorkItemText ON WorkItem = _WorkItemText.WorkItem -- association [0..*]
;
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