Show TOC

Background documentationSPA/GPA Parameters as Default Values Locate this document in the navigation structure

 

The SPA/GPA Parameter Technique is a general procedure for filling the initial screen when a program is called. To use this technique for parameters on selection screens, you must link the parameter to an SPA/GPA parameter from the SAP memory as follows:

PARAMETERS p ...... MEMORY ID pid......

If you use this addition, the current value of SPA/GPA parameter pid from the global user-related SAP memory is assigned to parameter p as a default value. Description pid can contain a maximum of twenty characters and must not be enclosed in quotation marks.

Syntax Syntax

  1. REPORT demo_sel_screen_parameters_spa .
  2. PARAMETERS test(16) TYPE c MEMORY ID rid.
End of the code.

The selection screen looks as follows:

This graphic is explained in the accompanying text.

Parameter test is linked to SPA/GPA parameter rid which is used in the SAP System to store the name of the program that was processed last. SPA/GPA parameter rid, for example, is also linked to the input fields for the program name on the screens of transactions SE38 and SA38.