2010 Mar 26 4:32 AM
Hi,
In one of my module pool in one include I have defined the parameter id and the same is called in another report as follows. But the parameter doesn't pass any values. Pls help to sort out this Issue.
SET PARAMETER ID 'ZLC' FIELD ZLCNO.
SUBMIT ZXXXX via SELECTION-SCREEN AND RETURN.
in the report ZXXXX i have called the parameter.
GET PARAMETER ID 'ZLC' FIELD ZLCN.
Here both the fields ZLCNO & ZLCN is of char(20).
Regards
SK
2010 Mar 26 4:45 AM
First
1. Create a entry for paramter in TPARA table
2. double click on the field in the module pool ( u cn find attributes) and maintain the parameter
3. In the report while creating selection input declarea like the the following
PARAMETERS zcln(20) TYPE c MEMORY ID zlc. " (ZLC is your memory id)
a®
2010 Mar 26 4:45 AM
First
1. Create a entry for paramter in TPARA table
2. double click on the field in the module pool ( u cn find attributes) and maintain the parameter
3. In the report while creating selection input declarea like the the following
PARAMETERS zcln(20) TYPE c MEMORY ID zlc. " (ZLC is your memory id)
a®
2010 Mar 26 5:14 AM
Thanks,
It works, but the parameter is not getting refresh in the second time. It is showing the same value when the report is called for the second time. Is there any way to clear the memory id/ parameter id before passing value.
Regards
SK
2010 Mar 26 5:27 AM
Hi,
Clear your FIELD value after using GET PARAMETER.
Regards.
Ankur
2010 Mar 26 5:39 AM
2010 Mar 26 5:52 AM
Hi,
Even if after giving 'free memory id 'ZLC'' the memory id is not clear. Pls help me to sort out this issue.
2010 Mar 26 5:56 AM
1). In PBO of your module pool
Give it as
free memory id 'ZLC'.
then in report after the get memory from this variable
again call the same as free memory
a®
2010 Mar 26 6:15 AM
2010 Mar 26 6:20 AM
Hi,
Clear that field and SET its parameter with cleared field again after GET PARAMETER.
Hope it works.
Regards,
Ankur.
2010 Mar 26 6:25 AM
Hi, Kumar
Please Check with the bellow code.
set PARAMETER ID 'ZLC' FIELD ''.Hope will solve out.
Thanks and Regards,
Faisal
2010 Mar 26 6:47 AM
Hi,
The problem was while calling the parameter id in the report using 'parameters' addtionally I have given 'NO-DISPLAY'. When I removed this it works fine. But I don't want to show as a selection parameter as it can changed in runtime.
Regards
SK
2010 Mar 26 6:51 AM
Then you can hide the param by passing SCREEN-ACTIVE = 0 in the LOOP AT SCREEN...ENDLOOP block.
Check in SDN for details.
2010 Mar 26 5:03 AM
Hi Dinesh,
Do this:
(The program below is writing onto SAP Memory)
data: var1(10) type C VALUE 'sample'.
SET PARAMETER ID 'Z02_VAR1' FIELD VAR1.
(The below program reads from SAP Memory)
DATA: para TYPE tpara-paramid VALUE 'Z02_VAR1'.
GET PARAMETER ID para FIELD prog.'
This works.
Regards,
Pranaam.
2010 Mar 26 6:22 AM
Hi,
You can do one thing right after GET use SET statement with Intial value. This will reset PARAMETER value again to initial.
Regards,
Sarbpreet
2010 Mar 26 7:01 AM
Then try to do
loop at screen.
screen-active
..
..
endloop.
I think this u need to do in INITIALIZATION even
a®