Question:
Hi All,
I am using REUSE_ALV_LIST_DISPLAY for grouping ,sorting and displaying the values in a group on new page
When I execute this program the grouping doesnt work, when I re-execute the program from the selection screen It works.
Here's the code
***********************
CLEAR LS_SORT.
LS_SORT-SPOS = 1.
LS_SORT-FIELDNAME = 'DISPO'.
LS_SORT-UP = 'X'.
LS_SORT-SUBTOT = 'X'.
LS_SORT-GROUP = '*'.
LS_SORT-TABNAME = 'INT_GETDATA'.
APPEND LS_SORT TO G_SORT.
*
CLEAR LS_SP_GROUP.
LS_SP_GROUP-SP_GROUP = 'A'.
APPEND LS_SP_GROUP TO GT_SP_GROUP.
*
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_USER_COMMAND = 'SUB_USER_COMMAND'
IS_LAYOUT = G_LAYOUT
IT_FIELDCAT = GT1_FIELDCAT[]
IT_EVENTS = GT_EVENTS[]
IT_SPECIAL_GROUPS = GT_SP_GROUP[]
IT_SORT = G_SORT[]
IS_PRINT = GS_PRINT
TABLES
T_OUTTAB = INT_GETDATA[].
*********************************
Does any one know why this might be happening??
Please Do help me with this.
Regards,
bhins
Answer:
Try taking out the Special Groups parameter from the FM and see if that helps.
Regards,
Gianpaul
Answer:
Nope,
Doesnt work
I tried copying this program in another temporary program and it works there,
But not in the main program.
Regards,
bhins