Application Development 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: 

Using BACK button; module pool not implemented

Former Member
0 Kudos

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

8 REPLIES 8

KK07
Contributor
0 Kudos

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

Former Member
0 Kudos

In the dynamic subroutine use .

Function Module has its own screen.

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

regards,

Gurpreet

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

hi,

yeah i tried that on my standard screen but i got a message that "Report generation make screen changes inefective" and didnt work .

thanks

0 Kudos

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

Former Member
0 Kudos

Case OK_CODE.

WHEN 'BACK'.

leave to screen 0.

endcase.

Former Member
0 Kudos

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