cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting ALV Table cells

Former Member
0 Kudos

hi

how to group the cells of alv table.

where all the fields having same value should be displayed once and rest of the fields should contain the varying values.

Edited by: chythanya on May 13, 2008 1:35 PM

Edited by: chythanya on May 13, 2008 1:36 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Please read these: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1190424a-0801-0010-84b5-ef03fd2d33d9] at page 9 and [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4].

Regards,

Former Member
0 Kudos

Hi

i have already gone through these documents.

my question is can i sort my alv table by all fields.

so that all the columns having similar values appear only once and rest of columns having different values display varying values.

regards

chythanya

Former Member
0 Kudos

Hi chythanya,

Enable multi column sort of the alv table.

"To enable multi column sort

lr_config->IF_SALV_WD_TABLE_SETTINGS~SET_MULTI_COLUMN_SORT( value = abap_true). " lr config is  model reference

with regards

ajay

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi chythanya,

Enable multi column sort of the alv table.

"To enable multi column sort

lr_config->IF_SALV_WD_TABLE_SETTINGS~SET_SORT_FIELDNAME( value = abap_true).

" lr config is model reference

Former Member
0 Kudos

Thanks Ajay

regards

chythanya