Entering content frameProcedure documentation Using SAPGUI (Record) to Record Transactions Locate the document in its SAP Library structure

Use

Use SAPGUI (Record) to record transactions that contain controls.

During the course of recording, one or more SAPGUI commands are created in which changes to the state of the screen elements are recorded. You can choose to have these created automatically at each token change, screen change, transaction change, or session. You can also at any point during the recording choose Enter SAPGUI Command to generate a SAPGUI command manually.

Prerequisites

SAPGUI 6.20 must be installed on the same machine that the test script is running on.

Scripting support has been installed and is active.

Procedure

  1. In the test script editor, choose Pattern.
  2. The Insert Statement dialog box appears.

  3. From the Command dropdown list, choose SAPGUI(Record).
  4. A system-generated name appears in the Interface field. If a maintenance system is specified on the Attributes tab, a system-generated name appears in the Target System field.

  5. Accept or edit the system-generated names.
  6. Choose This graphic is explained in the accompanying text.
  7. The Record SAP GUI Command dialog box appears. In this box you can set the recording mode. You can change the mode while recording.

  8. Select one of the following recording modes:
    1. Manual. A SAPGUI command is only generated when Enter SAPGUI Command is chosen.
    2. At each dialog step. Every communication between front end and backend creates a separate SAPGUI command.
    3. At each screen change. Each screen change creates a separate SAPGUI command.
    4. For each transaction. Each transaction change creates a separate SAPGUI command.
    5. For each session. The data for each session is recorded in a separate SAPGUI command.
  9. Choose This graphic is explained in the accompanying text Start Recording.
  10. A new session is automatically started. A new Record SAP GUI Command dialog box appears in the first session.

  11. Choose Yes.
  12. The Recording Running... dialog box appears. It will remain available during the recording. You can change the settings at any time during the recording.

    1. You can change the recording mode and confirm the change by choosing Change Recording Mode.
    2. You can generate a new SAPGUI command by choosing Enter SAPGUI Command.
    3. You can record the initial state of selected types of screen elements. This can generate a lot of data, so be selective about what and when you record.
  13. In the second session, start the transaction.
  14. Work through the transaction as normal.
  15. In the first session, choose End Recording.

The SAPGUI commands and their corresponding command interfaces are entered in the test script.

 

Leaving content frame