| Status | Revision in progress |
|---|---|
| Owner | FRUTEAU-ext, Sabrina |
| Stakeholders | |
| Jira Request ID | ERP-131 - Getting issue details... STATUS |
| Jira Development ID | ERP-106 - Getting issue details... STATUS |
High- Level Specification
| Parameter | Value |
|---|---|
| Application System | SAP S/4HANA - China instance SAP S/4HANA - Rest of World instance |
| Business Process Reference | 10.02.04.01. Manage Project Settlement and Closure |
Functional Overview
Over time, many PPM items and SAP Project System (PS) projects reach completion or become inactive but remain open in the system and delay capitalization. This leads to administrative inefficiencies, a cluttered project portfolio, and potential compliance risks. To address these challenges, this enhancement proposes the automation of idle project closure. Additionally, this enhancement introduces a solution to identify idle projects and assets.
The program offers 2 modes, which will be scheduled as a batch job:
1. Inactive Projects Closure (Quarterly)
Run on a quarterly basis to identify inactive or idle projects, which have not been set to Closed status. The program will attempt to automatically close these projects if all closure criteria are met. If a project cannot be closed due to outstanding issues (such as open balances or commitments), the system will notify the responsible Project Financial Controller for further review and action.
2. Idle AuC Monitoring (Monthly)
Run on a monthly basis to identify any idle Assets under Construction (AuC). The program will generate a consolidated notification listing all such AuCs that require attention and send it to the Regional Asset Manager, enabling timely follow-up and resolution.
Scope and Objectives
This enhancement specifically targets SAP Project System (PS) projects that meet the following criteria:
- Project status is either "Technically Completed" (TECO) or is still active but all depending WBS elements are set to TECO status, for which no financial transactions have occurred for a given period (defined as an input parameter, example 6 months).
- AuCs assigned to WBS elements for which no financial transactions have occurred for a given period (defined as an input parameter, example 6 months).
The scope includes:
- Assessment of whether these projects can be fully closed in the system.
- Notification to the responsible Project Financial Controller if closure is not possible due to outstanding issues (e.g., open balances or commitments).
- Notification for regular review of idle AuCs identified to the Regional Asset Manager.
The objectives are:
- Minimize erroneous postings by preventing transactions on inactive projects
- Optimize reporting by ensuring only active and relevant projects appear as open
- Maintain good data hygiene by keeping project data accurate,
- Highlighting non capitalized costs and POs or WOs left open.
Process Flow Diagram
- Inactive Project Closure Review
Step | Description | Comment |
|---|---|---|
| 1 | 4 possible scenarios:
2. User/Responsible person - Project: Changes the PPM item status to TECO
3. User/Responsible person - Project: No PPM item related to the SAP PS project. The User changes the SAP PS project status to TECO 4. User/Responsible person - Project: Sets all the WBS elements within a project to TECO, while the project remains active. | |
| 2 | Inactivity Period
| X = Inactivity period defined as input parameter. |
| 3 | System (Scheduled Process): On a quarterly basis, scans for SAP PS projects with:
| The program identifies the SAP PS projects in scope. |
| 4 | Closure Attempt The program checks if the eligible projects can be closed.
|
2. Idle Asset Under Construction (AuC) Monitoring
(for periodic review and notification of AuCs with no recent activity)
Step | Description | Comment |
|---|---|---|
| 1 | AuC created and assigns it to a specific WBS element, linking it to a project. Transactions are posted to the AuC as project activities occur. | |
| 2 | Identify the AuC for which:
| X = Inactivity period defined as input parameter. |
| 3 | The program compiles a consolidated list of all identified idle AuCs. Sends a monthly consolidated notification to the Regional Asset Manager with details of all idle AuCs requiring attention. | |
| 4 | Regional Asset Manager: Reviews the notification and takes appropriate follow-up actions (e.g., investigates, initiates settlement, etc...).
|
Assumptions
SAP PS projects and WBS elements are assigned the TECO status once all project activities have been completed and no further work is expected.
The program can only be run in one mode per execution: Inactive project closure OR Idle AuC monitoring.
Input parameter Inactivity period is used for the 2 program modes and can be set to different values.
Dependencies
ERP-512 Sync Project Person Responsible & Applicant with HR Positions - Batch: To derive Project Financial Controller.
ERP-1018 Synch Status from PPM Item to PS Project/WBS: When closing the PPM item, the status Closed is replicated to the corresponding SAP PS project.
ERP-87 - Getting issue details... STATUS : To derive Regional Asset Manager
Security, Integrity and Controls
The program will be scheduled to run as a batch job. Manual execution will be permitted only in exceptional cases and restricted to authorized users.
Configuration Requirements
N/A
Language Requirements
English
Special Requirements
N/A
Design Rationale
Functional Requirements
This section describes the business process and decision logic for managing inactive SAP PS projects and idle Assets under Construction (AuCs). It outlines the key steps and criteria used to identify, review, and act on inactive projects and assets.
Please note that technical implementation details are provided separately in the Processing Logic section.
1. Scheduled Processing
- The program runs in two modes:
- Inactive Project Closure Review: Conducted quarterly to identify and process inactive projects.
- Idle AuC Monitoring: Conducted monthly to identify and report on idle Assets under Construction.
- The period of inactivity (default: six months) can be adjusted as needed (input parameter).
2. Inactive Project Closure Review
2.1. Identification of Inactive SAP PS Projects
- The program identifies SAP PS projects that are no longer active, marked as “Technically Completed” TECO
- Some Project profiles will be excluded (input parameter). For example, Statistical, Provisional Expense or Intercompany Recharge purposes are excluded from this review.
- Only projects and WBS elements with no recorded activity (actuals or commitments) in the past X months are considered inactive and subject to further review. X = Inactivity period.
- SAP PS projects that are still active (i.e., not TECO, Cancelled, or Closed), where all associated WBS elements have the status TECO, CNCL or CLSD assigned, and for which there have been no transactions during the past X months (with X being the specified inactivity period). In this case if identified, the program will issue a notification.
2.2 Closure Criteria Review:
- In the case of SAP PS projects that are still active (i.e., not TECO, Cancelled, or Closed), where all associated WBS elements have the status TECO, and for which there have been no transactions during the past X months (with X being the specified inactivity period): Include these projects to the notification for review.
For all identified projects in step 2.1, the program first attempts to close the WBS elements. Closure is only possible if all of the following conditions are met:
Outstanding Time Transfer Check: Confirm that all time bookings have been fully transferred to the relevant WBS elements
- No process or work orders with active status
- No open purchase orders
- Process Orders and Work Orders fully settled
- All linked assets under construction are fully capitalized or settled
- The WBS element has a zero balance
Some of these conditions are handled by the standard solution. When attempting to close a SAP PS project, the system automatically verifies that these requirements are met and, if not, displays an error message.
However, the standard solution does not perform the checks for (i) outstanding time transfers and (ii) process order status by default. As a result, these checks will be carried out by the custom program in advance, prior to initiating the project closure.
c. Project Closure Action:
- If all conditions are satisfied, the project status is set to closed. If the project is linked to a portfolio management item, its status is also updated to “Close.”
- If any condition is not met, the project remains open and the reasons are documented in a notification to the Project Financial Controller (see section 4).
3. Idle AuC Monitoring
For each AuC assigned to a WBS element project:
- Identify any AuCs that have not been fully capitalized or settled.
- Identify last activity (posting) date.
- Exclude the AuCs for which the Capitalization date is set to a future date on the WBS element.
- If last activity date is older than the Inactivity period defined and outstanding balance exist, send a consolidated notification to the Regional Asset Manager (see section 4).
4. Notifications
Inactive Project Closure:
Project Financial Controllers receive a consolidated notification listing:- Projects that were successfully closed
- Projects that could not be closed, with reasons for each (e.g., open commitments, pending time transfers, unsettled assets)
- Guidance on next steps and the date of the next scheduled review
Idle AuC Monitoring:
Regional Asset Managers receive a notification listing all identified idle AuCs, including relevant details and recommended actions.
If a recipient cannot be identified, the issue is logged for further investigation.
- See Processing logic for rules to derive email recipients.
Proposed Technology to Use
N/A
Data Source Considerations
| Table | Field Name | Comments/Calculation/Field Manipulation |
|---|---|---|
| PROJ | PSPNR, OBJNR, PROFL | Used to select the projects in scope |
| JEST | OBJNR, STAT, INACT | Check Project and WBS element statuses. |
| CATSCO | RPROJ, TRANSFERRED | Check if CATS time entries not transferred to WBS element |
| /RPM/ITEM_D | ITEM_D | If SAP PS project id exists in this table, then there is a corresponding PPM item. |
| ACDOCA | ANLN1 | Check if the AuC asset still has a balance |
| ANLA | ANLKL | Check the asset class = AuC. |
| COBRB | OBJNR, COBRB | Identify assets linked to the related WBS element |
| PRPS | USR08, PSPHI, STUFE | Capitalization date |
Data Validation Considerations
| Table | Field Name | Comments/Calculation/Field Manipulation |
|---|---|---|
Custom Tables
N/A
Master Data
| Field | Description | Data Type/Length | Validation rule/ Value Help |
|---|---|---|---|
Configuration Table
| Field | Description | Data Type/Length | Validation rule/ Value Help |
|---|---|---|---|
Selection Screen Enhancement
| Field Name | Description | Select: | Data Type/Length | Default Value/ Validation rule/ Value Help | Selection Logic |
|---|---|---|---|---|---|
| Mode | 2 options to select from:
| Options | None | Only one mode can be selected at the time. Mandatory. | |
| Project Profile | Refers to field PROFL in table PROJ | User can exclude some project profiles. | Refer to Data element PROFIDPROJ | Optional | |
| Inactivity Period | Input parameter Number of days | 180 days (6 months) | Mandatory. Applicable for both modes. |
Processing Logic
1. Scheduled Processing
The program can be executed in 2 modes:
- Inactive project closure review: The identification and processing of inactive projects must occur quarterly.
- Idle AuC Monitoring: The identification and reporting of idle AuCs must occur monthly.
Only one mode can be executed at a time. A single input field, "Inactivity period," is defined and can be applied to both modes.
2. Inactive project closure review
For each identified inactive project, the program:
2.1.Identification of Inactive SAP PS Projects
- The program identify SAP PS projects with:
- status TECO:
- JEST: Object Status (stores status information for objects like projects and WBS) STAT field = TECO and INACT = Blank
- PROJ: Project Definition (main project header data)
- Join the 2 tables to keep only project definitions.
- Result: List of project definitions (IDs) that are TECO.
- Exclude PS project with Project profiles values mentioned in Selection screen - PROJ-PROFL
- status TECO:
- The program identify SAP PS projects with:
| ZPS0003 | Statistical Expense |
| ZPS0004 | Intercompany Recharges |
| ZPS0005 | Provisional Expense |
- Check that no transactions for the past X months (X = Inactivity period) months: no Actuals nor Commitment posted on the related WBS elements.
Get all the related WBS elements table PRPS field PSPHI = Project id
Query ACDOCA where OBJNR = PRPS_OBJNR (WBS element Object number)
- Filter by BUDAT for posting date.
- Check that the latest posting date is older than (Current date - X (Inactivity period))
- The program also checks for the SAP PS projects that are still active (i.e., not TECO, Cancelled, On Hold or Closed) with all their associated WBS elements in status TECO/Cancelled or Closed:
- Identify active projects = Projects not assigned to statuses TECO, CNCL, CLSD, HOLD.
- The program also checks for the SAP PS projects that are still active (i.e., not TECO, Cancelled, On Hold or Closed) with all their associated WBS elements in status TECO/Cancelled or Closed:
BAPI_PROJECTDEF_GETLIST can be used to select the projects based on system and user statuses.
Exclude system status TECO, CLSD and user status HOLD and CNCL.
- Exclude PS project with Project profiles values mentioned in Selection screen - PROJ-PROFL
- For the projects identified, check if all Level 2 (L2) WBS elements have inactive statuses TECO, CNCL or CLSD.
- Table PRPS field PSPHI = Project id
- Table: PRPS field STUFE = 2.
- Table JEST-STAT: Check that all L2 WBS elements have the status TECO, CNCL or CLSD assigned with field INACT = Blank.
- If not, ignore the project.
- If so, then check if all WBS elements at other levels also have the status TECO, CNCL or CLSD.
- Table PRPS field PSPHI = Project id and field STUFE > 2
- Table JEST-STAT: Check that all WBS elements have the status TECO, CNCL or CLSD assigned.
- If so, Check that no Actuals nor Commitment posted on all of the related WBS elements for the inactivity period defined.
- Get all the related WBS elements table PRPS field PSPHI = Project id
- Query ACDOCA where OBJNR = PRPS_OBJNR (WBS element Object number)
- Filter by BUDAT for posting date.
- Check that the latest posting date > X (Inactivity period).
- If so, Check that no Actuals nor Commitment posted on all of the related WBS elements for the inactivity period defined.
- If no Actuals nor Commitment posted on all of the related WBS elements for the inactivity period defined, include these projects in the email notification (section 4.1).
2.2 Checks if no outstanding time transfer
For all the projects identified in step 1, check that all time booking is transferred to the WBS element (Time booked and time transfer completed).
Table CATSCO
RPROJ = WBS element = Project id followed by * to obtain all WBS elements for a given project definition (Example, if the project id = A.000004, then search all RPROJ values starting with A.000004);
TRANSFERRED = " "
If any records with Transferred = " ", then some records are still expected to be transferred. The project cannot be closed. Email notification, see Step 4.1.
2.3 Checks related Order statuses
Identify the Work orders and Process Orders assigned to the WBS elements:
Identify the WBS elements assigned to the SAP PS project.
Function Modules:
- CO_WBS_ELEMENT_ORDERS_READ => retrieves all the orders assigned to a WBS element.
- STATUS_READ => Read status of an order
- If status = Created or Released, The project cannot be closed. Email notification, see Step 4.1.
2.4 Attempt to set the project status to CLSD (Closed). If 2.2 and 2.3 are successful (No outstanding time transfer and Order statuses are closed), simulate a SAP PS Project status change to Closed. If not the below closure criteria are met, the system will prevent the closure and issue an error message.
| No Open Commitments - Outstanding purchase orders - Outstanding purchase requisitions* |
| No Open R&I Process Orders All process orders assigned to the WBS element are settled. |
| No Open Work Orders All work orders (maintenance, production, or service) assigned to the WBS element are settled. |
No Open AuC |
| Overall balance on WBS element = 0 |
*If Purchase requisitions are not replicated from Ariba to S4, no check at project closure is done.
Before performing any actual status changes, the system will simulate the project closure using the following BAPIs:
BAPI_PS_INITIALIZATION– to initialize the PS environmentBAPI_BUS2054_SET_STATUS– to set the WBS/project statusBAPI_PS_PRECOMMIT– to check for errors prior to commit
In this simulation mode, no status changes are saved. The purpose is solely to detect whether any of the above closure conditions are not fulfilled. If a condition fails, the corresponding error messages returned by the BAPIs will be captured and reported in the notification issued.
2.5 If all the above criteria (2.2, 2.3) are met, meaning that the project closure simulation reported no errors, the project can be closed:
- If the SAP PS project is related to a PPM id, the PPM item status be updated:
- If PPM Item status = TECO/Cancelled => change PPM Item status to Closed/Cancelled.
- If PPM Item status = TECO => change PPM item status to Closed.
- If the SAP PS project is related to a PPM id, the PPM item status be updated:
Check project id exist in /RPM/ITEM_D field ITEM_D
Function Module /RPM/ITEM_CHANGE - This function module allows to change attributes of a PPM item, including its status.
The status change to Close on the PPM item will be replicated to the SAP PS project.
- Else set the SAP PS project to status CLSD.
- A consolidated notification is sent to the Project Financial Controller. See section 4.1.
3. Idle AuC Monitoring
3.1. Identifying AuC Related to WBS
Use ANLA fields:
ANLN1 (Asset Number)
ANLN2 (Asset Subnumber)
POSNR (WBS Element)
ANLKL (Asset Class — to filter for AuC)
Filter where ANLKL corresponds to the AuC asset class and POSNR matches your WBS element.
3.2. Checking for the last Activity (identifying dormant AuC)
Use BUDAT (Posting Date) in ACDOCA.
If there are no entries for the asset in the last X months (X= Inactivity period), it meets inactivity criterion.
3.3. Checking Capitalization/Settlement
Analyze postings in ACDOCA for the asset to determine if it’s fully capitalized or settled.
Use FM FI_AA_VALUES_CALCULATE to determine if the calculated balance is zero, which indicates full settlement.
If there are still open balances or no settlement/capitalization postings, the asset is not fully settled.
3.4 Capitalization date check
Exclude AuC meeting the above criteria (3.1, 3.2 and 3.3) for which the Capitalization date PROJ-USR08 is set to a future date (Capitalization date > Current date) on the assigned WBS element.
3.5 If AuCs meets the above criteria, send a notification to Regional Asset Manager. Details in section 4.
4. Notification
4.1. Inactive project closure review:
A consolidated notification for each Project Financial Controllers highlighting:
- Projects that were closed by the program
- Projects that could not be closed and the reasons.
- Email notification Language = English
Template email:
Subject: Inactive Project Closure Review Results – [Processing Date]
Dear [Project Financial Controller, see section 4.3 for deriving Financial Controller],
As part of the regular review of inactive projects (PS status TECO and no activity in the past [Inactivity period] months), please find below the summary of closure attempts performed on [Processing Date].
1- PPM Items and Projects Successfully Closed
The following projects were successfully closed:
Project ID | Project Name/Description |
... | ... |
2- Projects Not Closed
The following projects could not be closed.
Project ID | Project Name/Description | Object | Reason (Standard or custom error message) |
... | ... | WBS element id | Balance of WBS A.000046.01.02.02 is not zero |
... | ... | WBS element id | Pending CATS time entry records for transfer.* |
Process Order not completed* |
*Custom error: In these cases the notification does not display the SAP error message, as no error is generated during the project closure attempt. Please use the mentioned reason. This occurs if condition 2.2 and 2.3 have failed the check.
3- Projects found active, while all related WBS elements are set to TECO, CNCL or CLSD and no activity in the past [Inactivity period] months:
Project ID | Project Name/Description |
... | ... |
Please review the reasons and take the necessary actions (e.g., settle balances, close orders, resolve AuC issues).
4.2 Idle AuC Monitoring:
A consolidated notification highlighting all the AuC which have not been
Email template:
Subject: Consolidated List of Idle Assets Under Construction (AuC) – [Processing Date]
Dear [Regional Asset Manager, see section 4.3 for deriving Regional Asset Manager],
As part of the periodic review of inactive AuC, the following Assets have been identified as inactive (no activity in the past [Inactivity period] months) and are not fully capitalized or settled, and for which the capitalization date has not been maintained or is overdue.
Please review the list below and take appropriate action to settle or capitalize these assets as needed.
| AuC Number | AuC Description | Linked WBS Element | Project ID | Outstanding Amount | Capitalization date |
| Identified AuC in section 3 | Taken from table ANLA: input ANLN1 Asset number and retrieve TXT50 | WBS element identified in section 3 | Project ID identified in section 3 | Section 3.3 - Use FM FI_AA_VALUES_CALCULATE to obtain the total outstanding amount. | Maintained on the WBS element. Table PRPS field USR08. |
4.3 Deriving email recipients
- Project Financial controller: Project Financial controller position is stored in table PRPS, field ASTNR. From the position ID the SAP Personal ID can be derived through table HRP1001. Then obtain the email address through PA0105.
- Regional Asset Manager: Refer to FS ERP-87 Automate Asset & Settlement Rule Creation - Workflow.
4.4 Handling notification errors (No recipient derived)
If email recipients cannot be identified, no notification is sent, error is shown in the job error log report.
Volumetrics
Unknown.
Performance Considerations
N/A
Error Handling
The job log report should:
- Record the execution details of the program, including start and end times and selection criteria (Execution mode + Inactivity period).
- Log the number of objects processed
- List PPM items and SAP PS successfully set to closed
- List projects not closed and provide reason (error)
- Capture any errors encountered during execution.
- Provide an overview of the notifications sent (recipient, successful or failed)
Testing
How to Test
Test Conditions and Expected Results
| ID | Condition | Expected Result |
|---|---|---|
| 1 | Prepare test data:
| Projects are created covering the various scenarios. |
| 2 | Execute the program in mode Inactive project closure review. | Expected projects are closed. Expected PPM items are closed. Notification is sent with the errors report for non closed projects and closed projects overview. Records of all actions are included in the notification, including:
The job log should be reviewed for audit and troubleshooting. |
| 3 | Execute the program in mode Idle AuC Monitoring | Notification is sent to the Regional Asset Manager containing all inactive AuC. |
Test Considerations/Dependencies
N/A
Other Information
Development Details
Package
| Package Name | Parent Package |
|---|---|
Enhancement Implementation
| Enhancement Type | Standard Definition Name | Custom Implementation Name | Design Rationale Reference |
|---|---|---|---|
Other Development Objects
| Object Type | Object Name | Purpose/High Level Logic | Design Rationale Reference |
|---|---|---|---|
Appendix
Custom Authorization Group Naming Convention
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 |
