2009 Nov 05 10:31 AM
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
2009 Nov 05 11:56 AM
HI, Joanna.
May be u should check NO_MERGING field of field catalog?
2009 Nov 06 6:26 AM
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.
2009 Nov 06 7:27 AM
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
2009 Nov 06 8:41 AM
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.
2009 Nov 06 8:44 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |