Skip to Content
0
Former Member
Jun 27, 2010 at 09:57 PM

ALV Button problem - need help

16 Views

Hi,

I need to add a new button say "Display All" in ALV report at top.

how-can-we-add-a-button-on-our-alv-grid

This is what I have done as per the above link. But the button is not being displayed in the report when I executed it. Please help.

1. SE80 - copied the GUI status "STANDARD" to my zprogram.

2. SE41 - added new function key "&DISP" with description "Display All". I did not specify any icon name though.

3. Added the following lines in FM

I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

4. Created new forms SET_PF_STATUS & USER_COMMAND.

FORM SET_PF_STATUS USING rt_extab TYPE slis_t_extab.

SET PF-STATUS 'YSTANDARD'.

ENDFORM. " SET_PF_STATUS

Thank you,

mk