‎2007 Mar 13 3:01 PM
somebody can tell me, what are, g_it_wa_sort-spos AND g_it_wa_sort-group for?
I need to do a special sorting.
Check this sample. If i have
FIELD1 INVES-002
FIELD1 INVES-002
FIELD2 INVES-002
FIELD2 INVES-002
and i use g_it_wa_sort I get in my ALV
-
FIELD1 INVES-002
(EMPTY ROW)
-
FIELD2
(EMPTY ROW)
-
but what i need is:
-
FIELD1 INVES-002
(EMPTY ROW)
-
FIELD2 <b>INVES-002</b>
(EMPTY ROW)
-
Because, field has changed from FIELD1 to FIELD2
Can anybody help me please?
‎2007 Mar 13 3:27 PM
‎2007 Mar 13 3:38 PM
hi
spos - Sort order
for ex:
DATA: it_sort TYPE slis_t_sortinfo_alv,
wa_sort TYPE slis_sortinfo_alv,
wa_sort-fieldname = 'BUKRS'.
wa_sort-tabname = 'IT_SORT'.
wa_sort-up = 'X'.
APPEND wa_sort TO it_sort.
wa_sort-fieldname = 'BELNR'.
wa_sort-tabname = 'IT_SORT'.
wa_sort-up = 'X'.
APPEND wa_sort TO it_sort.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = gs_layout
it_fieldcat = ct_fieldcat
it_sort = it_sort[]
i_save = 'A'
TABLES
t_outtab = itab.
**reward if helpful
regards,
madhu
‎2007 Mar 13 3:49 PM
yes, i alredy knew that, but this don't solve my problem.
Should i do any special group in the alv?
Help please.