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: 

How to remove tool bar from a ALV table?

Former Member
0 Kudos

I have a screen 100 in which there are few text fields, push buttons, and a ALV container. This ALV output is just to display an internal table. I use below codes:

module PBO_100 output.

SET PF-STATUS 'MAIN_100'.

if g_container is initial.

create object g_container

exporting container_name = 'GG_CONTAINER'.

create object grid

exporting i_parent = g_container.

endif.

call method grid->set_table_for_first_display

exporting i_structure_name = p_table

changing it_outtab = <ntab2>[].

endmodule.

It works but I don't need a tool bar above the ALV table. How can I remove it?

Thank you very much.

Tom

1 ACCEPTED SOLUTION

venkata_ramisetti
Active Contributor
0 Kudos

Hi,

set import parameter IS_LAYOUT-NO_TOOLBAR = 'X' value.

CALL METHOD < ref. var. to CL_GUI_ALV_GRID> ->set_table_for_first_display

EXPORTING

I_BUFFER_ACTIVE = <any type ( ANY )>

I_STRUCTURE_NAME = <string of type DD02L-TABNAME >

IS_VARIANT = <structure of type DISVARIANT >

I_SAVE = <var. of type CHAR01 >

I_DEFAULT = <var. of type CHAR01 >

IS_LAYOUT = <structure of type LVC_S_LAYO >

IS_PRINT = <structure of type LVC_S_PRNT >

IT_SPECIAL_GROUPS = <internal table of type LVC_T_SGRP >

IT_TOOLBAR_EXCLUDING = <internal table of type UI_FUNCTIONS >

IT_HYPERLINK = <internal table of type LVC_T_HYPE >

IT_ALV_GRAPHICS = <internal table of type DTC_T_TC >

Thanks,

Ramakrishna

2 REPLIES 2

venkata_ramisetti
Active Contributor
0 Kudos

Hi,

set import parameter IS_LAYOUT-NO_TOOLBAR = 'X' value.

CALL METHOD < ref. var. to CL_GUI_ALV_GRID> ->set_table_for_first_display

EXPORTING

I_BUFFER_ACTIVE = <any type ( ANY )>

I_STRUCTURE_NAME = <string of type DD02L-TABNAME >

IS_VARIANT = <structure of type DISVARIANT >

I_SAVE = <var. of type CHAR01 >

I_DEFAULT = <var. of type CHAR01 >

IS_LAYOUT = <structure of type LVC_S_LAYO >

IS_PRINT = <structure of type LVC_S_PRNT >

IT_SPECIAL_GROUPS = <internal table of type LVC_T_SGRP >

IT_TOOLBAR_EXCLUDING = <internal table of type UI_FUNCTIONS >

IT_HYPERLINK = <internal table of type LVC_T_HYPE >

IT_ALV_GRAPHICS = <internal table of type DTC_T_TC >

Thanks,

Ramakrishna

0 Kudos

Solved! Ramakrishna, Thank you very much.