‎2005 Aug 24 7:12 AM
Hello all,
How to clear the fields content from a selection-screen when the user returns from report to sel.screen?
I try in PBO for selection screen to clear all the fields, works fine but with one exception, when it is pressed Enter,
all the fields contents are empty.
Thank you
Bogdan
‎2005 Aug 24 7:47 AM
Hi Bogdan,
i think you can achieve this with a flag and export/import to SAP-memory:
...
AT SELECTION-SCREEN OUTPUT.
IMPORT back FROM MEMORY ID 'back'.
IF back = 'X'.
*clear/refresh your sel-opt/param.
refresh gjahr.
CLEAR : gjahr , amount.
CLEAR back.
FREE MEMORY ID 'back'.
ENDIF.
START-OF-SELECTION.
...
*end of your program
back = 'X'.
EXPORT back TO MEMORY ID 'back'.Andreas
‎2005 Aug 24 7:16 AM
Hope u will return from report to selection screen using leave screen or set screen .
if it so b4 this u clear those selection fields
regs
gv
‎2005 Aug 24 7:20 AM
<b>at selection-screen output</b> clear the fields with clear statement.
Regards
Raja
‎2005 Aug 24 7:47 AM
Hi Bogdan,
i think you can achieve this with a flag and export/import to SAP-memory:
...
AT SELECTION-SCREEN OUTPUT.
IMPORT back FROM MEMORY ID 'back'.
IF back = 'X'.
*clear/refresh your sel-opt/param.
refresh gjahr.
CLEAR : gjahr , amount.
CLEAR back.
FREE MEMORY ID 'back'.
ENDIF.
START-OF-SELECTION.
...
*end of your program
back = 'X'.
EXPORT back TO MEMORY ID 'back'.Andreas
‎2005 Aug 24 8:08 AM
sorry i didnt get the question fully, i think the only way you can achieve is thru what Andreas has given
Regards
Raja
‎2005 Aug 24 8:12 AM
Hi,
It's better to clear your fields after INITIALIZATION event. It's started only once.
Svetlin