‎2009 Oct 29 9:55 AM
Hi All,
I have a requirement where i need to match the sorted data of internal table, which is sorted by sort function, & sorted data that is sorted on screen,i.e.with ALV.
How can i acheieve that?
Thanks In Advance.
Regards,
Nidhi Kothiyal
‎2009 Oct 29 10:22 AM
Hi,
In an ALV, when we select a column and then sort, then the report is sorted based on the column selected.
Whereas in an internal table in your code you would be sorting according to some specific field.
You would ahev to ascertain as to which column is being sorted in ALV and then use similar sort statement in your code logic to get same sequence of records.
Hope this Helps!
Regards,
Mansi.
‎2009 Oct 29 10:22 AM
Hi,
In an ALV, when we select a column and then sort, then the report is sorted based on the column selected.
Whereas in an internal table in your code you would be sorting according to some specific field.
You would ahev to ascertain as to which column is being sorted in ALV and then use similar sort statement in your code logic to get same sequence of records.
Hope this Helps!
Regards,
Mansi.
‎2009 Oct 29 10:28 AM
in the user command subroutine for that ALV..
capture the SORT command and see which field its sorting.. (you need to debug a bit for this) then sort the table sabed on that field..
one more option is data_changed event.. this captures all the changes made to your table.. track it there and update your internal table..
‎2009 Oct 29 10:36 AM
‎2009 Oct 29 11:28 AM
hi,
Actually i am sorting three fields in alv, one numeric, one alphanumeric & onr character. if i sort with first two both sortings are same,, but when i sort all three the order in ALV becomes different of internal table.
any suggestion?
Regards,
Nidhi Kothiyal
‎2009 Oct 29 12:00 PM
‎2009 Oct 29 12:35 PM
hi,
Actually i am sorting three fields in alv, one numeric, one alphanumeric & onr character. if i sort with first two both sortings are same,, but when i sort all three the order in ALV becomes different of internal table.
any suggestion?
can you provide some sample code!
Regards,
Nidhi Kothiyal
‎2009 Nov 03 7:17 AM