Application Development 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: 

Excluding all function code in Standard Toolbar of ALV GRID

Former Member
0 Kudos

Hi,

My ABAP program contains more ALV Grid at only dynpro,

the ALVs have been develop in ABAP OBJECT with class CL_GUI_ALV_GRID.

I would like exclude all components of toolbar standard.

Someone knows a method.

Something different of to pass structure it_toolbar_excluding[] at method DISPLAY.

Thanks everybody.

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

data i_exclude TYPE ui_functions.

perform f9100_exclude_functions using : i_Exclude[] '&EXCLALLFC'.

FORM f9100_exclude_functions USING pexclude LIKE i_exclude

value(pfunction).

DATA: l_exclude TYPE ui_func.

l_exclude = pfunction.

APPEND l_exclude TO pexclude.

ENDFORM. " f9100_exclude_functions

4 REPLIES 4

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

data i_exclude TYPE ui_functions.

perform f9100_exclude_functions using : i_Exclude[] '&EXCLALLFC'.

FORM f9100_exclude_functions USING pexclude LIKE i_exclude

value(pfunction).

DATA: l_exclude TYPE ui_func.

l_exclude = pfunction.

APPEND l_exclude TO pexclude.

ENDFORM. " f9100_exclude_functions

Former Member
0 Kudos

Hi Antonello,

All the standard functions (Icons)

are descrbed as ATTRIBUTES of the CL_GUI_ALV_GRID class.

If You want to exclude them use

this statements.

Excample:

gf_exsd TYPE ui_func,

gt_exsd TYPE ui_functions.

*:--- Hide it ...

gf_exsd = cl_gui_alv_grid=>mc_fc_loc_append_row.

APPEND gf_exsd TO gt_exsd.

....

....

Hopr this will help you

BR

Michael

Former Member
0 Kudos

Hi Antonello,

it me again

Sorry but I forgot to tell you a simple way to do this:

Set the property of LVC_S_LAYO to

LVC_S_LAYO-NO_TOOLBAR = 'X'.

This is the easiest way.

(Please mark your question as answerd if it is ... )

Thank you.

BR

Michael

0 Kudos

Answere it