| Status | |
|---|---|
| Owner | FRUTEAU-ext, Sabrina |
| Stakeholders | |
| Jira Request ID | ERP-131 Automated Close of Portfolio Item, Project & WBS |
| Jira Development ID | ERP-106 Automated Close of Portfolio Item, Project & WBS |
| 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 |
Over time, many PPM items and SAP Project System (PS) projects reach completion or become inactive but remain open in the system. 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. To address these issues, this enhancement introduces a program supporting 2 scheduled processes to manage idle projects and assets:
1. 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 Financial Controller for further review and action.
2. Pending Closure AuC (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 Asset Manager, enabling timely follow-up and resolution.
This enhancement specifically targets SAP Project System (PS) projects that meet the following both criteria:
The scope includes:
The objectives are:
Process Flow Diagram

Step | Description | Comment |
|---|---|---|
| 1 | 3 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 | The program only selects the SAP PS Projects with status = TECO |
| 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)
Insert the flowchart and fill in the steps
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 | Inactivity Period: No further transactions (financial or logistical) occur on the AuC for X months. | 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 Asset Manager with details of all idle AuCs requiring attention. | |
| 4 | Asset Manager: Reviews the notification and takes appropriate follow-up actions (e.g., investigates, initiates settlement, etc...).
|
Describe any assumptions that have been made in the process of completing this design. What functionality is expected of configuration or other developments that pass information to this development and/ or retrieve the information processed by it (performance, triggers, exceptions, etc.)
ERP-167 Sync Project Person Responsible & Applicant with HR Positions
ERP-174 Synch Status from PPM Item to PS Project/WBS
ERP-87 Automate Asset & Settlement Rule Creation - Workflow
To detail the security requirements for processing this enhancement, any data integrity issues associated with the object and the teams that will be responsible for processing the object, i.e. authorization/roles required to who can execute the enhancements, etc.
- Custom Tables, enhancement, transaction codes, programs, Web Dynpro Application, Code Data Services (CDS), Open Data Protocol (OData), BI reports, and Functional Modules need to have at least one authority check either standard or custom. (custom should be an exception)
- All custom tables will be maintained in a certain Authorization Group (example: ZFIN, etc.)
- In the case of transaction codes an additional check other than the object S_TCODE is required. You can use SU24 to find the related authorization objects to check.
All other WRICEFs
- If the authorization check is already performed in the calling Programs, this section can be filled as “Follow calling programs authorization check” (example : BADI to redirect DMS to OpenText, in which the calling Manage Purchase requisition Fiori App already performed authorization check)
- If the authorization check is not checked in any of the development, this section should be filled with the proposed authorization check. You can refer to SU24 to see the standard authorization objects. (example: full custom Fiori App to enable user to download/upload the project plan)
Specify the configuration requirements for this object. Like in case of substitution/ routine specify the configuration needed
Specify the language requirements for this object. Specify the required language and type of translation, like labels, data.
Specify any special requirements or considerations that may impact the enhancement based on specific locations, regulatory compliance or system limitations. Clearly outline requirements e.g. localization rules for countries like China
If the enhancement interacts with third-party systems such as Icertis, describe any additional integration, security or authentication considerations that must be taken into account.
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.
2.2 Closure Criteria Review:
Attempt to close the WBS elements. Closure is only possible if all of the following conditions are met:
Project Closure Action:
For each AuC assigned to a WBS element project:
Inactive Project Closure:
Financial Controllers receive a consolidated notification listing:
Idle AuC Monitoring:
Asset Managers receive a notification listing all identified idle AuCs, including relevant details and recommended actions.
If a responsible recipient cannot be identified, the issue is logged for further investigation.
Typically, an enhancement will be based on an existing SAP BADI / user exit. If this is the case, please provide the proposed details of the BADI / user exit.
Include an overview of the source. Can be deleted if not needed.
| Table | Field Name | Comments/Calculation/Field Manipulation |
|---|---|---|
| PROJ | PSPNR, OBJNR, PROFL | Used to select the projects in scope |
| JEST | OBJNR, STAT | Select Projects which are set to status TECO |
| 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 | Capitalization date |
Include an overview of the data validation requirement. Can be deleted if not needed.
| Table | Field Name | Comments/Calculation/Field Manipulation |
|---|---|---|
If any custom configuration tables are required, which will be read by the enhancement logic, then specify them here. Can be deleted if not needed.
<Title Custom Table 1>
<Include an overview of the table and what it’s used for>
| Field | Description | Data Type/Length | Validation rule/ Value Help |
|---|---|---|---|
Title Configuration Table 1
Include an overview of the table and what it’s used for
| Field | Description | Data Type/Length | Validation rule/ Value Help |
|---|---|---|---|
This section will give the details on the selection screen parameters, parameter type and whether it’s obligatory or not. This section can be used to define the Import Export parameters for Function Module or User Exit or Screens. Can be deleted if not needed.
| 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 |
|---|---|---|---|---|---|
| Mode | 2 options to select from:
| Options | None | ||
| Inactivity period (days) | Field used by the program to identify the projects to close or the idle AuC. The field can be a number of days. | Input field | number 3 digits | 180 days (= 6 months) |
This section defines the detailed step-by-step logic implemented within the BAdI/User Exit to process the data received from the standard SAP program and database retrieval. It explains the operations performed on the data, the expected outcomes in different scenarios and how the system should behave in response to specific conditions.
1. Scheduled Processing
The program can be executed in 2 modes:
The Inactivity period (defined as 6 months in this FS) is set as an input parameter.
2. Inactive project closure review
For each identified inactive project, the program:
2.1.Identification of Inactive SAP PS Projects
| ZPS0003 | Statistical Expense |
| ZPS0004 | Intercompany Recharges |
| ZPS0005 | Provisional Expense |
2.2 Checks if no outstanding time transfer
All time booking is transferred to the WBS element (Time booked and time transfer completed).
Check 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. ==> Step 2.5.
2.3 Attempt to set the project status to CLSD (Closed). If 2.2 is successful, 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 completed and closed in the system. |
| No Open Work Orders All work orders (maintenance, production, or service) assigned to the WBS element are completed and closed in the system. |
No Open AuC |
| Overall balance on WBS element = 0 |
Good receipt |
*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 environment
BAPI_BUS2054_SET_STATUS – to set the WBS/project status
BAPI_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.4 If all the above criteria (2.1 and 2.2) are met, meaning that the project closure simulation reported no errors, the project can be closed:
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.
2.5 If condition 2.1 and/or 2.2 are not fulfilled, the project will not be closed.
Check if the Capitalization date (PRPS-USR08)
Notifications detailed in section 5 will be issued.
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 your 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 If AuCs not fully capitalized/settled, send a notification to Asset Manager. Details in section 4.
Template email:
Subject: Inactive Project Closure Review Results – [Processing Date]
Dear [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- 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 (Order IDs, AuC, etc.) | Reason (SAP Error Message) |
... | ... | AuC: 1000000456 | Error when processing asset under construction (AuC) for WBS element A |
... | ... | WBS element id | Balance of WBS A.000046.01.02.02 is not zero |
... | ... | WBS element id | Pending CATS time entry records for transfer.* |
*In this case the notification does not display the SAP error message, as no error is generated. Please use the mentioned reason. This occurs if condition 3.1 is valid.
Please review the reasons and take the necessary actions (e.g., settle balances, close orders, resolve AuC issues) to enable closure in the next review cycle.
Next scheduled review: [Next Review Date]
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 [Asset Manager, see section 4.3 for deriving 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.
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 4. | Taken from table ANLA: input ANLN1 Asset number and retrieve TXT50 | WBS element identified in section 4. | Project ID identified in section 4. | Section 4.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
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.
Unknown.
Specify if there are any specific performance factors that need to be taken into consideration during development i.e. enhancement must be able to be executed by 10 users at the same time, etc.
The job log report should:
| 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 Asset Manager containing all inactive AuC. |
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.
