I_WorkPackage
Work Package
I_WorkPackage (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
R&D Engineering
I_WorkPackage is a Basic CDS View (Dimension) that provides data about "Work Package" in SAP S/4HANA. It reads from 1 data source (/cpd/d_pfp_ps) and exposes 23 fields with key field WorkPackage. It has 9 associations to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | R&D Engineering |
| Application Component | CA-CPD-SS |
| Capabilities | Analytical Dimension, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities, Data Source for Data Extraction, Data Source in SQL Select |
| Package | R&D Engineering for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /cpd/d_pfp_ps | WorkPackage | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_EngagementProjFinancialPlan | _EngagementProjFinancialPlan | $projection.EngagementProjFinPlanUUID = _EngagementProjFinancialPlan.EngagementProjFinPlanUUID |
| [0..1] | I_WBSElementBasicData | _WBSElement | $projection.WBSElementObject = _WBSElement.WBSElementObject |
| [0..1] | I_SalesOrder | _SalesOrder | $projection.SalesOrder = _SalesOrder.SalesOrder |
| [0..1] | I_SalesOrderItem | _SalesOrderItem | $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem and $projection.SalesOrder = _SalesOrderItem.SalesOrder |
| [0..*] | I_EngagementProjectPlanData | _EngagementProjectPlanData | $projection.EngagementProjFinPlanUUID = _EngagementProjectPlanData.EngagementProjFinPlanUUID and $projection.WorkPackage = _EngagementProjectPlanData.WorkPackage |
| [0..*] | I_WorkPackageWorkItem | _WorkPackageWorkItem | $projection.WorkPackage = _WorkPackageWorkItem.WorkPackage and $projection.EngagementProjFinPlanUUID = _WorkPackageWorkItem.EngagementProjFinPlanUUID |
| [0..1] | E_Workpackage | _Extension | WorkPackage.db_key = _Extension.WorkPackageUUID |
| [0..*] | I_ExtSrvcWrkPckgPlnByPerd | _ExtSrvcWrkPckgPlnByPerd | $projection.EngagementProjFinPlanUUID = _ExtSrvcWrkPckgPlnByPerd.EngagementProjFinPlanUUID and $projection.WorkPackage = _ExtSrvcWrkPckgPlnByPerd.WorkPackage |
| [1..*] | I_WorkPackageWithFunctionValue | _WorkPackageFunction | $projection.WorkPackage = _WorkPackageFunction.WorkPackage |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IWORKPCKG | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Work Package | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | WorkPackage | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkPackage | /cpd/d_pfp_ps | plan_item_id | Plan Item |
| WorkPackageUUID | Work Package UUID | |||
| EngagementProjFinPlanUUID | Financial Plan UUID | |||
| WorkPackageName | /cpd/d_pfp_ps | plan_item_name | Plan Item Description | |
| WorkPackageStartDate | /cpd/d_pfp_ps | start_date | Valn start date | |
| WorkPackageEndDate | /cpd/d_pfp_ps | end_date | Valn End date | |
| WBSElementObject | /cpd/d_pfp_ps | mapped_item_id | Object ID | |
| WBSDescription | /cpd/d_pfp_ps | mapped_item_desc | Object Name | |
| SalesOrder | /cpd/d_pfp_ps | sales_order_hdr | Sales Document | |
| SalesOrderItem | /cpd/d_pfp_ps | so_item_id | Sales Document Item | |
| LastChangedByUser | /cpd/d_pfp_ps | changed_by | Changed By | |
| LastChangeDateTime | Commercial Project Last Changed On | |||
| CreatedByUser | /cpd/d_pfp_ps | created_by | Version Created By | |
| CreationDateTime | Created On | |||
| WorkPackageType | /cpd/d_pfp_ps | plan_item_type | Work Package Type | |
| _EngagementProjFinancialPlan | _EngagementProjFinancialPlan | |||
| _EngagementProjectPlanData | _EngagementProjectPlanData | |||
| _WBSElement | _WBSElement | |||
| _SalesOrder | _SalesOrder | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _WorkPackageWorkItem | _WorkPackageWorkItem | |||
| _ExtSrvcWrkPckgPlnByPerd | _ExtSrvcWrkPckgPlnByPerd | |||
| _WorkPackageFunction | _WorkPackageFunction |
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 I_WorkPackage.
-- 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.
CREATE VIEW I_WorkPackage AS
SELECT
WorkPackage.plan_item_id AS WorkPackage,
cast( WorkPackage.db_key as /cpd/wp_db_key preserving type ) AS WorkPackageUUID,
cast(WorkPackage.parent_key as /cpd/eng_pfp_db_key preserving type ) AS EngagementProjFinPlanUUID,
WorkPackage.plan_item_name AS WorkPackageName,
WorkPackage.start_date AS WorkPackageStartDate,
WorkPackage.end_date AS WorkPackageEndDate,
WorkPackage.mapped_item_id AS WBSElementObject,
WorkPackage.mapped_item_desc AS WBSDescription,
WorkPackage.sales_order_hdr AS SalesOrder,
WorkPackage.so_item_id AS SalesOrderItem,
WorkPackage.changed_by AS LastChangedByUser,
cast(WorkPackage.changed_on as /cpd/cpm_changedon) AS LastChangeDateTime,
WorkPackage.created_by AS CreatedByUser,
cast(WorkPackage.created_on as /cpd/cpm_createdon) AS CreationDateTime,
WorkPackage.plan_item_type AS WorkPackageType
FROM /cpd/d_pfp_ps AS WorkPackage
LEFT OUTER JOIN I_EngagementProjFinancialPlan AS _EngagementProjFinancialPlan ON EngagementProjFinPlanUUID = _EngagementProjFinancialPlan.EngagementProjFinPlanUUID -- association [1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON WBSElementObject = _WBSElement.WBSElementObject -- association [0..1]
LEFT OUTER JOIN I_SalesOrder AS _SalesOrder ON SalesOrder = _SalesOrder.SalesOrder -- association [0..1]
LEFT OUTER JOIN I_SalesOrderItem AS _SalesOrderItem ON SalesOrderItem = _SalesOrderItem.SalesOrderItem AND SalesOrder = _SalesOrderItem.SalesOrder -- association [0..1]
LEFT OUTER JOIN I_EngagementProjectPlanData AS _EngagementProjectPlanData ON EngagementProjFinPlanUUID = _EngagementProjectPlanData.EngagementProjFinPlanUUID AND WorkPackage = _EngagementProjectPlanData.WorkPackage -- association [0..*]
LEFT OUTER JOIN I_WorkPackageWorkItem AS _WorkPackageWorkItem ON WorkPackage = _WorkPackageWorkItem.WorkPackage AND EngagementProjFinPlanUUID = _WorkPackageWorkItem.EngagementProjFinPlanUUID -- association [0..*]
LEFT OUTER JOIN E_Workpackage AS _Extension ON WorkPackage.db_key = _Extension.WorkPackageUUID -- association [0..1]
LEFT OUTER JOIN I_ExtSrvcWrkPckgPlnByPerd AS _ExtSrvcWrkPckgPlnByPerd ON EngagementProjFinPlanUUID = _ExtSrvcWrkPckgPlnByPerd.EngagementProjFinPlanUUID AND WorkPackage = _ExtSrvcWrkPckgPlnByPerd.WorkPackage -- association [0..*]
LEFT OUTER JOIN I_WorkPackageWithFunctionValue AS _WorkPackageFunction ON WorkPackage = _WorkPackageFunction.WorkPackage -- association [1..*]
;
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