Skip to Content
avatar image
Former Member

Interactive report

Hi everybody,

I have one interactive report. From the second list I have to call one modulepool screen. Now from the module pool screen I have one button to back. The requirement is when I will press that back button it will return to the second list from where it was moved to the screen.

Please tell me how it is possible????????

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Sep 12, 2008 at 11:00 AM

    hi

    At line selection.
    case sy-lsind.
    
    when 1.
    
    when 2.
    
    " Create a Ztransaction code for ur module pool program.
    
    Call Transaction Ztransaction code
    
    " IN YOUR ZTRANSACTION CODE ,
    "IN PA1
    
    "WRITE THIS CODE
    
    IF SY-UCOMM = 'EXIT'.
    LEAVE TO SCREEN 0.
    ENDIF.
    endcase
    
    
    

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 12, 2008 at 11:00 AM

    Hi,

    Check CALL DIALOG option. It calls module pool program.

    In AT LINE-SELECTION event use this statement.

    Just type this and press F1 it explains how to use this.

    Thanks,

    Vinod.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 12, 2008 at 11:03 AM

    Boss

    I am in the module pool screen. And I want to back to the list report where sy-lsind = 2. How it will be possible????????

    Please answer....

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Arnab,

      In PAI module of that screen do like this.

      CASE sy-ucomm.

      WHEN 'BACK'. "Ucomm for back button.

      LEAVE TO LIST-PROCESSING.

      WHEN....

      ENDCASE.

      Check below F1 help as well.

      "LEAVE TO LIST-PROCESSING.
      "Effect 
      Switches from "dialog processing" (module pool, screens) of the current transaction to "list processing". You can then use all the usual list layout commands (WRITE, SKIP, ...). 
      After leaving the current screen, the list formatted in this way is displayed implicitly or explicitly by LEAVE SCREEN. Here, all list programming options are possible, e.g. line selection, F keys, windows. 
      LEAVE LIST-PROCESSING continues with "Processing Before Output" (PBO) of the screen which controls the list processing. 
      

      Thanks,

      Vinod.

  • avatar image
    Former Member
    Sep 12, 2008 at 12:19 PM

    This message was moderated.

    Add comment
    10|10000 characters needed characters exceeded