‎2020 May 30 11:05 AM
Hello, I am new to ABAP. I'm having the issue of merging multiple rows of the same field with multiple column when display alv ( i use CL_SALV_TABLE) (screenshot below). I tried to search on the internet but still got no clue. Please give me a solution, or sample code would be great. ( sorry for bad english)
‎2020 May 30 12:19 PM
Hi hoangduy2354,
If I understand your issue correctly your issue is related to merging during sorts.
This can be changed manually in the layout setting or it can be applied using ABAP
go_salv_dsp_set = go_salv_table->get_display_settings( ).
go_salv_dsp_set->set_no_merging( value = abap_true ).
go_salv_table->display( ).


Regards,
Bartosz
‎2020 May 30 12:19 PM
Hi hoangduy2354,
If I understand your issue correctly your issue is related to merging during sorts.
This can be changed manually in the layout setting or it can be applied using ABAP
go_salv_dsp_set = go_salv_table->get_display_settings( ).
go_salv_dsp_set->set_no_merging( value = abap_true ).
go_salv_table->display( ).


Regards,
Bartosz
‎2020 May 30 1:13 PM
Thanks you for your answer, but i still have a question. Is there anyway to sort and merge multiple column of the internal before display ALV ?
‎2020 May 30 1:48 PM
hoangduy2354 Bartosz has already answered to you about "cell merging" (which works for one or several columns). Sorting can be programmed using method GET_SORTS, ADD_SORT and so on (search the web). Or if your question is different, could you please clarify?