You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

Status

  Approved

Owner
Stakeholders
Jira Request ID

ERP-99 - Getting issue details... STATUS

Jira Development ID

ERP-350 - Getting issue details... STATUS

High- Level Specification

ParameterValue
Application SystemSAP 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.


Process Flow Diagram

Step

Description

Comment

1User creates a Maintenance Order or open an existing active order. 

Change Maintenance Order Fiori app

2User opens the Cost tab → triggers Settlement Rule creation or triggers Settlement Rule via releasing the order.
3System calls Enhancement (BAdI).


4Settlement Rule created accordingly.
  • If the order is identified as a Turnaround Order, the system assigns the WBS element retrieved from the Y3 notification that is in the same maintenance planning bucket as the order as the settlement receiver.
  •  If it is not a Turnaround order, the system assigns the Cost Center as the settlement receiver.
5Order 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


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

  • 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.

Proposed Technology to Use

TBD

Data Source Considerations

TableField NameComments/Calculation/Field Manipulation
AFIHAUFNR, REVNRMaintenance Event assigned to the order.
VIQMELQMART, REVNR, PSP_NRUsed to identify if there is a notification of type ‘Y3’ linked to the same Maintenance Event. If yes, PSP_NR (WBS Element) is used as the settlement receiver.
AUFKKOSTLUsed when no valid Turnaround link is found; settlement to Cost Center.



Data Validation Considerations

TableField NameComments/Calculation/Field Manipulation
AFIHREVNRValidate that the Maintenance Event field is not empty before proceeding to check in VIQMEL.
VIQMELQMARTValidate that QMART = ‘Y3’
VIQMELPSP_NRValidate that PSP_NR (WBS Element) is filled for the identified notification; if missing, default settlement to Cost Center.


Custom Tables

Master Data

FieldDescriptionData Type/LengthValidation rule/ Value Help









Configuration Table

FieldDescriptionData Type/LengthValidation rule/ Value Help








Selection Screen Enhancement

Field NameDescription

Select:

Data Type/LengthDefault Value/ Validation rule/ Value HelpSelection Logic













Processing Logic

  • Trigger Point:

    • Enhancement is triggered when the system attempts to create a settlement rule for a maintenance order.

  • Check Maintenance Event:

    • Read the order from table AFIH.

    • If field REVNR (Maintenance Event) is blank, proceed with Cost Center settlement (standard behavior).

  • Check Related Notification:

    • If REVNR is filled, check table VIQMEL for any notification where:

      • QMART = 'Y3'

      • REVNR = <Order’s REVNR>

  • Determine Settlement Receiver:

    • If such a notification exists:

      • Read PSP_NR (WBS element) from the notification.

      • Create settlement rule for WBS element.

    • If no matching notification found:

      • Create settlement rule for Cost Center from AUFK-KOSTL.

  • Validation Checks:

    • Ensure only one receiver type (WBS or Cost Center) is active. (TBD)

    • Ensure WBS element or Cost Center is valid and open for posting.

  • Result:

    • Settlement rule created for the correct receiver type depending on business scenario.



Volumetrics


Performance Considerations



Error Handling


Testing

How to Test

Test Conditions and Expected Results

IDConditionExpected Result
1Order without Maintenance Event/RevisionSystem creates settlement rule for Cost Center (AUFK-KOSTL)
2Order with Maintenance Event/Revision but there is no Y3 notification with the same Maintenance Event/Revision.System creates settlement rule for Cost Center (AUFK-KOSTL)
3Order with Maintenance Event/Revision and there is a valid Y3 notification with the same Maintenance Event/Revision.System creates settlement rule for WBS Element (VIQMEL-PSP_NR)
4Order with Maintenance Event but Y3 notification missing WBS elementSystem defaults to Cost Center settlement.

Multiple Y3 notifications found.


Test Considerations/Dependencies


Other Information


Development Details

Package

Package NameParent Package




Enhancement Implementation

Enhancement TypeStandard Definition NameCustom Implementation NameDesign Rationale Reference









Other Development Objects

Object TypeObject NamePurpose/High Level LogicDesign 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

ZFIZMMZPSZCOZSDZBCZFIZCA
TABLESZFITZMMTZPSTZCOTZSDTZBCTZFITZCAT

See also


No files shared here yet.

Change log

Version Published Changed By Comment
CURRENT (v. 14) Mar 19, 2026 08:35 SARUKAN-ext, Ayse
v. 43 Feb 04, 2026 14:22 SARUKAN-ext, Ayse
v. 42 Nov 17, 2025 13:09 SARUKAN-ext, Ayse
v. 41 Nov 14, 2025 09:44 SARUKAN-ext, Ayse
v. 40 Nov 12, 2025 09:42 SARUKAN-ext, Ayse
v. 39 Nov 11, 2025 15:24 SARUKAN-ext, Ayse
v. 38 Nov 11, 2025 14:48 SARUKAN-ext, Ayse
v. 37 Nov 07, 2025 12:31 SARUKAN-ext, Ayse
v. 36 Nov 07, 2025 12:17 SARUKAN-ext, Ayse
v. 35 Nov 07, 2025 12:11 HEARD-ext, Kevin

Go to Page History

  • No labels