We can display ALV GRID report either by using FM 'REUSE_ALV_GRID_DISPLAY' or by using 'SET_TABLE_FOR_FIRST_DISPLAY' method. there are few more ways are there to display ALV GRID.
In this post I am considering only 'SET_TABLE_FOR_FIRST_DISPLAY' method to explain how to Remove Horizontal and Vertical lines from ALV Grid Display.
CALL METHOD obj_grid->set_table_for_first_display
EXPORTING i_structure_name = 'ZSTRUCTURE' "Global Struct
is_layout = wa_layout " Layout
CHANGING
it_outtab = itab_output "Final Internal Table refer to struct
it_fieldcatalog = itab_fieldcatalog "Field catalog
Note : Errors you may get when you are using above method to display ALV Report
1.Field catalog not found . For Solution Click Here.
By using above piece of code , we can display ALV Grid. If you want to remove Horizontal/Vertical Lines from the Report do make the changes as done below before passing wa_layout to the method.
Layout Settings :
------------------
wa_layout-no_hgridln = 'X'.
wa_layout-no_vgridln = 'X'.
Changing Column names in ALV GRID REPORT based on user requirement Click Here
In this post I am considering only 'SET_TABLE_FOR_FIRST_DISPLAY' method to explain how to Remove Horizontal and Vertical lines from ALV Grid Display.
CALL METHOD obj_grid->set_table_for_first_display
EXPORTING i_structure_name = 'ZSTRUCTURE' "Global Struct
is_layout = wa_layout " Layout
CHANGING
it_outtab = itab_output "Final Internal Table refer to struct
it_fieldcatalog = itab_fieldcatalog "Field catalog
Note : Errors you may get when you are using above method to display ALV Report
1.Field catalog not found . For Solution Click Here.
By using above piece of code , we can display ALV Grid. If you want to remove Horizontal/Vertical Lines from the Report do make the changes as done below before passing wa_layout to the method.
Layout Settings :
------------------
wa_layout-no_hgridln = 'X'.
wa_layout-no_vgridln = 'X'.
Changing Column names in ALV GRID REPORT based on user requirement Click Here
No comments:
Post a Comment