Application Development and Automation 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: 
Read only

set parameter id & Get parameter id

Former Member
0 Likes
7,693

start-of-selection.

select single * from ekko client specified

where mandt = sy-mandt.

set parameter id 'ZMLL' field ekko-ebeln.

What does this Set parameter id actually do ?

In what case this is useful for the developer ?

My Understanding is this set parameter stores ekko-ebeln value

which a developer can use later point point of time in the program ..

If my understanding is correct he can even store the value like this in global work area also .

I am bit confused where this is really helpful or what is the significance of this ?

From so many days I am in doubt.

Thanks in advance.

6 REPLIES 6
Read only

Former Member
0 Likes
1,997

Hi,

this will pass the variable value to the sap memory(which is common to all the session)

u can call this value from some other session(say other program) using get parameter id.

example:

<b>report zexample.</b>

PARAMETER:INPUT(30).

SET PARAMETER ID '<b>EXAMPLE</b>' FIELD input.

submit ZEXAMPL1 VIA SELECTION-SCREEN AND RETURN.

**********************************

<b>report zexample1.</b>

DATA:VAR TYPE SY-UCOMM.

GET PARAMETER ID '<b>EXAMPLE</b>' FIELD VAR.

write:/ var.

<b>reward if helpful</b>

rgds,

bharat.

Read only

Former Member
0 Likes
1,997

hi

set parameter id 'XYZ' field ekko-ebeln.

stmt stores the value passed to this stmt in the field which contains this parameter id....

u can check this value in the repective transactions...

Message was edited by:

Premalatha G

Read only

Former Member
0 Likes
1,997

Hi Sam

it is by setting and getting the values to fields in a selection screen through parameter id's

reward points to all helpful answers

kiran.M

Read only

Former Member
0 Likes
1,997

Hi

ZMLL is the label of the SET/GET parameter, the statament SET PARAMETER and GET PARAMETER is to store/get a value in the SAP memory.

The SAP memory can be seen by every mode, so probably another side (perhaps another program) will get the number of a purchase order from the memory.

So the comand set parameter id 'ZMLL' field ekko-ebeln stores the purchase order number in SAP memory, this comand is useful only if some program does the GET PARAMETER ID 'ZMLL'.

Max

Read only

Former Member
0 Likes
1,997

The SET PARAMETER statement is generally used in the PAI event for a screen. The user will have entered some value for a field on the screen and once you determine the correctness of that value, you can use the SET PARAMETER ID statement in the PAI.

The GET PARAMETER ID statement is generally used in the PBO event. During the PBO, you are preparing the screen for display to the user. Some of the fields on the screen may need to be filled with some default values. This default value is the last correct value that has been entered for that field during the current logon to the SAP system.

regards,

srinivas

<b>*reward for useful answers*</b>

Read only

Former Member
0 Likes
1,997

Hi,

You assumption is right...It will be very helpfull in Module pool programs when we design more than one screens..

Assume u need a field value from one screen to another screen..That time we want to use this set Paramerter id in first screen and get parameter id in the screen we need tht value to be displayed

But if the parameter id is not present previously for a field means we want to define it with a variable name and using tht variable name we want to retriebve the values(variable)

REWARD IF USEFUL