03-19-2009 11:14 AM
Hi friends,
Let
PARAMETERS : name(10) .
write : name.
Now if in the selection screen , we give , say qwerty and execute it , we get qwerty in the screen .
here if the back button is clicked the initial screen selection screen appears with the value qwerty filled in it.What is the reason for this ? How to make the parameter space empty in selection screen when the back button is clicked .
Regards,
K.Sibi
03-19-2009 11:20 AM
write like this
PARAMETERS : name(10) .
start-of-selection.
write : name.
the following write was called when the event at selection screen was triggered. this will work fine.
03-19-2009 11:20 AM
write like this
PARAMETERS : name(10) .
start-of-selection.
write : name.
the following write was called when the event at selection screen was triggered. this will work fine.
03-19-2009 11:26 AM
Hi,
This code is not satisfying the requirement and its working the same way as the posted code
Regards,
K.Sibi
03-19-2009 11:21 AM
Hi Sibi,
Use at selection-screen event.
Under the event write coding
AT SELECTION-SCREEN.
CLEAR NAME.
Hope it will be useful.
Regards,
Lakshman.
03-19-2009 11:22 AM
Hi,
Clear the element on the event at selection-screen output.
parameters name(10).
at selection-screen output.
clear name.
start-of-selection.
write name.
Regards,
Sachin
03-19-2009 11:23 AM
Hi,
Try like this.
PARAMETERS : name(10) .
AT SELECTION-SCREEN OUTPUT.
CLEAR name.
START-OF-SELECTION.
write : name.
Thaks,
Vinod.
03-19-2009 11:29 AM
Hello sachin and vinod,
Thanks for your replies.
It is working fine, as long as i give input in selection selection screen and press F8.
but if i press enter , the values get deleted on the screen itself.
Hope to get it cleared.
Regards,
K.Sibi
Edited by: sibi k kanagaraj on Mar 19, 2009 12:48 PM
03-19-2009 11:55 AM
Hi,
Whenever 'Enter' is pressed in selection-screen, 'At selection-screen output' event will execute.
To add:
'At selection-screen output' event is executed at PBO of the selection screen every time the user presses ENTER - in contrast to INITIALIZATION.
Therefore, this event is not suitable for setting selection screen default values.
Edited by: Sap Fan on Mar 19, 2009 1:00 PM
03-19-2009 11:55 AM
Hello,
Clear the value of parameter, when "BACK" pressed.
Like if sy-ucomm EQ BACK, Clear field.
write this code in PROCESS AFTER INPUT.
Edited by: Siddhesh Pathak on Mar 19, 2009 12:56 PM
03-19-2009 12:55 PM
AT USER-COMMAND.
CASE Sy-ucomm.
WHEN 'BACK'.
Clear name.
ENDCASE.