Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

req Help Select-options:

Former Member
0 Kudos

Hi,

I wanted to know

about

Select-options: sel for pc memory id xxx.

what will happen if I use this statement in my program.

urgent

2 REPLIES 2

Former Member
0 Kudos

... MEMORY ID pid

Effect

This addition links the first input field to a SET/GET parameter in the SAP Memory. You must specify the name of the SET/GET parameter directly and it can only contain a maximum of 20 characters. The addition has the same effect on the first input field as when it is used with a PARAMETERS statement for an input field for a parameter.

Regards,

Santosh

Former Member
0 Kudos

Hi,

If you memory id 'XYZ', it will store the data into that ID,

Whenever you need to validate that in other programs you can use with

this ID.

... MEMORY ID pid

Effect

On the selection screen, the SPA/GPA ID pid is assigned to the left range limit of the selection criterion.

Note

You must specify the memory ID without quotation marks. It can be up to 3 characters long.

SPA/GPA:

SET PARAMETER ID pid FIELD f.

Effect

Writes the contents of the field f to the global user-specific SAP memory under the ID pid. SAP-Memory geschrieben. Wenn unter diesem Any existing value under the same ID is overwritten.

Parameter IDs can be up to 20 characters long. They cannot consist entirely of spaces. The SAP system description contains an overview of parameter IDs. You can also produce a list using the ABAP Workbench.

GET PARAMETER ID pid FIELD f.

Effect

Transfers the value stored under the key pid from the global user-related SAP memory to the field f.

A parameter ID can be up to 20 characters long. For an overview of the keys (parameters) used, refer to the SAP system description or the appropriate function in the ABAP Workbench.

The return code is set as follows:

SY-SUBRC = 0: A value was read from SAP memory. SY-SUBRC = 4: No value was found in SAP memory under the specified key.

Notes

SY-SUBRC is only set as of Release 4.0! For Releases 3.x, you can test whether GET PARAMETER has read something by first setting the result variable f to an invalid value and then reading the variable (see also Note 63161).

The global user-related SAP memory is available to each user for the entire duration of a terminal session. For this reason, set values are retained when you leave a program.

You should not use SAP memory for temporary storage because a user's parallel sessions use the same global memory.

rewards,

Madhavi