‎2008 Oct 28 8:04 AM
Hallo guyes,
I have an usual ALV grid where I dispaly some documents f.e.
When I sort the content according to marked column using standard ALV button and
after that I want to jump into choosen document by 2clicking on it I jump into
the wrong one.
Problem is that my 'program itab' is not sorted. Itab lines are still in position like
after first dispaly.
How can I handle this problem?
I wanted to use before_user_command event to sort my itab according to marked column
but it doesn't work.
IF e_ucomm = '&SORT_DSC'.
CALL METHOD ref_alv->get_selected_columns
IMPORTING
et_index_columns = lt_index_columns.
CLEAR ls_index_columns.
READ TABLE lt_index_columns INTO ls_index_columns
INDEX 1.
SORT gt_best BY ls_index_columns-fieldname DESCENDING.
ENDIF.
CALL METHOD ref_alv->set_user_command
EXPORTING i_ucomm = space.
Any other idea?
Thanks a lot.
‎2008 Oct 28 8:39 AM
‎2008 Oct 28 8:52 AM
are you using the OOALV or normal alv. why can't you use Normal(Standard )Sort functionality.
i am not getting what is the reason you are going for it.
‎2008 Oct 28 9:26 AM
I do use standard 'manual' sort but after that my itab is not sorted according to what I see on screen.
So after 2clicking on one line I don't get the correct values. You know what I mean?
And I am using OOALV.