‎2008 Jan 09 11:30 AM
Hi
I have a req of clearing the sel screen contents after the "START OF SELECTION" event.
The req is like this: if no data is selected for the entered values, all the values should be cleared.
Any pointers will helpful.
Regards
Ravish
‎2008 Jan 09 11:37 AM
Hi,
You can set a flag inside start-of-selection if your select has no value. With this flag you can clear your Selection screen parameters in 'at selection-screen output' event:
example:
parameters: p_some type c.
select-options: s_dat type sy-datum.
data: v_flg type c.
at selection-screen output.
if v_flg = 'X'.
clear: p_some, s_dat,v_flg.
refresh: s_dat.
endif.
start-of-selection.
assuming your select yields nothing.
if sy-subrc ne 0.
v_flg = 'X'.
endif.
Regards,
S. Chandra Mouli.
‎2008 Jan 09 11:31 AM
Hi,
Start-of-selection.
write select statement.
check for sy-subrc, if it is equal to 4. Do as below :
refresh all selection parameters.
Thanks,
Sriram Ponna.
‎2008 Jan 09 11:34 AM
Hi Ravish,
Use event AT SELECTION SCREEN OUTPUT.
In this event clear all the screen parameters or select options.
Regards
Sourabh Verma
‎2008 Jan 09 11:34 AM
hi Ravish,
after start of selection write the program as
if sy-subrc=4,
refresh select options.
and also instead of at selection screen
write at selection screen output
Reward points if useful
thanks
swaroop
Edited by: Jyothi Swaroop Kaza on Jan 9, 2008 12:34 PM
‎2008 Jan 09 11:35 AM
Hi,
You can use CLEAR or REFRESH statements for that.
ex. CLEAR so_field1.
Regards,
Renjith Michael.
‎2008 Jan 09 11:35 AM
‎2008 Jan 09 11:37 AM
Hi,
You can set a flag inside start-of-selection if your select has no value. With this flag you can clear your Selection screen parameters in 'at selection-screen output' event:
example:
parameters: p_some type c.
select-options: s_dat type sy-datum.
data: v_flg type c.
at selection-screen output.
if v_flg = 'X'.
clear: p_some, s_dat,v_flg.
refresh: s_dat.
endif.
start-of-selection.
assuming your select yields nothing.
if sy-subrc ne 0.
v_flg = 'X'.
endif.
Regards,
S. Chandra Mouli.