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

sorting in ALV without cell merging

Former Member
0 Likes
1,957

Hi, I created ALV with sorting table in FM set_table_for_first_display, data are sorted correct but cell are not merged. In layout I have no_merging = ' ' . So where is a problem?

Joanna

Hi, I created ALV with sorting table in FM set_table_for_first_display, data are sorted correct but cell are not merged. In layout I have no_merging = ' ' . So where is a problem?

Joanna

5 REPLIES 5
Read only

Petr_Plenkov
Active Participant
0 Likes
1,176

HI, Joanna.

May be u should check NO_MERGING field of field catalog?

Read only

Former Member
0 Likes
1,176

Hi Joanna,

Check this program BCALV_TEST_MERGE.

It is calling SET_TABLE_FOR_FIRST_DISPLAY and merging cells.

Is your ALV cell-wise editable ? or just display ?

You need to pass itab with sort criteria.

wa_sort-spos = 1.

wa_sort-fieldname = <column1>

wa_sort-up = 'X'.

append wa_sort to i_sort.

wa_sort-spos = 2.

wa_sort-fieldname = <column2>

wa_sort-up = 'X'. " sort ascending

append wa_sort to i_sort.

Thanks,

Nisha Vengal.

Read only

0 Likes
1,176

He Nisha,

I do like in all example given in internet and I receive sorted data but without cell merging, I have many rows in sirted column with the same data .

Joanna

Read only

0 Likes
1,176

Hi Joanna,

Is it an editable ALV ?

Its not enough to pass sorted IT_OUTTAB.

You need to pass IT_SORT (changing parameter) to the method SET_TABLE_FOR_FIRST_DISPLAY

Hope you were saying 'yes' for that.

Thanks,

Nisha Vengal.

Read only

0 Likes
1,176

yes, I have sorting table and I add it to SET_TABLE_FOR_FIRST_DISPLAY as I said sorting works. Some of cell os grid is editable column by which sorting is made is not editable.

Joanna