Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Back to Selection Screen

Former Member
0 Likes
959

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

8 REPLIES 8
Read only

Former Member
0 Likes
903

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

Read only

Former Member
0 Likes
903

Hi,

If ur screen is an Standard Screen then U can use LEAVE TO LIST-PROCESSING.

Regards,

Padmam.

Read only

Former Member
0 Likes
903

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.

Read only

Former Member
0 Likes
903

use this..

<b>call selection-screen 110.</b>

Read only

0 Likes
903

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

Read only

Former Member
0 Likes
903

u can try set screen 110 followed by leave screen.

Read only

Former Member
0 Likes
903

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

Read only

Former Member
0 Likes
903

This message was moderated.