Task description

Solution

Sample code, images Restrictions, R/3 Release, Sapgui version, GuiXT version
17 Structured parameters in function calls

When you call function modules (e.g. BAPIs) in an InputScript, you often need to handle structured parameters, both in imported and exported parameters. GuiXT does not support data dictionary based symbolic fields; instead you have to use  substring notation, e.g.

Set V[department]  “&V[address](530-569)”    // get department from address 

or

Set V[address](530-569)  “&V[department]“  // set department in address 

The maximum GuiXT variable length is 4000, which is enough for all existing BAPIs (GuiXT 2003 Q3 6 and upwards; in previous versions the size was restricted to 255 characters).

In order to obtain the right substring notation for a given field, there are 2 possibilities:

  • Display the structure in the data dictionary (transaction SE11), and then click on Extras->Runtime object->Display. This will display the structure with all field offsets.
  • Use a small InputScript to generate a text window containing all field offsets; you can then cut&paste them into your script:

Sap Guixt sample017.img1 Structured parameters in function calls

To get necessary scripts, please click on the links on the right hand side.

Note: As of GuiXT version 2004 Q1 2, data dictionary based symbolic fields are possible, see Tip 20 for an example.

Sap Guixt sample Structured parameters in function calls GuiXT Script 

Sap Guixt sample Structured parameters in function calls InputScript 

 Last update: September 15, 2003

GuiXT version: 
2003 Q3 6 and upwards

InputAssistant

Structured parameters in function calls