Application Development and Automation 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: 
Read only

back functionality of ALV

Former Member
0 Likes
543

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
482

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.

3 REPLIES 3
Read only

Former Member
0 Likes
482

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.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a41...

Regards

Neha

Edited by: Neha Shukla on Dec 3, 2008 9:11 AM

Edited by: Neha Shukla on Dec 3, 2008 9:12 AM

Read only

Former Member
0 Likes
483

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.

Read only

Former Member
0 Likes
482

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