Call Transaction

Estimated reading: 4 minutes

The Call Transaction activity takes an active SAP GUI session directly to a screen or program by entering a transaction code (T-Code) in the SAP command box. Depending on your Prefix setting, it opens the transaction in your current session (Same Session), starts a new session (New Session), or sends the code as typed (None), then waits for the screen to load.

Note: In SAP GUI automation, Call Transaction opens a T-Code in the user interface; it does not run an ABAP CALL TRANSACTION statement in the background. You must place this activity inside an SAP Logon scope so it can use that active SAP session. If the T-Code is wrong or you do not have access, SAP shows a message on the screen or status bar, and your workflow either stops or keeps going based on your error settings.

Why It Is Useful

a. Fewer points of failure: Jumping straight to a screen via a T-Code avoids extra UI elements that can shift or slow down your workflow.

v. Easier to maintain: One T-Code value is simpler to check, update, or reuse than a sequence of screen interactions.

What Is a Transaction Code (T-Code)?

A transaction code (T-Code) is a short shortcut code (usually letters, numbers, or both) in SAP that opens a specific screen, program, or task directly. Instead of clicking through menu folders, you enter the T-Code in the SAP command box—or pass it to an activity like Call Transaction—to go straight to that screen.

Where to Find a Transaction Code (T-Code)

1. SAP Easy Access Menu: Turn on technical names (go to Extras > Settings in SAP Easy Access) to see T-Codes next to menu entries.

2. Favorites & User Menu: Check saved items under Favorites, where T-Codes often appear next to their descriptions.

3. SAP GUI Command Field: Enter a known T-Code directly in the command box (or use /n followed by a T-Code to switch transactions from another screen), and check SAP’s screen or status bar if the code is invalid.

4. Transaction SE93: Open SE93 in SAP to look up transaction details, check underlying programs or screens, or search for existing T-Codes.

5. SAP Tables (TSTC and TSTCT): If you have table-viewing access (such as SE16 or SE16N), check TSTC for transaction codes and TSTCT for their descriptions.

Activity Canvas

The activity canvas allows you to configure the SAP transaction execution.

Prefix: Specifies how the transaction should be executed within the SAP session.
Same Session: Executes the transaction in the currently active SAP session.
New Session: Opens and executes the transaction in a new SAP session.
None: Executes the transaction without applying any SAP command prefix. The transaction code is executed exactly as provided.

Transaction Code: Specifies the SAP transaction code to execute, such as VA01, VA02, or any valid SAP transaction available to the user.

Properties

Execution

Delay After: Specifies the delay, in milliseconds, after the transaction is executed (default: 300).

Delay Before: Specifies the delay, in milliseconds, before the transaction execution begins (default: 200).

Wait Time: Specifies the maximum time, in milliseconds, to wait for the SAP screen associated with the transaction to load before timing out (default: 30000).

Input

Prefix: Specifies whether the transaction runs in the current SAP session or a new SAP session.

Transaction Code: Specifies the SAP transaction code to execute.

MISC

DisplayName: Displays the name of the activity.

SkipOnError: Specifies whether workflow execution continues when the activity encounters an error.
True: Continues workflow execution when an error occurs.
False: Stops workflow execution when an error occurs.
None: Uses the default value, False.

Version: Displays the current version of the activity.

Output

Result: Returns a Boolean value indicating the activity’s execution status.
True: The transaction was executed successfully.
False: The transaction execution failed.

Example

A workflow needs to open the Create Sales Order screen in SAP:

1. Place the Call Transaction activity inside an SAP Logon scope.
2. Set Prefix to SameSession.
3. Enter VA01 in the Transaction Code field.
4. Execute the workflow.

The activity runs transaction VA01 and navigates the active SAP session directly to the Create Sales Order screen.

Share this Doc

Call Transaction

Or copy link

CONTENTS
Robility Chatbot
Robility Assistant
Online