‎2007 Jun 19 10:31 AM
Hi All,
I have a problem in call screen and leave sreen in my report program.
I have a selection screen '110' for input values and another screen which i have created in se51 for report output. now i wanna go back output sreen to selection screen without overlapping any screen. I have tried leave screen, call screen, set screen and return to screen on UCOMM Back . but its not working. call screen and set screen gives error because my input screen is selection screen. plz give me any solution.
Thanks & Regards
Jitendra
‎2007 Jun 19 10:34 AM
have you created the screen in SE51 for the same program. if not then use a call screen statement in the report program for that screen and call this report program using the SUBMIT statement from your program
try using LEAVE TO LIST PROCESSING to come back
Message was edited by:
Priyank Jain
‎2007 Jun 19 10:34 AM
Hi,
If ur screen is an Standard Screen then U can use LEAVE TO LIST-PROCESSING.
Regards,
Padmam.
‎2007 Jun 19 10:34 AM
You can have your second screen in another program and do a submit report and return. This way you will get back to the calling screen. I think this should work.
‎2007 Jun 19 10:36 AM
‎2007 Jun 19 11:05 AM
thanks for reply
i have use call selection-screen 110. but its not working. Actualy when use this and click on back. screen title is being change but output screen is still there. means I have put title "Input " for selection screen and "Output" for report output screen . when i click no back button title being change "Output" to "Input " but I m not getting selection screen's input fields . report output is still here.
once I have use these codes
when 'BACK'.
Call Selection-screen 110.
and once this
when 'BACK'.
Call Selection-screen 110.
Leave screen.
both r not working.
Jitendra
‎2007 Jun 19 10:43 AM
‎2007 Jun 19 11:16 AM
Hi,
Try like this ..
My O/P screen number is 9001 & below is my code
In PF status , i have back,exit or cancel on Function Keys & i have not declared OK code
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_9001 INPUT
*&---------------------------------------------------------------------*
* Screen 9001 User Command
*----------------------------------------------------------------------*
module user_command_9001 input.
set screen 0.
leave screen.
endmodule. " USER_COMMAND_9001 INPUT
If this doesnt worrk .. try this option
*---------------------------------------------------------------------*
* MODULE PAI_100 INPUT *
*---------------------------------------------------------------------*
* ........ *
*---------------------------------------------------------------------*
MODULE pai_100 INPUT.
CASE ok_code.
WHEN 'BACK' OR 'CANC' OR 'EXIT'.
CALL METHOD custom_container1->free.
CALL METHOD cl_gui_cfw=>flush.
CLEAR ok_code.
SUBMIT zdependent_object_list. <i><b>[ Here give ur Report Program Name ]</b></i>
ENDCASE.
Reward Points if it is Useful.
Thanks,
Manjunath MS
‎2011 Jun 07 10:34 AM