‎2010 Dec 09 6:08 AM
Hello Friends,
Can any one please tell me -
What events are using while sorting in class CL_GUI_ALV_GRID .
Means in se24 in this class we have columns like - method, level, visibility, method type.
how can we sort on these field - mean what are the events behind it.
Can anyone plz tell me.
I am using this concept in my Z Program.
Regards,
Phaneendra
Moderator message: too vague, help not possible, please describe problems in all technical detail when posting again.
Edited by: Thomas Zloch on Dec 9, 2010 11:30 AM
‎2010 Dec 09 6:51 AM
Can you do some more research and find it out what exactly you need and what is your question ?
‎2010 Dec 09 7:22 AM
Hi,
Do one thing if you want to search on the same then debug that and you will definitely come to know what event used behind this scenario.
Thanks,
Jaten Sangal
‎2010 Dec 09 7:26 AM
Hi,
DATA: LT_SORT TYPE LVC_T_SORT,
WA_SORT LIKE LINE OF LT_SORT.
*---To sort the internal table with order number.
CLEAR WA_SORT.
WA_SORT-FIELDNAME = 'AUFNR'.
WA_SORT-SPOS = 1.
WA_SORT-UP = 'X'.
APPEND WA_SORT TO LT_SORT.
*---Method to display output
CALL METHOD REF_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
is_variant = st_var
i_save = save
IS_LAYOUT = LOYO
CHANGING
IT_OUTTAB = LT_LOG[]
IT_FIELDCATALOG = LT_FCAT_LOG
IT_SORT = LT_SORT.
Regards,
Thiru