Skip to Content
0

CL_SALV_TABLE SORT 2 COLUMN

Feb 05 at 04:06 AM

31

avatar image
Former Member

Hallo, i want sort 2 column in example :

Seq. No. Name

3 Sarah

2 Mei

4 Al

1 Kai

I want to sorted 2 of column seq no and name, and i using this in my alv

loop at lt_salv_sorts[] into ls_salv_sorts.
try .
CALL METHOD lo_salv_sorts->add_sort
EXPORTING
columnname = ls_salv_sorts-fname_sorts ( this is seq_no and regist_name)
subtotal = if_salv_c_bool_sap=>true.
CATCH cx_salv_not_found . "#EC NO_HANDLER
CATCH cx_salv_existing . "#EC NO_HANDLER
CATCH cx_salv_data_error . "#ec no_handler
endtry.
endloop.

but i have problem my alv only the sorted name, the number is not sorted, can anyone help?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sandra Rossi Feb 05 at 07:19 AM
0

By writing a very short demo program, it proves to work perfectly. Please explain your special context.

Share
10 |10000 characters needed characters left characters exceeded