Skip to Content
0
Sep 28, 2012 at 09:55 AM

selection screen events , clear selection option

15 Views

Hi ,

I have to clear all input fields on selection screen after the transaction been executed. I try to do it on following way .

I set up at-selection-screen event with tag gv_run . Gv run is populated with 1 during the selection and indicates that the program has been

already executed and so when after execution flow comes again to at-selection-screen event and gv run = 1. s_bname should be refreshed and

screen displayed without values in input fields;

Problem is when the program flow comes second time at at-selection-screen event gv_run is not any more 1 it is 0. and refresh is not done .

I cannot figure where that value has been changed . In debugger i cannot find it because the program jumps straight to at-sel-screen event and

the values is already gone

Please advice

Chris

INITIALIZATION

*clear variables ( not screen fields.)

AT SELECTION-SCREEN output.

if gv_run = 1.
refresh s_bname.
gv_run = 0.
endif.



START-OF-SELECTION.
gv_run = 1.