P_WorkPackageWorkItem

DDL: P_WORKPACKAGEWORKITEM SQL: PWRKPCKGWITM Type: view BASIC

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)

SourceAliasJoin Type
/cpd/d_work_item WorkItem from
/cpd/d_pfp_ps WorkPackage inner

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_WorkItemText _WorkItemText $projection.WorkItem = _WorkItemText.WorkItem

Annotations (6)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;