Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sorting in CL_GUI_ALV_GRID

Former Member
0 Likes
4,364

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

3 REPLIES 3
Read only

AnjaneyaBhardwaj
Contributor
0 Likes
2,050

Can you do some more research and find it out what exactly you need and what is your question ?

Read only

Former Member
0 Likes
2,050

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

Read only

Former Member
2,050

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