‎2007 Mar 20 8:18 AM
Hi i hav a selection screen after exexuting it is displaying alv o/p in pf status i defind back button when ever user presses back button i want to back to selection screen if i write leave program it is coming to program
‎2007 Mar 20 8:19 AM
‎2007 Mar 20 8:25 AM
‎2007 Mar 20 8:28 AM
‎2007 Mar 20 1:11 PM
‎2007 Mar 20 1:16 PM
‎2007 Mar 20 1:18 PM
‎2007 Mar 20 1:40 PM
it is working after coming to selection screen if i press back button it is going back to o/p of alv
‎2007 Mar 20 1:44 PM
‎2007 Mar 20 1:47 PM
‎2007 Mar 20 1:24 PM
Hi,
This may not be a good soluation, but you can try.
start-of-selection.
perform f_get_selections_values.
when back button pressed
call method g_custom_container->free.
call method cl_gui_cfw=>flush.
submit yc0012 with selection-table i_seltab via selection-screen.
*********** FORM F_GET_SELECTIONS_VALUES
form f_get_selections_values.
v_program = sy-repid.
call function 'RS_REFRESH_FROM_SELECTOPTIONS'
exporting
curr_report = v_program
tables
selection_table = i_seltab
exceptions
not_found = 1
no_report = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
aRs
‎2007 Mar 20 1:45 PM
‎2007 Mar 20 1:54 PM
Trry this:
declare-
data: g_alv type ref to cl_gui_alv_grid
case ok_code.
when 'BACK'.
call method g_alv->check_changed_data
importing
e_valid = e_valid.
leave to screen 0.
Message was edited by:
Shweta Verma
‎2007 Mar 21 12:45 PM
still i am not getting any one help me and it is alv with oops.
‎2007 Jun 22 1:33 PM
change the function code of the BACK button to BAC and
case r_ucomm.
when 'BAC'.
set to screen 0.
‎2007 Jun 22 1:49 PM
HI.
First u need to find fetch code(function code) of BACK button from your your program. and write code as follows. assume your fetch code as BACK
CASE OK_CODE.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
i hope it will work.
reward if its help full.
Regards.
Jay