‎2008 Jun 24 7:13 AM
Hi,
I am getting interactive report. Customer wants when user clicks back button in the basic list selection screen fields should be empty.
where i have to write the code for this?
regards,
kumar.
‎2008 Jun 24 7:21 AM
Clear and refresh the values in INITIALIZATION event.
Its also the last event that gets triggered.
‎2008 Jun 24 7:21 AM
Clear and refresh the values in INITIALIZATION event.
Its also the last event that gets triggered.
‎2008 Jun 24 7:23 AM
‎2008 Jun 24 7:23 AM
Hi,
Use Submit 'ZReportprogname' via selection screen or clear
selectoption or parameter fields by using Clear stmt.
Do it in the End-of-selection event are in start-of-selection itself
after write stmt.
‎2008 Jun 24 7:23 AM
hi Vijay,
Use SUBMIT stmt when the user presses the Back Buttn.
Ex:
case sy-ucomm.
When '<FunctionCode for BACK Button>'
SUBMIT <Report Name>.
endcase.
Reward points if useful
Chandra
‎2008 Jun 24 7:32 AM
Hi,
AT SELECTION-SCREEN OUTPUT event helps you...
There is a small thing you have to look into it... you have to maintain certain actions with which you should not clear the contents on the selection screen. like pressing enter and other key on selection screen.
so trap the SY-UCOMM ie function code and then use the
LOOP AT SCREEN.
MODIFY SCREEN.
ENDLOOP.or else you can directly clear that parameter if it satisfies certain condition of fucntion code.
hope this would help you
Regards
Narin Nandivada
‎2008 Jun 24 7:41 AM
Hi Vijay,
here is is sample program for you.
REPORT Z_sdn.
TABLES:
sflight.
SELECT-OPTIONS:
s_entry FOR sflight-carrid.
DATA:
t_tab LIKE
STANDARD TABLE
OF sflight
WITH HEADER LINE.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
REFRESH s_entry.
MODIFY SCREEN.
ENDLOOP.
START-OF-SELECTION.
SELECT *
FROM sflight
INTO TABLE t_tab.
LOOP AT t_tab.
WRITE:
/ t_tab-carrid.
ENDLOOP.
SET PF-STATUS 'DISPLAY'.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'BACK'.
SUBMIT z_sdn VIA SELECTION-SCREEN.
ENDCASE.
in the pf-status 'DISPAY' do only the followings:
1. in Function Key , just name BACK in corresponding location
2. Save and active.
this is the minium requirment for your problem to solve.Plz don't focus on TABLES ,DATA , SELECT or LOOP AT ...statements. I have given them to show the effect only.
You may use this for any selection screen.
Reward if find helpful.
all the best.
Anirban Bhattacharjee
‎2008 Jun 24 7:55 AM
Hi,
use this code it will help you out....
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
REFRESH S_VBELN. "Select-options
MODIFY SCREEN.
ENDLOOP.
thanks,
‎2008 Jun 24 8:20 AM
This needs to be done in INITIALIZATION.
Refresh all your screen fields in INITIALIZATION EVENT.
‎2011 Apr 04 12:36 PM