2008 Jul 28 6:20 AM
HI
I set a layout in ALV with asscending order on any field. On runtime is there any way (i mean any variable) by which i know the sort order of layout.
I am using class cl_salv_layout.
any answer with different class are also welcome.
Regards
Aditya
2008 Jul 28 6:27 AM
Hi,
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/eac1fa0b-0e01-0010-0990-8530de4908a6]
Regards,
Sravanthi
2008 Jul 28 6:22 AM
Aditya,
look in IT_SORT table on which field sorting is performed.
Amit.
2008 Jul 28 6:25 AM
Hi Aditya,
Check this method GET_SORT_CRITERIA of CL_GUI_ALV_GRID.
OR
SORT_TABLE method of same class
OR
SORT_TABLE_UP_OR_DOWN method of CL_GUI_ALV_GRID
Hope this would help you.
Regards
Narin Nandivada
2008 Jul 28 6:26 AM
You have the field cat and the sort table, you can find out what are the sort fields.You can dynamically change the sort field if you want.
What do you want to do after you know what is your sort field?
If the hint is usefulu2026 Say thanks by rewardu2026.
Regards,
Prabhu Rajesh
2008 Jul 28 6:27 AM
Hi,
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/eac1fa0b-0e01-0010-0990-8530de4908a6]
Regards,
Sravanthi
2008 Jul 28 6:30 AM
Hi Aditya,
You can use get_sort_criteria in CL_GUI_ALV_GRID .
CALL METHOD <ref.var. to CL_GUI_ALV_GRID > ->get_sort_criteria
IMPORTING
ET_SORT = <internal table of type LVC_T_SORT > .
Check This Link:
http://help.sap.com/saphelp_erp2004/helpdata/en/ba/e92737739ce038e10000009b38f889/content.htm
Hope this helps you.
Regards,
Chandra Sekhar
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |