Last reviewed · Rinexis SAP security team
An SAP SoD matrix is a grid of business functions that marks which pairs must not be held by the same user, such as maintaining vendors and running payments. Implemented in a tool, it becomes an SoD ruleset: risks made of functions, each function defined by transaction codes and the authorization object values they need.
Matrix vs ruleset
The matrix is the business view. Functions such as "Maintain vendor master" or "Post goods receipt" run along both axes, and each marked cell is a conflict that someone in the business has agreed is unacceptable. It is easy for process owners and auditors to read and sign off.
The ruleset is the technical view of the same decisions. Each marked cell becomes a risk, and each function is translated into the transactions and authorization values that let a user perform it in SAP. A matrix without a ruleset cannot be run against user data; a ruleset without an agreed matrix behind it is hard to defend in an audit. You need both, and they must stay in step. For the underlying concept, see what segregation of duties in SAP means.
How a GRC ruleset is structured
SAP GRC Access Control uses a layered model that most other tools follow in some form.
| Element | What it holds | Example |
|---|---|---|
| Ruleset | A named collection of risks used for analysis | The delivered global ruleset, or a client-specific one |
| Business process | Grouping for risks and functions, used for ownership and reporting | Procure to pay, Order to cash, Finance, Basis |
| Risk | Risk ID, description, type, rating, owner, and the functions it combines | Maintain vendor + process vendor payments |
| Function | One business activity, defined by actions and permissions | Maintain vendor master |
| Action | A transaction code that performs the function | FK01, FK02, XK01, BP |
| Permission | Authorization object, field and value the action must pass | F_LFA1_BUK with ACTVT 01 or 02 |
| Rule | Generated combination of one action from each function | FK02 with F110 |
Risks come in three types: segregation of duties (two or more functions), critical action (one function that is sensitive on its own) and critical permission (a sensitive authorization value). The last two cover critical transactions and are usually maintained in the same ruleset.
Ratings are typically Critical, High, Medium and Low. The rating drives priority, reporting and, in many companies, whether mitigation is allowed at all. After changing risks or functions in GRC, the rules must be regenerated before analysis reflects the change.
Building the matrix
- Start from a baseline. The SAP-delivered GRC rules or a vendor library give you standard functions and conflicts. Do not invent a ruleset from scratch.
- Scope by process. List the business processes in use and remove functions for modules you do not run; unused rules add noise and slow analysis.
- Agree conflicts with process owners. Each risk needs a business owner who confirms it is real and signs off its rating.
- Translate functions into actions and permissions. Use SU24 proposals and authorization traces to find the objects each transaction checks, and record the values that mean change rather than display.
- Add custom transactions. Map every relevant
Ztransaction into the function it performs (next section). - Test against known users. Run the ruleset on a few users and roles whose access you understand, and check both false positives and missed conflicts.
Covering custom transactions
The delivered rules know nothing about your custom code. A Z report that posts journal entries, or a Z transaction that calls ME21N, can complete one side of a conflict without appearing in any analysis. This is the most common reason a ruleset looks clean while the system is not.
- List custom transactions from
TSTCand classify what each one runs inSE93. - For parameter and wrapper transactions that start a standard transaction, add the custom tcode to the same function as the standard one. See wrapper transactions and S_TCODE.
- For custom reports and dialog programs, read the code or trace it to find the authorization checks, then add matching permissions.
- Prioritise by usage and by the production roles that grant each custom tcode.
Permission-level detail
A function defined only by transaction codes over-reports, because display users are flagged alongside change users. Adding permissions narrows each action to the values that matter, such as ACTVT 01 (create) and 02 (change) rather than 03 (display).
Permissions only work if roles are maintained consistently. Manually inserted objects, wildcard values and changed SU24 proposals all affect results. Review permission definitions whenever role design standards change.
GRC also supports organizational rules, which restrict a risk to cases where both functions apply to the same org value, such as the same company code. Use them sparingly; they add maintenance and can hide real conflicts if org values are wildcarded.
Reviewing and maintaining the ruleset
Treat the ruleset as a controlled configuration item. Auditors increasingly test the ruleset itself, not only the conflicts it reports.
- Change control: every added, changed or disabled risk has a request, an approver and a date. Disable rather than delete, so history stays traceable.
- Periodic review: at least annually, process owners reconfirm risks and ratings, and security confirms coverage of new custom transactions and new modules.
- Upgrade and migration triggers: an S/4HANA conversion replaces many classic transactions with new ones and Fiori apps, so functions must be extended, not only carried over.
- Link to mitigation: any risk that is accepted for some users needs mitigating controls mapped to the specific risk ID.
Frequently asked questions
What is the difference between an SoD matrix and an SoD ruleset?
The matrix is a business-level grid showing which functions conflict, used for sign-off with process owners. The ruleset is its technical implementation: risks built from functions, each defined by transaction codes and authorization object values, that a tool can run against SAP user and role data.
What is a risk ID in SAP GRC?
A risk ID is the unique identifier of a risk in an SAP GRC Access Control ruleset. It carries the description, risk type, rating, business process, owner and the functions that make up the conflict. Mitigating controls and analysis results are tied to the risk ID.
What are functions and actions in an SAP GRC ruleset?
A function is one business activity, such as maintaining vendor master data. Actions are the transaction codes that perform that function, and permissions are the authorization object values each action must pass. A risk combines two or more functions that should not be held by one user.
How often should an SAP SoD ruleset be reviewed?
Most organizations review it at least once a year with process owners, and also whenever new modules, significant custom developments or a system conversion go live. Every change in between should follow change control with an approver, so auditors can trace the ruleset's history.
Does the standard SAP GRC ruleset cover custom transactions?
No. The delivered rules cover SAP standard transactions only. Custom transactions, custom reports and wrapper transactions that call standard ones must be added to the right functions by your own team, otherwise conflicts that use them are not reported.
Ruleset Check imports an SAP GRC Access Control or Pathlock ruleset and converts it to one model with a dry-run preview. Client rules are authored on a shared base library, and analysis only runs against an approved, activated ruleset. Coverage Scanner then scores how much of your custom Z-transactions and CDS views the ruleset covers, weighted by usage and risk, and proposes additions for the gaps.
Sodly runs the approved ruleset against users and roles and reports conflicts rated Critical to Low by process area. Our consultants also design and tune rulesets as part of SAP GRC engagements.