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

Grid Toolbar button

Former Member
0 Likes
535

Hi all, how can disable the grid toolbar buttons(predefined buttons). Depending on some conditions these buttons need to be enabled and disabled. Any method available to do this?

Thanks and Regards,

Balakrishna.N

4 REPLIES 4
Read only

Former Member
0 Likes
507

Hi,

copy the standard PF-Status use it in ur program conditions.

Read only

uwe_schieferstein
Active Contributor
0 Likes
507

Hello Balakrishna

When you call the fm (or method SET_TABLE_FOR_FIRST_DISPLAY of CL_GUI_ALV_GRID) you have an IMPORTING parameter to exclude functions from the ALV toolbar. Fill this itab with all non-required functions (in case of OO-based ALV have a look at the constants of CL_GUI_ALV_GRID).

Regards

Uwe

Read only

Former Member
0 Likes
507

HI,

Please look into the PF-Status of the screen.

You will find a lot of buttons. You cab delete add do anything you wish to.

Shreekant

Read only

Former Member
0 Likes
507

Hi,

Append the toolbar function codes (That you want to exclude) into an internal table and use this in the toolbar parameter of the ALV grid func module or method call.

Regards,

Subramanian