‎2013 Oct 31 7:34 AM
Here is the description of problem:
I have created a report (Executable program) which in turn
after giving selection screen parameters call a second screen
which have custom container on it.
To call custom container i have used statement:
SET Screen 100.
Here is the code of screen with container.
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
module check_dock_initial.
MODULE set_table_display.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
MODULE exit_command_0100 AT EXIT-COMMAND."back Fcode fires
the thing is when ALV is Displayed and user Press Back Button(F3),
in order to return to selection screen,
The selection Parameters which he have filled is not there.
Please Guide me to Code , When user press back button,
Selection Screen should get displayed filled with earlier parameters
when user executed the report.
The code Which i have written:
MODULE EXIT_COMMAND_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK' .
LEAVE to TRANSACTION 'ZCO11'."i didn't found any other statment to resume to selection Screen
when 'CANCEL'.
LEAVE PROGRAM.
* WHEN OTHERS.
ENDCASE.
ENDMODULE.
‎2013 Oct 31 7:37 AM
‎2013 Oct 31 7:37 AM
‎2013 Oct 31 7:56 AM
Just use LEAVE TO SCREEN 0 as suggested by Frédéric Girod
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
‎2013 Oct 31 7:38 AM
Hi-
Try this code it should work:
WHEN 'BACK'.
*--to retrieve selection screen details
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = sy-repid
* IMPORTING
* SP =
TABLES
selection_table = i_sel_table[]
* SELECTION_TABLE_255 =
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.
IF sy-subrc = 0.
*--call report with abaove selection screen parameters
SUBMIT <your report name> WITH SELECTION-TABLE i_sel_table
VIA SELECTION-SCREEN.
ENDIF.
-Venkat
‎2013 Oct 31 7:45 AM
‎2013 Oct 31 8:03 AM
‎2013 Oct 31 8:06 AM
Hi,
Try like this,
if sy-ucomm = 'BACK'.
leave to screen 0.
endif.
Regards,
Riju Thomas.
‎2013 Oct 31 8:38 AM
Hi,
LEAVE TO SCREEN 0. try this one
OR
CALL TRANSACTION 'ZCO11'.
‎2013 Oct 31 8:52 AM
hi all,
As most of you are saying:
LEAVE TO SCREEN 0. " then this is leaving me on sap session manager.(start of sap)
‎2013 Oct 31 9:00 AM
‎2013 Oct 31 9:06 AM
Thanks all, Problem Solved.
The Below Statement Won.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
‎2013 Oct 31 9:08 AM