Skip to Content
author's profile photo Former Member
Former Member

Using BACK button; module pool not implemented

Hi all,

I am displaying summary records as initial ALV grid.

Details of chosen records are displayed in ALV grid one-by-one on click of forward button.

Each click displays the chosen next record with further details in ALV.

My problem is that when i click on 'BACK' button; instead of directly going back to summary ALV grid (initial screen) I first go through all the ALV grid displays of records that were shown on click of forward button first.

I am not using module pool. Havnt created any screen of mine.

Can sy-lsind be of any help? It is set to 0 after each ALV grid dispaly.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Mar 25, 2009 at 02:46 PM

    Yea.. i think you can use the sy-lsind,because it gives the list index value.

    so,in the program like when you press 'BACK'.

    sy-lsind = 0.i hope it will be useful for you.

    Edited by: krishna kishore on Mar 25, 2009 8:17 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2009 at 03:16 PM

    In the dynamic subroutine use .

    Function Module has its own screen.

    CASE SY-UCOMM.
    When 'BACK'.
    Leave to screen 0.
    ENDCASE.

    regards,

    Gurpreet

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      yeah i have tried both sy-lsind = 0. and leave to screen 0. Nothing works ..

      Have even tried disabling the BACK button and putting a button in application tool bar and then calling sy-lsind = 0.

      Edited by: shalaxy s on Mar 26, 2009 3:27 PM

  • author's profile photo Former Member
    Former Member
    Posted on Mar 26, 2009 at 10:02 AM

    Hello Shalaxy,

    Get into the PAI section of screen and in the MODULE USER_COMMAND INPUT.

    make a case;

    data: ok_code like sy-ucomm.

    PAI:

    case ok_code.
    when 'BACK'.
    call screen 0./ leave to screen 0./set screen 0.
    endcase.

    But, in this case, set OK = ok_code for attributes of screen/layout.

    Hope it helps you.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Shalaxy,

      I think that was because, you would not have activated the screen.

      Just check whether, you have activated all the screens and gui-status.

      Moreover, try any of those;

      LEAVE TO SCREEN 0.

      or

      SET SCREEN 0.

      or

      CALL SCREEN 1000.

      1000 is the default screen number.

      Hope it helps you;

      Zahack

  • author's profile photo Former Member
    Former Member
    Posted on Mar 26, 2009 at 12:29 PM

    Case OK_CODE.

    WHEN 'BACK'.

    leave to screen 0.

    endcase.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 26, 2009 at 12:30 PM

    Hi,.

    
    MODULE USER_COMMAND_8000 INPUT.
    
      OK_CODE = SY-UCOMM.
    
      CASE OK_CODE.
    
      WHEN 'BACK'.
    
          LEAVE TO SCREEN 8000.
    
      ENDCASE.
    
    

    Hope it helps

    Regards

    Mansi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.