‎2008 Jan 31 11:37 AM
Hi,
What is the use of set parameter id?How can it be used in uploading the data from a screen to table?
‎2008 Jan 31 11:39 AM
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
‎2008 Jan 31 11:40 AM
‎2008 Jan 31 11:40 AM
Hi,
check the belwo link
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm
Regards,
nagaraj
‎2008 Jan 31 11:41 AM
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
‎2008 Jan 31 11:43 AM
hi Radha...
set parameter id is to assign values to some variables in SAP memory..
thanks,
SAYAK...
‎2008 Jan 31 11:46 AM
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.
‎2008 Jan 31 11:46 AM
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.