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: 

Need to supress ALV Menu

Former Member
0 Kudos
109

hi guru,

i am using opps- ALV to display two ALV display at the output.

i am able to develope the same but facing a problem.

in the second display i dont want the ALV Menu to appear , as it is just the summary of the report.

ALV menu example

detail sort find etc.... (want to remove these and add a tilte SUMMARY) thats all.

many thanks,

Anuj.

Edited by: kishan P on Nov 1, 2010 1:58 PM

1 ACCEPTED SOLUTION

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos
76

Check the layout for 2nd ALV and mark no_toolbar = 'X'.

4 REPLIES 4

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos
77

Check the layout for 2nd ALV and mark no_toolbar = 'X'.

0 Kudos
76

Hi Sandeep,

many thanks for quick response.

but i do not have layout in the ALV:

kindly help with some code how i have to go about it.

kindly find my code below:

  • For Summary ALV.

PERFORM fieldcatalog2.

  • Create objects

IF go_custom_container1 IS INITIAL.

CREATE OBJECT go_custom_container1

EXPORTING

container_name = 'ALV_CONTAINER2'.

CREATE OBJECT go_grid1

EXPORTING

i_parent = go_custom_container1.

ENDIF.

  • Load data into the grid and display them

CALL METHOD go_grid1->set_table_for_first_display

  • EXPORTING

  • i_structure_name = ''

CHANGING

it_outtab = gt_summary " Second Table

it_fieldcatalog = pt_fieldcat1

EXCEPTIONS

invalid_parameter_combination = 1

program_error = 2

too_many_lines = 3

OTHERS = 4.

Many thanks,

anuj

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos
76

Use the importing parameter IS_LAYOUT and when building the layout use NO_TOOLBAR = 'X'.

Former Member
0 Kudos
76

Hi,

In the PBO of the second ALV, use the below exclude logic.

  • Exculde unused functions

PERFORM exclude_tb_functions CHANGING lt_exclude.

FORM exclude_tb_functions CHANGING pt_exclude TYPE ui_functions.

DATA ls_exclude TYPE ui_func.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.

etc......

and pass it to export parameter.

CALL METHOD g_grid->set_table_for_first_display

EXPORTING

is_layout = gs_layout

is_variant = l_layout

i_save = 'A'

it_toolbar_excluding = lt_exclude

Hope this will solve your query.

Thanks

Lakshmi