2007 Oct 27 8:48 AM
HI SAP
I WANT TO SORT FIRST 4 FIELDS IN ALV USING MACROS . I PASSED SORT[] TO 'REUSE_ALV_GRID_DISPLAY'.
BUT ONLY 2 FIELDS ARE SORTED. CAN U CHECK THIS MACRO STATEMENT.
DEFINE MACROS1.
SORT-SPOS = &1.
SORT-FIELDNAME = &2.
SORT-TABNAME = 'TT_ITAB'.
SORT-UP = 'X'.
APPEND SORT.
CLEAR SORT.
END-OF-DEFINITION.
MACROS1 '1' 'EBELN'.
MACROS1 '2' 'AEDAT'.
MACROS1 '3' 'LIFNR'.
MACROS1 '4' 'EKGRP'.
THANKS.
2007 Oct 27 9:13 AM
Hi
The macro is fine. If it has worked for 2 fields, then it should work for other 2. Just check if the field names are the same in the internal table.
Regards
Navneet
Hi
The macro is fine. If it has worked for 2 fields, then it should work for other 2. Just check if the field names are the same in the internal table.
Regards
Navneet
2007 Oct 27 9:13 AM
Hi
The macro is fine. If it has worked for 2 fields, then it should work for other 2. Just check if the field names are the same in the internal table.
Regards
Navneet
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |