Start of Content Area

Procedure documentation Starting SAP GUI  Locate the document in its SAP Library structure

Use

When calling a function module in an SAP system it might be required to start an SAP GUI.

Note

This is required in particular for some (older) BAPIs which return data in the form of a screen while they are executed.

Prerequisites

      To call the SAP GUI from your JCo application your SAP backend system must fulfill certain prerequisites. For more detailed information, see SAP Note 1258724.

      You have installed the Windows SAP GUI or Java GUI (Unix) on your system.

Procedure

Proceed as follows to start SAP GUI from your client program:

 

Microsoft Windows:

Set the Property USE_SAPGUI to 1 (dark) or 2 (light).

 

UNIX:

Set the environment variable using

 

setenv SAPGUI <path to SAPGUI startscript> (tcsh) or

 

set SAPGUI=<path to SAPGUI startscript> (bash)

 

The path name looks as follows for MAC OS:

 

"/Applications/SAP Clients/SAPGUI 7.10rev7.3/SAPGUI 7.10rev7.3.app/Contents/MacOS/SAPGUI"

 

The following path would be valid for Linux and other Unix systems:

 

/opt/SAPClients/SAPGUI7.10rev7.3/bin/sapgui

 

Caution

No parameters must be entered after the script name for environment variables.

Note

Start the JCo application from the same shell to register the environment variable.

 

 

 

 

End of Content Area