‎2008 Jun 12 5:24 PM
Hi all,
I need to refresh the selection screen while coming back to selection screen after execution.
Refresh in AT SELECTION SCREEN OUTPUT works but it doesnot allow us to save a variant. <REMOVED BY MODERATOR>
Thanks,
Keerthi.
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 2:01 PM
‎2008 Jun 12 5:27 PM
‎2008 Jun 12 5:35 PM
Hi Lamont,
Can you tell me how to free the memory of paramter id.
Thanks,
Keerthi.
‎2008 Jun 12 6:51 PM
Do an F1 on the select-option fields from the desired selection screen. You should see a field called Parameter ID. Copy the three letters. In your program, use the syntax SET PARAMETER ID pid FIELD space. The pid in the code is the three letters from the parameter id you copied, such as 'IAF'. I hope this helps.
‎2008 Jun 13 2:04 PM
Hi,
Freeing the parameter id is not working either..
Any ideas how to refresh a selction field?
Thanks,
Keerthi.
‎2008 Jun 12 5:31 PM
Hi,
There will be another way to achieve this but here is my first thought.
Modify the fcode of back button so that it will be captured in user command and then you can you call transaction.
eg.
At user-command.
Case fcode.
WHEN 'BACK'.
Call Transaction'Zxxxx'.
endcase.
I hope this helps, lemme know otherwise.
thanx,
ags.
‎2008 Jun 12 6:57 PM
Hi Keerthi,
Write this below code, i think it will work
at selection screen event
if sy-ucomm = 'backu2032. then you clear your selection screen fields and refresh your selection screen fields.
<REMOVED BY MODERATOR>
Thanks
Vikranth
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 2:01 PM
‎2008 Jun 13 2:16 PM
Keerthi,
report zamit_0001 .
data: xmara type mara.
data: xmatnr type mara-matnr.
parameters: p_matnr type mara-matnr.
at selection-screen.
if sy-ucomm = 'ONLI'. " Only when execute is pressed
xmatnr = p_matnr. " Hang on to this for select statement
clear p_matnr. " Clear the screen parameter
endif.
start-of-selection.
select single * from mara into xmara
where matnr = xmatnr.
write:/ xmara-matnr, xmara-matkl.
[/code]
Amit.
‎2008 Jun 13 2:20 PM
Hi Amit,
But this is LDB selction screen . I need to have the values in the selct option in start of selection.
Thanks,
Keerthi.
‎2008 Jun 13 2:17 PM
hi ,
try this.
AT USER-COMMAND.
case sy-ucomm.
when 'BACK'.
clear : parameter1, parameter2.
SET SCREEN 0.
endcase.
Regards
Sandeep REddy