Skip to content
Learn · SAP access risk

SAP authorization objects: fields, ACTVT values and checks

What an SAP authorization object is, how its fields and ACTVT values work, and how ABAP code checks them at runtime.

Last reviewed · Rinexis SAP security team

Definition

An SAP authorization object is the unit SAP uses to check whether a user may perform an action. It groups up to 10 fields, such as activity (ACTVT) and company code (BUKRS), that ABAP code tests together with AUTHORITY-CHECK. A user passes only if one of their authorizations for that object allows every checked field value.

Object class, object, field, value

Authorization data in SAP has four layers. Reading a role or an audit finding is much easier once you can place each term.

The building blocks of SAP authorization data.
LayerExampleWhat it is
Object classFI (Financial Accounting), BC_A (Basis: Administration)A folder that groups related objects. It has no effect on checks.
Authorization objectF_LFA1_BUKA named set of up to 10 fields that are checked together
Authorization fieldACTVT, BUKRSOne dimension of the check, defined in SU20 and reused across objects
AuthorizationF_LFA1_BUK: ACTVT 03, BUKRS 1000A set of permitted values for one object, stored in a profile

Objects and their fields are defined in transaction SU21 (table TOBJ; object classes in TOBC). Custom objects must start with Y or Z. SU21 also links each object to its documentation, which states which fields are checked, which activities are valid and which transactions use it. Read that documentation before granting an unfamiliar object.

ACTVT: the activity field

Most objects include the field ACTVT, which says what the user may do to the data the other fields describe. Activity codes are global (table TACT), but each object only accepts the subset defined for it (table TACTZ), so 16 on one object does not mean the same thing it means on another unless the object documentation says so.

Common ACTVT values. Check the object documentation for which apply to a given object.
ACTVTMeaningTypical audit view
01Create or generateChange access
02ChangeChange access
03DisplayRead-only, usually low risk
05LockChange access, e.g. locking users in S_USER_GRP
06DeleteChange access
08Display change documentsRead-only
10PostChange access, e.g. posting documents
16ExecuteDepends on what is executed, e.g. RFC calls under S_RFC
*All activitiesTreat as full access to the object

A display role that carries ACTVT 01 or 02 on a business object is one of the most common role-design defects. It usually arrives through an unreviewed SU24 proposal or a manually added authorization with *.

Organizational level fields

Some fields describe where in the enterprise structure the user may act: company code (BUKRS), plant (WERKS), sales organization (VKORG), purchasing organization (EKORG) and similar. PFCG treats these as organizational levels. You maintain them once per role in the org-level dialog, and PFCG writes the value into every object in the role that uses that field.

Org levels are what make derived roles work: the master role holds the functional values and each derived role sets its own org levels. A role with BUKRS * gives access to every company code, current and future, which auditors rarely accept for change activities.

How a check runs: AUTHORITY-CHECK and sy-subrc

Apart from S_TCODE at transaction start and a few runtime checks such as S_RFC for incoming RFC calls, SAP checks only what the program asks for. The program decides which objects to check and when, using the ABAP statement AUTHORITY-CHECK OBJECT with an ID ... FIELD ... pair for each field. A field can be skipped with DUMMY. The result is returned in sy-subrc, and the program decides what to do with it.

Main sy-subrc values after AUTHORITY-CHECK.
sy-subrcMeaning
0The user holds an authorization that allows all checked values
4The user has authorizations for the object, but none allows these values
12The user has no authorization for the object at all

Two consequences follow. First, a check only exists if the developer coded it, so custom programs without checks are open to anyone who can start them. Second, a failed check does not always produce an error: the program may silently hide a button or filter out rows. Both matter when you troubleshoot with SU53 or a trace.

Where S_TCODE fits

S_TCODE is checked by the kernel when a user starts a transaction, against field TCD. It is a gate, not the control itself: once inside, the transaction checks its business objects. A user with FK02 in S_TCODE but only ACTVT 03 in F_LFA1_BUK can start the transaction but is stopped by the F_LFA1_BUK check as soon as they try to change vendor data for that company code. In SE93 a transaction can also carry an extra object checked at start.

Custom transactions that call standard ones can change which S_TCODE value is checked, which is why wrapper transactions need their own review.

Authorization, profile and role

  • Authorization: permitted values for one object (table USR12).
  • Profile: a collection of authorizations. This is what the user buffer actually evaluates. PFCG generates profiles automatically; manual profiles such as SAP_ALL are maintained in SU02.
  • Role: the PFCG object that holds a menu, authorization data and users. Generating the role creates its profile. See PFCG roles.

Objects that commonly matter

Frequently reviewed authorization objects and their main fields.
ObjectKey fieldsWhy it matters
S_TCODETCDWhich transactions a user can start
F_LFA1_BUKACTVT, BUKRSVendor master by company code; part of vendor-and-pay SoD
F_BKPF_BUKACTVT, BUKRSAccounting documents by company code
S_USER_GRPACTVT, CLASSUser maintenance by user group; critical in production
S_USER_AGRACTVT, ACT_GROUPRole maintenance and assignment
S_DEVELOPACTVT, OBJTYPE, DEVCLASS, OBJNAME, P_GROUPABAP Workbench; OBJTYPE DEBUG with ACTVT 02 allows changing values in the debugger
S_TABU_DIS / S_TABU_NAMDICBERCLS / TABLE, ACTVTGeneric table display and maintenance; see table access
S_RFCRFC_TYPE, RFC_NAME, ACTVTWhich remote-enabled functions a user can call
S_ADMI_FCDS_ADMI_FCDSystem administration functions

Frequently asked questions

What is ACTVT in SAP?

ACTVT is the activity field included in most SAP authorization objects. It defines what a user may do with the data the other fields describe, such as 01 create, 02 change, 03 display or 06 delete. The valid activities differ per object and are listed in the object documentation in SU21.

How many fields can an SAP authorization object have?

An authorization object can have up to 10 authorization fields. The program checking the object normally tests all of them, though ABAP code can skip a field with the DUMMY addition. A user passes only if a single authorization covers every checked field value.

Which transaction shows SAP authorization objects?

SU21 lists authorization object classes and objects, their fields and their documentation. SU20 maintains authorization fields. To see which objects a transaction checks, use SU24 for the maintained defaults or an authorization trace to see what the code checks at runtime.

What is the difference between an authorization and an authorization object?

The authorization object is the definition: a name and a set of fields. An authorization is a concrete instance of that object with permitted values, for example display access for company code 1000. Users get authorizations through profiles generated from PFCG roles.

What does sy-subrc 12 mean after an authority check?

It means the user has no authorization at all for the checked object in their user buffer. A return code of 4 means the user has authorizations for the object but none of them allow the specific values that were checked.

How Rinexis handles this

Sodly matches the transactions and authorization values in users' and roles' access against your ruleset, so a conflict is reported only when the underlying objects and activities support it. Conflicts are rated Critical to Low, grouped by process area, and show real transaction-usage counts.

Our authorization design service builds roles with deliberate object values and org levels, and Tcodex flags custom wrapper transactions whose S_TCODE value hides the standard transaction they run.

See your own SAP access risk, not a textbook example

Talk to an SAP security specialist about your roles, ruleset and audit timeline, or explore the platform modules that analyse and fix access risk.