2010 Nov 01 8:26 AM
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
2010 Nov 01 8:58 AM
2010 Nov 01 8:58 AM
2010 Nov 01 9:05 AM
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
2010 Nov 01 9:24 AM
Use the importing parameter IS_LAYOUT and when building the layout use NO_TOOLBAR = 'X'.
2010 Nov 02 8:42 PM
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