2008 Aug 07 1:45 PM
how can i hide push buttons in alv.
2008 Aug 07 1:47 PM
2008 Aug 07 1:49 PM
Hi
You have to pass the pushbuttons (which you want to hide) through the parameter IT_EXCLUDING in your ALV function module.
-Pavan
2008 Aug 07 1:51 PM
i have to hide the pushbutton created by me.not standard tool bar.i have created the pushbutton in screen painter.that i have to hide.
2008 Aug 07 1:53 PM
>
> i have to hide the pushbutton created by me.not standard tool bar.i have created the pushbutton in screen painter.that i have to hide.
So you created that. bu when you want to hide..? it should be based on some action otherwise there is no meaning of adding and Hiding.
2008 Aug 07 1:56 PM
i have 4 grids and push button for each grid.
according to selection condition the number of grids displayed is varrying.so if one grid is not displayed i have to hide the push button corresponding to that grid.
2008 Aug 07 2:03 PM
>
> i have 4 grids and push button for each grid.
> according to selection condition the number of grids displayed is varrying.so if one grid is not displayed i have to hide the push button corresponding to that grid.
ok, I assume you have 4 internal tables for 4 girds. Check the internal table condition empty or not then accordingly you exclude the corresponding buttons.
For getting the status copy the standard status , go to SE41,
Give the program name as SAPLKKBL , and status as STANDARD , now click on copy status. Give the traget program as your progam name. and copy the status , add four buttons to the application toolbar. now come to ALV program...and do this..., You have pass form name to i_callback_pfstatus parameter of alv function.
FORM STATUS using extab type slis_t_extab.
if itab1[] is initial.
append 'BUTTON1' to extab.
endif.
if itab2[] is initial.
append 'BUTTON2' to extab.
endif.
if itab3[] is initial.
append 'BUTTON3' to extab.
endif.
if itab4[] is initial.
append 'BUTTON4' to extab.
endif.
set pf-status 'STANDARD' excluding extab.
ENDFORM.
2008 Aug 07 1:50 PM
2008 Aug 07 1:50 PM
Populate the Function codes to a table of type SLIS_T_EXTAB. and then
Using IT_EXLCUDING option of the ALV you can exclude the Function from ALV toolbar.
2008 Aug 07 1:55 PM
Hi!
First, you'll need a status.
Go to SE80, choose Function groups and enter the SLVC_FULLSCREEN name.
You'll find a status, called STANDARD_FULLSCREEN.
Right-click on it and choose copy.
Copy it to your program.
Then go to SE41, give your program name, and the status name and you can disable the unwanted controls.
Regards
Tamá