GuiXT in Transaction Variants and Screen Variants
Use the GuiXT function to edit a GuiXT script from transaction variant maintenance. The script is then stored together with its corresponding screen variant in the database. The GuiXT process downloads the script to the frontend if no current version is already on the frontend. GuiXT scripts are transported along with their corresponding screen variants.
Prerequisites
GuiXT requires user SAPCPIC with password ADMIN in client 000. In the GuiXT program, these defaults can be customized to meet the user's requirements by choosing Edit → Profile.
When GuiXT scripts are used in screen variants, or the Business Document Service is used, the RFC user in client 000 should have the following authorizations:
|
Authorization Object: |
Field Values: |
|
S_RFC: Authorization check during RFC access |
ACTVT: 16 RFC_NAME RSIMG, SHD0 RFC_TYPE FUGR |
|
S_BDS_DS: Authorization for Business Document Service |
ACTVT 03,30 CLASSNAME TA_VARIANTS_IMAGES CLASSTYPE OT |
Procedure
In this example, you create a transaction or screen variant for the transaction described in the section Adjusting Transactions Using GuiXT. You assign a GuiXT script that exists for the second screen to the corresponding screen variant. The image contained in the GuiXT script is stored using the Business Document Service.
Proceed as follows:
- Create a transaction variant for the transaction. On the dialog box of the second screen, choose the GuiXT pushbutton.

- The editor appears. Choose the Load local file pushbutton and enter the name of the GuiXT script.
- Choose the Image files pushbutton to store the image shown in the transaction using the Business Document Service.
To use an image for a GuiXT script, enter TA_VARIANTS_IMAGES in the field Class name.
In the field Object Key, enter a name of your choice (for example, DEMO). In this case, the object key is a description of the directory in which you store your image files.
If this directory contains image files already, choose Refresh display to update the data. The image files stored in the directory specified are then displayed in the lower part of the screen.
- Choose Import to load images from your PC for the Business Document Service. The system displays a dialog box. Choose the desired file.
The name of the image and other attributes are displayed in the lower part of the screen.
The Lifetime is specified in days.
- Double-click the desired file name. The system displays a dialog box with the description of the image file. In this case:
SAPIM:TA_VARIANTS_IMAGES//DEMO//Flight.jpg
When you confirm the dialog box, the corresponding Image statement is placed at the beginning of the GuiXT script.
IMAGE (..,..) "SAPIM:TA_VARIANTS_IMAGES//DEMO//Flight.jpg"