New to SAP Security & GRC? Start with the module overview
S_RFC — Authorization Object for RFC Function Group Access
Quick answer
S_RFC controls whether a user is allowed to execute an RFC-enabled function module from outside the calling program's own session, checked on the target system at the moment the call arrives. The critical structural fact: the check is granted at the function group level, never at the individual function module level, so one open group exposes every function module inside it.
S_RFC is the authorization object that gates remote function calls into an SAP system, whether they arrive from another SAP system, a middleware connector, a background job, or a client tool calling a BAPI. This page covers the fields checked, where in the call stack the check actually fires, how to trace a failed check using the right user and the right system, and the recurring mistakes that make an apparently correct role still fail.
Reviewed by an ERPClimb SAP consultant on 16 Sept 2026· 945 words
What it protects
S_RFC guards the entry point for any function module called remotely rather than locally within the same ABAP session.
Every time a program on one system reaches out to call a function module on another system, or an external client calls a BAPI wrapper, the receiving system checks S_RFC for the user that the call executes as before it lets the function module logic run.
The one fact that explains almost every confusion around this object is that authorization is granted per function group, not per function module.
Security teams and functional consultants alike often try to restrict access to a single BAPI by naming that function module, only to discover the field does not accept function module names at all in the way expected, and that granting access opens every other function module that happens to sit in the same group.
Fields checked
- RFC_TYPE - the type of RFC object being called. In practice this is almost always FUGR, meaning the check is being evaluated against a function group rather than a transaction or any other RFC object type.
- RFC_NAME - the name of the function group that contains the function module being called, not the name of the function module itself. This is the field responsible for most authorization design mistakes on this object.
- ACTVT - the activity being performed against the RFC object. For executing a remote-enabled function module this is almost universally activity 16 (execute); other activity values are rarely relevant for this object in day to day troubleshooting.
Where it is checked
- Any CALL FUNCTION ... DESTINATION statement, whether the destination points to another SAP system, an external RFC server, or itself via a loopback destination.
- BAPI calls originating from external tools, connectors, or custom programs (Excel add-ins, data load tools, integration middleware, custom Java or .NET clients using the RFC libraries).
- Trusted system logons and RFC destinations configured with stored or trusted credentials, where the check is still enforced against the mapped user on the target system, not the calling system.
- Background jobs and batch interfaces that dispatch work via RFC to another system or instance rather than running the logic locally.
- The check fires on the receiving (target) system, at the point the RFC framework accepts the call and resolves the function module to its owning group, before any application logic inside the function module executes.
How to trace a failed check
SU53 is the first stop but only tells the story if it is checked on the correct user and the correct system.
If a remote call fails, the failure happens under the RFC user configured on the target system's destination, not necessarily the dialog user who triggered the call from the source system, so SU53 in the source session frequently shows nothing useful.
The more reliable path is to run the authorization trace on the target system, filtered to the RFC user in question, then trigger the call again and read the trace entry for object S_RFC directly, which shows the exact RFC_TYPE, RFC_NAME, and ACTVT combination that failed.
From that trace, identify the function group name being requested (the function module's attributes screen shows its owning group). Hand the security team the RFC user, the function group name, and the activity value, rather than the function module name alone, since the role change has to be made against the group.
Whose problem this is
This is a security team problem to fix, but a functional or technical problem to diagnose. A good request names the RFC destination or interface involved, the specific function module (so security can resolve the owning function group), the RFC user executing the call, and the activity required. Do not ask for the function group to be opened broadly; ask for the specific group identified in the trace.
Common pitfalls
- Putting the function module name into RFC_NAME instead of the function group name. The check silently never matches, and the request is rejected as invalid without an obvious error pointing to the real cause.
- Assuming a working call for one BAPI guarantees access to a related BAPI in the same interface. Different BAPIs commonly live in different function groups even when they serve the same business process, so one succeeding proves nothing about the others.
- Fixing S_RFC and still seeing the call fail because the gateway-level access control lists (reginfo and secinfo) block the call earlier in the stack, before authorization checks are even reached. A blocked gateway looks identical to an authorization failure from the calling side.
- Treating a successful call as proof the whole group is now safe to leave open. Broadly authorizing a function group as a quick fix routinely exposes unrelated, more sensitive function modules that happen to share that group.
- Chasing the wrong user. Troubleshooting in the calling system's session shows nothing because the check happened on the target system under the RFC destination's configured user, which may not be the person who initiated the action at all.
Related SAP objects
Reviewed pages this object connects to in the ERPClimb knowledge graph.
Source: ERPClimb — https://erpclimb.com/sap-auth-objects/s-rfcERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.