SAP GUI Protocol

The SAP GUI Vuser script typically contains several SAP transactions which make up a business process. A business process consists of functions that emulate user actions. Open the Step Navigator to see each user action as a Vuser script step.

The following example shows a typical recording of a SAP GUI client. The first section, vuser_init, contains the opening of a connection and a logon.

Note: The Open Connection step uses one of the connection names in the SAP Logon Descriptions list. If the specified connection name is not in the list, the Vuser looks for a server with that name.

 

In the following section, the functions emulate typical user operations such as menu selection and the setting of a check box.

The final section, vuser_end, illustrates the logoff procedure.

When recording a multi- protocol script for both SAP GUI and Web, VuGen generates steps for both protocols. In the Script view, you can view both sapgui and web functions.

The following example illustrates a multi-protocol recording in which the SAP GUI client opens a Web control. Note the switch from sapgui to web functions.

Example: 
sapgui_tree_double_click_item("Use as general WWW browser, REPTITLE", 
    "shellcont/shell", 
    "000732", 
    "REPTITLE", 
    BEGIN_OPTIONAL, 
        "AdditionalInfo=sapgui1020", 
    END_OPTIONAL);
...
sapgui_set_text("", 
    "http:\\\\yahoo.com", 
    "usr/txtEDURL", 
    BEGIN_OPTIONAL, 
        "AdditionalInfo=sapgui1021", 
    END_OPTIONAL);
...
web_add_cookie("B=7pt5cisv1p3m2=;b=2; DOMAIN=www.yahoo.com");
web_url("yahoo.com",
        "URL=http://yahoo.com/",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=",
        "Snapshot=t1.inf",
        "Mode=HTML",
        EXTRARES,
"URL=http://srd.yahoo.com/hpt1/ni=17/ct=lan/sss=1043752588/t1=1043752575385/d1=1251
          /d2=1312/d3=1642/d4=4757/0.4097009487287739/*1", 
          "Referer=http://www.yahoo.com/", ENDITEM,
        LAST);
Back to top