Creating Audit Rules

Configuring a Custom Audit Rule Manually

Objective

After completing this lesson, you will be able to configure a new audit rule without AI Assist

Custom Audit Rules

You can use configurable audit rules to enforce expense policies, ensure compliance, and reduce the risk of errors or fraud. These rules automatically review submitted expense reports for specific criteria - such as duplicate expenses, policy violations, or missing receipts - and flag or prevent submission when they detect exceptions. ​

Custom audit rules allow organizations to tailor compliance checks to specific groups or users, whether in production or test environments. By defining custom conditions, you can apply targeted policies that evaluate the real-time details of each submitted expense report, ensuring that the system enforces your organization’s unique requirements as expenses are processed.​

There are four key steps to creating a Custom Audit Rule:

  • Details​

  • Conditions​

  • Exceptions​

  • Review

Audit Rules page listing multiple custom expense audit rules with statuses and actions.​

Custom Audit Rule Details

The Details page allows you to name the rule and determine who has access to the rule.

Create New Audit Rule details form showing rule name, groups, status, audience, and navigation to conditions.

Review the terms and definitions below to learn more about the fields on the Details page.

Name
It is best practice to be concise and use the conditions that will trigger the rule when naming a rule. Also, use a singular asterisk at the beginning of the Audit Rule name to signal that this is an active rule.
Edit Rights
You can limit the administrative abilities of users with the Expense Configuration access based on their Group. Select Global if you wish for all administrators to manage the rule.

Note

It is best practice to set editing rights as Global.
Applicable Groups
This determines who is affected by the conditions of the rule.
Status
Allows you to activate or deactivate a rule.
Audience
Filters which user can see the exception message associated with the triggered rule. Note: If the message is a hard stop the message should be visible to the employee.

Custom Audit Rule Conditions​

Conditions are if/then rules that trigger the attached exception message and action. The conditions serve as a checklist for the system to review and determine when to display the attached exception message and action. Custom audit rules can only evaluate information on the current expense report being evaluated.

Create New Audit Rule conditions defining dinner expenses over 75 USD on entry save.

Review the terms and definitions below to learn more about the fields on the Conditions page.

Trigger Event
Represents when the system should review the form for potential conditions met.
From/Object
Determines which form the system should evaluate.
Field
Reveals the list of fields available on the form selected in the Form/Object column.
Comparison
Includes and excludes the selected values.
Value/Object
Allows administrators to add an additional form to compare or display the values associated with the field selected.
Value
Answers the questions to the Field selected.

Note

Conditions can be written in any order; however, the conditions can be grouped to create compound statements.​

Custom Audit Rule Exception

The Exceptions page determines the message that displays once the conditions are met. Exception messages should not only clearly display to the affected user, but also explain how to resolve the error. Once an exception message is created, it is added to the Exceptions administrative area.

Create New Audit Rule exception screen with code, severity level, and warning message for dinner expenses over $75.

Review the terms and definitions below to learn more about the fields on the Exceptions page.

Code
Exception codes can be alphanumeric; they must be uppercase and are a maximum of eight characters.
Severity Level
Determines the color of the message displayed to the employee. Yellow warning messages are levels 1-98. Warning messages will display to the user, but will allow report submission. Level 99+ creates a red message and prevents the user from submitting their expense report.
Exception Message
The message displayed to the user.

Custom Audit Rule Save and Finish

The Review Details page is a comprehensive view of details, triggers, and exceptions. This allows an administrator to double-check a new audit rule before applying the rule to the system.

Review and finish screen for a new audit rule blocking dinner expenses over $75.

Configure a New Audit Rule

Review the steps below to create a Custom Audit Rule manually:

Steps

  1. Select the Create button, and then select the Create Manually link.

    Audit Rules page listing multiple custom expense audit rules with statuses and actions.
  2. From the Audit Rule Details page, enter all required fields, and then select the Next button.

    Generate Audit Rule dialog overlay on the Audit Rules page, showing an AI prompt field to create a new audit rule, example guidance text, and buttons to generate with AI or create manually.​
  3. From the Conditions page, select the Event Trigger, select the Form/Object, Field, Comparison, Value Object, and Value, and then select the three-dot icon to add, remove, or group conditions, then select the Next button.​

    Create New Audit Rule details form showing rule name, groups, status, audience, and navigation to conditions.
  4. From the Exceptions page, create a unique Exception Code, Severity Level, and Exception Message.

    Create New Audit Rule conditions defining dinner expenses over 75 USD on entry save.
  5. Select the Next button, and from the Save and Finish page, review the condition details.

    Create New Audit Rule exception screen with code, severity level, and warning message for dinner expenses over $75.
  6. Select the Save and Finish button to apply the rule.

    Review and finish screen for a new audit rule blocking dinner expenses over $75.

Summary

  • Configurable audit rules help enforce expense policies, ensure compliance, and reduce the risk of errors or fraud. ​
  • When exceptions are detected, the system can flag the report or prevent submission. ​
  • Custom conditions evaluate real‑time details of each submitted expense report to enforce organization‑specific requirements. ​
  • Conditions are built using if/then logic that acts as a checklist and triggers exception messages ​
  • Custom audit rules can only evaluate information on the current expense report being processed.

Reference

TopicLink
Custom Audit Rules (New UI)SAP Help Portal