Application Development and Automation 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: 
Read only

sort by multiple column

Former Member
0 Likes
2,118

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)

aaa.png

1 ACCEPTED SOLUTION
Read only

ziolkowskib
Active Contributor
1,613

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

3 REPLIES 3
Read only

ziolkowskib
Active Contributor
1,614

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

Read only

0 Likes
1,613

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 ?

Read only

1,613

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?