| Status | |
|---|---|
| Owner | FRUTEAU-ext, Sabrina |
| Stakeholders | |
| Jira Request ID | |
| Jira Development ID |
| Parameter | Value |
|---|---|
| Application System | SAP S/4HANA - CUI instanceSAP S/4HANA - China instance SAP S/4HANA - Rest of World instance |
| Business Process Reference | 10.02.04.01. Manage Project Settlement and Closure |
This functional specification defines the custom development required to automatically replicate specific PPM Item User Statuses to linked PS Project and WBS Element User Statuses.
The enhancement ensures that when an Item in PPM is updated to statuses: TECO/Cancelled, Closed/Cancelled or On Hold, the corresponding PS User Status is automatically set on the associated Project Definition.
Standard PPM to PS integration (via DFM configuration) supports mapping PPM Item Status to PS System Status only.
Since Cancelled and On Hold are User Statuses in PS, standard functionality cannot be used, requiring custom development.
The objectives of this Functional Specification are to ensure consistency between PPM and PS project status management by synchronizing User Statuses across both modules whenever a relevant status change occurs in PPM.
![]()
Step | Description | Comment |
|---|---|---|
| 1 | Trigger: User changes of PPM Item Status to:
| Upon saving, the PPM item status is updated. |
| 2 | System triggers the status change on the corresponding SAP PS project to Cancelled or On Hold. | Item changed to status On Hold => PS project status changed to On Hold Item changed to status TECO/Cancelled =>
Item changed to status Closed/Cancelled =>
The statuses Cancelled and On Hold are assigned to the related WBS element of the same project. |
| 3 | User changes the PPM item status from On hold to Approved. The system removed status On Hold on the corresponding PS project. | |
| 4 | User changes the PPM item status from TECO/Cancelled to Closed/Cancelled. PS project system status updated to Closed via DFM | Not in the scope of this FS. |
| 5 | User changes the PPM item status from TECO/Cancelled to TECO. The system removed status Cancelled on the corresponding PS project. | |
| 6 | User changes the PPM item status from Closed/Cancelled to TECO/Cancelled. PS project system status updated to TECO via DFM. | Not in the scope of this FS. |
N/A
PPM item status configuration defined.
DFM configuration to synchronize PPM item status with SAP PS project system status.
SAP PS user statuses Cancelled and On Hold defined.
N/A
N/A
N/A
N/A
When a user sets the Item Status in PPM to one of the below statuses:
The corresponding PS Project and its WBS Elements must automatically receive the corresponding PS User Status.
PPM is the controlling application. Users must not manually adjust the PS status for these cases.
The solution must ensure aligned user statuses between PPM and PS at all times.
The update must occur:
2. Update related WBS elements with Cancelled or On hold statuses
When the status "Cancelled" or "On Hold" is assigned to a project definition, the same status must be automatically assigned to all underlying WBS elements. The replication should occur immediately upon status assignment at the project level.
3. Reversibility
If the PPM item status is changed from On Hold, TECO/Cancelled or Closed/Cancelled to another allowed status as per PPM configuration, the status change must be reflected on the SAP PS project, and removed from all dependent WBS elements.:
| From | To | Expected behavior |
| On Hold | Approved | deactivate user status On Hold on PS Project |
| On Hold | TECO | deactivate user status On Hold on PS Project |
| TECO/Cancelled | TECO | deactivate user status Cancelled on PS Project |
| TECO/Cancelled | Closed/Cancelled | TECO system status handled by DFM configuration. User status Cancelled is already assigned to PS project. |
| Closed/Cancelled | TECO/Cancelled | Closed system status handled by DFM configuration. User status Cancelled is already assigned to PS project. |
4 If corresponding SAP PS status is locked for edit by a user, do not allow the change on the PPM item. Error message in PPM stating that the SAP PS project is currently being used by user id, and therefore the status change is not allowed.
Implement BADI RPM_PROJ_CUST_FIELDS to trigger synchronisation and update the PS using BAPI.
Include an overview of the source. Can be deleted if not needed.
| Table | Field Name | Comments/Calculation/Field Manipulation |
|---|---|---|
| /RPM/ITEM_D | STATUS | Check PPM item status assigned |
| TJ30 | ESTAT, TXT04, TXT30 | SAP PS user statuses definition table |
| /RPM/STATUS_T | STATUS, TEXT | PPM item status definition table |
| PRPS | PSPHI | Check WBS elements related to project |
N/A
| Table | Field Name | Comments/Calculation/Field Manipulation |
|---|---|---|
N/A
N/A
| Field | Description | Data Type/Length | Validation rule/ Value Help |
|---|---|---|---|
N/A
| Field | Description | Data Type/Length | Validation rule/ Value Help |
|---|---|---|---|
N/A
| Field Name | Description | Select: Option or Parameter Check box or Radio button Import or Export | Data Type/Length | Default Value/ Validation rule/ Value Help | Selection Logic |
|---|---|---|---|---|---|
If the field STATUS on the PPM item (table /RPM/ITEM_D) is changed to values On Hold, TECO/Cancelled, Closed/Cancelled:
PPM Status | PPM status id | Corresponding SAP PS User status | PS - TXT04 status text |
On Hold | Z006 | On Hold | HOLD |
TECO/Cancelled | Z007 | Cancelled | CNCLD |
Closed/Cancelled | Z008 | Cancelled | CNCLD |
2. Automatic Replication of User Statuses "Cancelled" and "On Hold" from Project to WBS Elements
For each WBS element, if the status is being set on the project, set the same status on the WBS element (if not already set).
If the status is removed from the project definition, it should also be removed from the WBS elements.
Table PRPS field PSPHI = Project id
BAPI_BUS2054_SET_STATUS for WBS elements.3. If status is changed from On Hold, TECO/Cancelled, Closed/Cancelled to another value:
From | PPM status id from | To | PPM status id To | Expected results |
On Hold | Z006 | Approved | Z002 | Deactivate user status On Hold on PS Project |
On Hold | Z006 | TECO | Z006 | Deactivate user status On Hold on PS Project |
TECO/Cancelled | Z007 | TECO | Z006 | Deactivate user status Cancelled on PS Project |
TECO/Cancelled | Z007 | Closed/Cancelled | Z007 | Check that user status Cancelled is already assigned to PS project. If not, Set. |
Closed/Cancelled | Z008 | TECO/Cancelled | Z008 | Check that user status Cancelled is already assigned to PS project. If not, Set. |
4. If the status update fails because the PS Project is locked:
Display a meaningful error message to the PPM user: “Status update cannot be applied because Project <Project ID> is currently locked in SAP PS by user <username>. Please try again later.”
Log the failure in the PPM log or message queue.
Unknown.
N/A
In case of failure the status change will not save. So the user will receive an error message, and can re iterate the status change save.
To test the solution, open the PPM application and update the PPM item status to the relevant statuses (On Hold, TECO/Cancelled, and Closed/Cancelled). After saving, verify that the corresponding SAP PS project and its associated WBS elements reflect the same status changes. Additionally, confirm that reversing these statuses in the PPM item also reverses the statuses in the corresponding SAP PS project and WBS elements.
| ID | Condition | Expected Result |
|---|---|---|
| 1 | Create 3 PPM items and approve the first Stage Gate to trigger the PS Project creation. | SAP PS project created with same id as PPM item. |
| 2 | Change the projects status to:
| Statuses are replicated to the corresponding SAP PS projects. Related WBS elements are updated with the same. |
| 3 | Change again the statuses on the 3 projects:
| Changes are reflected to the SAP PS project. Related WBS elements are updated with the same. |
| 4 | Open the SAP PS project and the PPM item in edit mode simultaneously. Change the PPM item with any of the above mentioned statuses. Save. | PS project lock error message and status change is not saved on the PPM item. |
List any considerations essential for application test planning (e.g., test this before ABC along with DEF separate from GHI). If the development encompasses a user interface, explain how to test it. List any insights as to how this component could be tested the most efficiently.
| Package Name | Parent Package |
|---|---|
| Enhancement Type | Standard Definition Name | Custom Implementation Name | Design Rationale Reference |
|---|---|---|---|
| Object Type | Object Name | Purpose/High Level Logic | Design Rationale Reference |
|---|---|---|---|
This table is based on the Syensqo development standards document. It provides the naming conventions for authorization groups to associated with custom reports and tables to comply with security requirements.
ABAP | ZFI | ZMM | ZPS | ZCO | ZSD | ZBC | ZFI | ZCA |
|---|---|---|---|---|---|---|---|---|
| TABLES | ZFIT | ZMMT | ZPST | ZCOT | ZSDT | ZBCT | ZFIT | ZCAT |
Insert links and references to other documents which are relevant when trying to understand this decision and its implications. Other decisions are often impacted, so it's good to list them here with links. Attachments are also possible but dangerous as they are static documents and not updated by their authors.
