‎2008 Dec 02 2:20 PM
Hi all,
I have a report in which I am displaying a ALV grid output. I have a hotspot on the ALV, clicking on which takes me to a module pool screen. When I press back on this module pool screen(I have created a PF status for this) it takes me back to the ALV grid display.
However, on this screen(ALV display) I am having a problem with the back button. On pressing back once I get to the ALV it takes me back to the module pool screen(I want to goto the initial selection screen).
To over come this problem I had created a PF status for the ALV but this removed the default application tool icons (details, sort, downlaod etc).
Please guide me!!
Thanks,
Samyukta G.
‎2008 Dec 03 5:15 AM
Hi Samyukta,
Appears... the problem is in ur module pool program.....
Is ur Back event handler code like below... if not try changing like this...
CASE sy-ucomm.
WHEN 'BACK'.
SET SCREEN 0. LEAVE SCREEN.
WHEN OTHERS.
ENDCASE.Hope u r using call transaction and not leave to transaction when hotspot is clicked......
Cheers,
Jose.
‎2008 Dec 03 3:41 AM
Hi
Check these reports if they are helpful.
BCALV_GRID_07 Define a Menu in the Toolbar
BCALV_GRID_08 Define a Menu with Default Pushbutton
BCALV_GRID_03 Detail List in Dialog Window
Check this link for some useful info on ALV.
Regards
Neha
Edited by: Neha Shukla on Dec 3, 2008 9:11 AM
Edited by: Neha Shukla on Dec 3, 2008 9:12 AM
‎2008 Dec 03 5:15 AM
Hi Samyukta,
Appears... the problem is in ur module pool program.....
Is ur Back event handler code like below... if not try changing like this...
CASE sy-ucomm.
WHEN 'BACK'.
SET SCREEN 0. LEAVE SCREEN.
WHEN OTHERS.
ENDCASE.Hope u r using call transaction and not leave to transaction when hotspot is clicked......
Cheers,
Jose.
‎2008 Dec 03 6:28 AM
if ur have same FCODE for BACK
then in the cases to handle this
modify to reflec for the corresponding screen as
if sy-ucomm = 'BACK' and sy-dynnr = '1000' "for ALV
alv handle for back
elseif sy-ucomm = 'BACK' and sy-dynnr = '2000' "for module pool
module pool handle for back
endif,.
hope this will help you