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

to hide pushbutton in alv

Former Member
0 Likes
2,348

how can i hide push buttons in alv.

how can i hide push buttons in alv.

9 REPLIES 9
Read only

Former Member
0 Likes
1,779

This thread will explain you in detail

There are functions in ALV which you can exclude.

Amandeep

Read only

0 Likes
1,779

Hi

You have to pass the pushbuttons (which you want to hide) through the parameter IT_EXCLUDING in your ALV function module.

-Pavan

Read only

0 Likes
1,779

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.

Read only

0 Likes
1,779

>

> 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.

Read only

0 Likes
1,779

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.

Read only

0 Likes
1,779

>

> 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.

Read only

Former Member
0 Likes
1,779

Read only

Former Member
0 Likes
1,779

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.

Read only

Former Member
0 Likes
1,779

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á