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: 

set parameter id

Former Member
0 Kudos

Hi,

What is the use of set parameter id?How can it be used in uploading the data from a screen to table?

7 REPLIES 7

former_member181962
Active Contributor
0 Kudos

The SET PARAMETER ID will set the value of the parameter that we specify in the SAP Memory.

This value is accesible across transactions.

For example, if you create a sales order in VA01 transaction, you can see the new sales order number already present, if you open the VA03 transaction.

This is because the VA01 transaction uses the SET Parameter statement in its main program.

Regards,

Ravi Kanth Talagan

Former Member
0 Kudos

set parameter id captures recent value

former_member404244
Active Contributor

Former Member
0 Kudos

Hi,

Here is the sample code.

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

*----


at line-selection.

*----


get cursor field c_field.

if c_field = 'SUM_IT-BELNR'.

set parameter id 'GJR' field sum_it-gjahr.

set parameter id 'BUK' field sum_it-bukrs.

set parameter id 'BLN' field sum_it-belnr.

call transaction 'FB03' and skip first screen.

endif.

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

Regards,

Satish

RoySayak
Active Participant
0 Kudos

hi Radha...

set parameter id is to assign values to some variables in SAP memory..

thanks,

SAYAK...

Former Member
0 Kudos

Hi,

SET PARAMETER would enable you to save the value of a field in SAP memory. This enables the usage of the field alongside its value throughout the program as a global field.

If you want to SET PARAMETER from the screen,

Go to the screen layout -> double click on the input field you want to set.

The Screen Painter Attributes window will pop up, go its Attributes section down below.

Enter the PARAMETER ID and check the SET PARAMETER option below.

Reward if helpful.

Former Member
0 Kudos

Hi,

It is used to access SAP memory..

do like this in some Zpgm (report)

data var(5) value 'Hello'.

set parameter id 'ZTEST' var.

execute this prog.....

in another Zprogram

data var(5).

get parameter id 'ZTEST' var.

write var.

execute it....

ur o/p ll be Hello bcoz in first pgm u passed it to SAP memory and in second one u retrieved it from SAP memory.....

Dis is the reason why ull get the previous run value on I/O fld of STD SAP transactions.......

NOTE : Once u log out this memory is cleared.

Cheers,

Will.