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

Refresh the selection screen

Former Member
0 Likes
2,906

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,715

You can try freeing parameter id's if they exist.

Read only

0 Likes
1,715

Hi Lamont,

Can you tell me how to free the memory of paramter id.

Thanks,

Keerthi.

Read only

0 Likes
1,715

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.

Read only

0 Likes
1,715

Hi,

Freeing the parameter id is not working either..

Any ideas how to refresh a selction field?

Thanks,

Keerthi.

Read only

Former Member
0 Likes
1,715

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.

Read only

Former Member
0 Likes
1,715

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

Read only

Former Member
0 Likes
1,715

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.

Read only

0 Likes
1,715

Hi Amit,

But this is LDB selction screen . I need to have the values in the selct option in start of selection.

Thanks,

Keerthi.

Read only

Former Member
0 Likes
1,715

hi ,

try this.

AT USER-COMMAND.

case sy-ucomm.

when 'BACK'.

clear : parameter1, parameter2.

SET SCREEN 0.

endcase.

Regards

Sandeep REddy