I_CustomerProjectWorkPackage

DDL: I_CUSTOMERPROJECTWORKPACKAGE SQL: ICPWORKPACKAGE Type: view BASIC Package: CPD_CDS

Customer Project Work Package

I_CustomerProjectWorkPackage is a Basic CDS View that provides data about "Customer Project Work Package" in SAP S/4HANA. It reads from 1 data source (I_WorkPackage) and exposes 19 fields with key field CustProjWorkPackageUUID. It has 2 associations to related views. Part of development package CPD_CDS.

Data Sources (1)

SourceAliasJoin Type
I_WorkPackage CustomerProjectWorkpackage from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_CustomerProject _CustomerProject $projection.CustProjFinancialPlanUUID = _CustomerProject.CustProjFinancialPlanUUID
[1..1] E_CustomerProjectWorkPackage _Extension CustomerProjectWorkpackage.WorkPackageUUID = _Extension.CustProjWorkPackageUUID

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName ICPWORKPACKAGE view
EndUserText.label Customer Project Work Package view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY CustProjWorkPackageUUID
CustProjFinancialPlanUUID
CustomerProjectWorkPackage
CustProjWorkPackageName
CustProjWorkPackageStartDate I_WorkPackage WorkPackageStartDate Start Date
CustProjWorkPackageEndDate I_WorkPackage WorkPackageEndDate End Date
CustomerProject _CustomerProject CustomerProject Engmnt Project ID
CustomerProjectType _CustomerProject CustomerProjectType
CustomerProjectServiceOrg _CustomerProject CustomerProjectServiceOrg
Currency _CustomerProject Currency Valuation Crcy
CustomerProjectUUID
CustomerProjectName
WBSElementObject I_WorkPackage WBSElementObject Object number
SalesOrderItem
SalesOrder I_WorkPackage SalesOrder SD Document
WBSDescription I_WorkPackage WBSDescription WBS Element Name
LastChangeDateTime I_WorkPackage LastChangeDateTime Timestamp
LastChangedByUser I_WorkPackage LastChangedByUser User Name
_CustomerProject _CustomerProject

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_CustomerProjectWorkPackage.
-- 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: ICPWORKPACKAGE

CREATE VIEW I_CustomerProjectWorkPackage AS
SELECT
  cast(CustomerProjectWorkpackage.WorkPackageUUID as /cpd/ss_cp_wp_uuid ) AS CustProjWorkPackageUUID,
  cast(CustomerProjectWorkpackage.EngagementProjFinPlanUUID as /cpd/cust_pfp_db_key preserving type) AS CustProjFinancialPlanUUID,
  cast(CustomerProjectWorkpackage.WorkPackage as /cpd/ss_cp_wp ) AS CustomerProjectWorkPackage,
  cast(CustomerProjectWorkpackage.WorkPackageName as /cpd/ss_cp_wp_name ) AS CustProjWorkPackageName,
  CustomerProjectWorkpackage.WorkPackageStartDate AS CustProjWorkPackageStartDate,
  CustomerProjectWorkpackage.WorkPackageEndDate AS CustProjWorkPackageEndDate,
  _CustomerProject.CustomerProject AS CustomerProject,
  _CustomerProject.CustomerProjectType AS CustomerProjectType,
  _CustomerProject.CustomerProjectServiceOrg AS CustomerProjectServiceOrg,
  _CustomerProject.Currency AS Currency,
  cast(_CustomerProject.CustomerProjectUUID as /cpd/ss_cp_uuid ) AS CustomerProjectUUID,
  cast(_CustomerProject.CustomerProjectName as /cpd/ss_cp_desc ) AS CustomerProjectName,
  CustomerProjectWorkpackage.WBSElementObject AS WBSElementObject,
  cast(CustomerProjectWorkpackage.SalesOrderItem as /cpd/so_item_id preserving type) AS SalesOrderItem,
  CustomerProjectWorkpackage.SalesOrder AS SalesOrder,
  CustomerProjectWorkpackage.WBSDescription AS WBSDescription,
  CustomerProjectWorkpackage.LastChangeDateTime AS LastChangeDateTime,
  CustomerProjectWorkpackage.LastChangedByUser AS LastChangedByUser
FROM I_WorkPackage AS CustomerProjectWorkpackage
LEFT OUTER JOIN I_CustomerProject AS _CustomerProject ON CustProjFinancialPlanUUID = _CustomerProject.CustProjFinancialPlanUUID  -- association [0..1]
LEFT OUTER JOIN E_CustomerProjectWorkPackage AS _Extension ON CustomerProjectWorkpackage.WorkPackageUUID = _Extension.CustProjWorkPackageUUID  -- association [1..1]
;