High- Level Specification
| Parameter | Value |
|---|---|
| Application System | SAP S/4HANA ROW, SAP S/4HANA China, SAP S/4HANA CUI |
| Business Process Reference |
Functional Overview
The purpose of this enhancement is to introduce a validation and logic control during the creation of Settlement Rules in Plant Maintenance Orders.
Settlement rules are automatically created with Cost Center as the settlement receiver for all the maintenance orders. However, for Turnaround scenarios, the settlement should not go to a Cost Center but instead to a WBS Element associated with the Turnaround event.
The enhancement will intervene at the moment of Settlement Rule creation (not necessarily during Order Release), check whether the Maintenance Order is part of a Turnaround (via Revision/Maintenance Event field), and assign the correct receiver type accordingly.
Scope and Objectives
Enhancement of Settlement Rule creation logic in PM Orders (via BAdI or Enhancement Spot).
Automatic determination of WBS element for Turnaround-related orders.
Maintain standard behavior for non-turnaround orders (default Cost Center settlement).
To ensure correct and automated determination of the appropriate settlement receiver (WBS or Cost Center) based on Turnaround context, maintaining compliance with project cost accounting principles.
Step | Description | Comment |
|---|---|---|
| 1 | User creates a Maintenance Order. | |
| 2 | User opens the Cost tab → triggers Settlement Rule creation or triggers Settlement Rule via releasing the order. | |
| 3 | System calls Enhancement (BAdI). | Enhancement logic: Check if the Revision/Maintenance Event (REVNR) field in the order is filled. |
| 4 | Settlement Rule created accordingly. | |
| 5 | Order can later be released and costs will settle correctly. |
Assumptions
Y3 notification type is available and configured in the system.
Relevant users have Fiori app access (Create Maintenance Notification, Find Maintenance Notification)
Each Turnaround Order has at least one Maintenance Event/Revision assigned.
Notifications with the same REVNR contain the correct WBS element to be used for settlement.
Standard SAP PM settlement logic is assumed to be functioning correctly for non-turnaround orders.
Users creating maintenance orders have appropriate authorization for reading notifications and WBS elements.
Dependencies
Fiori app configuration for notifications and orders.
Y3 Notification must have WBS element assigned.
BADI implementation must be activated in the system for settlement rule enhancement.
Integration with PS module (for WBS element retrieval) must be in place.
Other custom developments interacting with AFIH, VIQMEL, or settlement rules must not conflict with this logic.
Security, Integrity and Controls
To ensure secure processing of this enhancement, the following points apply:
Configuration Requirements
The following configuration changes are required to support the enhancement:
Implementing BADI for settlement rule creation
No additional customizing required for standard Cost Center settlement logic.
Language Requirements
Special Requirements
Ensure performance is not impacted when processing large numbers of orders or notifications.
In case of multiple notifications for the same Maintenance Event, implement a rule to select the correct WBS.
If future integrations consume WBS or settlement data, ensure compliance with their data structure and format.
Design Rationale
Functional Requirements
Proposed Technology to Use
Check Order:
Check if the Maintenance Event/Revision (REVNR) field is filled in the order (AFIH).
Retrieve Maintenance Event:
If REVNR exists, go to the maintenance notification (VIQMEL) and populate Y3 (QMART) with the REVNRvalue from the order.
Identify WBS Element:
For the maintenance notification matching this REVNR, retrieve the associated WBS element (PSP_NR).
Settlement Rule Creation:
For all orders with this Maintenance Event/Revision, create settlement rule to the retrieved WBS element.
If no REVNR is found, default settlement rule is created to the order’s Cost Center.
Data Source Considerations
| Table | Field Name | Comments/Calculation/Field Manipulation |
|---|---|---|
Data Validation Considerations
| Table | Field Name | Comments/Calculation/Field Manipulation |
|---|---|---|
Custom Tables
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 |
|---|---|---|---|---|---|
Processing Logic
Notification Creation (Type Y3):
User creates notification via Fiori app.
System checks if notification type = Y3.
If yes → WBS field must be filled.
If WBS is blank → error message displayed.
Notification saved only if WBS valid and released.
Order Creation (from Notification):
User converts Y3 notification to order.
System automatically copies WBS element to Order-Account Assignment section (ILOA-PROID).
Settlement rule generation is handled through standard SAP functionality based on the assigned settlement profile.
System creates settlement rule automatically.
Error message displayed if settlement rule creation fails.
Order Processing:
Order processed normally.
Settlement executed automatically based on the generated rule.
Volumetrics
Performance Considerations
Error Handling
- Missing WBS (Y3 Notification): Error message “WBS Element is mandatory for notification type Y3.”
- Invalid or Unreleased WBS: Error message “WBS Element is invalid or not released.”
Testing
How to Test
Test Conditions and Expected Results
| ID | Condition | Expected Result |
|---|---|---|
| 1 | Create notification type Y3 without WBS | System throws error; cannot save. |
| 2 | Create notification type Y3 with valid released WBS | Notification saved successfully. |
| 3 | Convert Y3 notification to order via Find Maintenance Notification. | WBS copied to order; settlement rule auto-created. |
| 4 | Check settlement rule in order. |
Test Considerations/Dependencies
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 |