‎2009 Mar 25 2:38 PM
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
‎2009 Mar 25 2: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
‎2009 Mar 25 3: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
‎2009 Mar 26 9:20 AM
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
‎2009 Mar 26 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.
‎2009 Mar 26 12:27 PM
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
‎2009 Mar 26 12:46 PM
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
‎2009 Mar 26 12:29 PM
‎2009 Mar 26 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