10-24-2006 3:02 PM
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
10-24-2006 3:12 PM
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
10-24-2006 3:12 PM
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
10-24-2006 3:28 PM