03-18-2007 9:33 PM
Hi Friends,
I am including custom push buttons on alv toolbar but displaying only one custom button but erasing rmaining one, here my requirement is to add button to existing toolbar.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = SY-REPID
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
............
FORM set_pf_status USING rt_extab TYPE slis_t_extab
SET PF-STATUS 'STATUS' EXCLUDING rt_extab.
ENDFORM.
thanks,
asha
03-18-2007 9:50 PM
Hi Asha,
This is happening because you have created a new status called STATUS. In this status, you have included only one button. In this way, the default buttons of the ALV vanishes. If you want all the other buttons to be visible then you have to include them manually. Or you can do one thing:-
1) Open GUI Status window and go to the menu EXTRAS->ADJUST TEMPLATE.
2) This opens a new window called ADJUST TEMPLATE. Here choose LIST STATUS radio button and press OK.
3) This puts all the default buttons of the LIST STATUS on the ALV.
Thanks and regards,
Ravi :).
NOTE: Points keep me alive on SDN .
03-18-2007 9:50 PM
Hi Asha,
This is happening because you have created a new status called STATUS. In this status, you have included only one button. In this way, the default buttons of the ALV vanishes. If you want all the other buttons to be visible then you have to include them manually. Or you can do one thing:-
1) Open GUI Status window and go to the menu EXTRAS->ADJUST TEMPLATE.
2) This opens a new window called ADJUST TEMPLATE. Here choose LIST STATUS radio button and press OK.
3) This puts all the default buttons of the LIST STATUS on the ALV.
Thanks and regards,
Ravi :).
NOTE: Points keep me alive on SDN .
03-18-2007 10:25 PM
Thanks,
I got output by copyinging sytem defined pf status to zstatus, here
I got as per standard toolbar but i am unable to get custom button which i added in the zstatus.
Thanks
03-18-2007 10:36 PM
Hi Asha,
Though you have marked this as answered, here is the solution. Create a new STATUS, Add your custom button and then add the rest of the default buttons that you need. This might work as i myself have got stuck in one such problem in past.
Thanks and regards,
Ravi.