Skip to Content
0
Former Member
May 07, 2010 at 02:56 PM

Changing screen from ALV report to Screen and back

16 Views

I am having difficulting changing screens in my application.

I have a selection screen that generates an ALV report. The user selects a record and clicks on the Submit button which takes them to Screen 0100 that generates another ALV report. Now in Screen 0100, when the back button is clicked, the user should be taken back to the ALV report. They should now be able to select another record and for that row, data should be populated for Screen 0100.

I am generating the first ALV report using CL_SALV_TABLE and the second one using the same class but with Container.

How should I code below

module user_command_0100 input.

  case ok_code.
    when '&F03' or '&F15' or '&F12'.
      set screen 0.
      leave screen.
  endcase.

endmodule.                 " USER_COMMAND_0100  INPUT