Skip to Content
avatar image
Former Member

Output Screen Problem.

Hi Gurus,

I am Executing a report,once i got the output (which includes various screens),after my final output screen when i press BACK i am going to actual selection screen

here my problem comes,when i press EXECUTE, basically we need to get initial output screen,but here in my case my control is going to one of the output screens not the initial output screen.how to fix this issue.

Thanks & Regards,

Vijaya.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 15, 2008 at 02:46 PM

    Hi Vijaya,

    How you get back to SELECTION SCREEN?

    You should use following code;

      SET SCREEN 0.
      LEAVE SCREEN.
    

    I think you used 'CALL SELECTION-SCREEN XXXX' statement.

    Regards,

    R.Nagarajan.

    -


    We can -


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Nagaranjan,

      You havn't catch my problem,

      i am have used set screen and going back to my selection screen,

      from there when i press EXECUTE i am not getting the initial output screen.

      here the control goes to one of the screen included in my output,but not the intial output screen,

      Thanks & Regards,

      Vijaya.

  • avatar image
    Former Member
    Oct 15, 2008 at 02:42 PM

    Hi Vijaya,

    Here are you talking about a simple Interactive list display.

    When you execute it must go to your Basic list. You pls check events END-OF-SELECTION and AT LINE-SELECTION written properly.

    Happy coding.

    /Kiran

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2008 at 09:12 PM

    Hi,

    Could anybody plz help me,how to fix this issue?

    Regards,

    Vijaya.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      When you hit 'BACK' on your last screen, use leave to transaction (your transaction) instead of leaving the screens. This should reset everything. Hope that helps.

      Lamont

  • avatar image
    Former Member
    Oct 16, 2008 at 12:02 PM

    Hi Gurus,Problem was Solved.

    Solution:

    In PBO Module (just at starting)

    MODULE tab2_change_tc_attr OUTPUT.

    IF ( sy-ucomm = 'BACK' AND sy-lsind = 0 ).

    PERFORM refresh_internal_data.

    Leave to list-processing.

    call transaction 'ZBESTFIT'.(Tcode for our Report Program)

    ENDIF.

    DESCRIBE TABLE it_horder LINES tab2-lines.

    ENDMODULE. "TAB2_change_tc_attr OUTPUT

    Edited by: vijaya on Oct 16, 2008 2:07 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Kumar,

      i Expect your report has multiple screens,

      in your last screen which you have designed

      in the PBO module (at starting )

      you create module say MODULE tab2_change_tc_attr OUTPUT.

      in this module you write this logic

      IF ( sy-ucomm = 'BACK' AND sy-lsind = 0 ).

      PERFORM refresh_internal_data. "(refresh all of ur itabs)

      Leave to list-processing.

      call transaction 'ZBESTFIT'.(Tcode for our Report Program)"(U should create tcode else will not work.

      ENDIF.

      ENDMODULE. "TAB2_change_tc_attr OUTPUT

      Regards,

      Vijaya.