2012 Jun 27 6:51 AM
hello,'
I am trying to get multiple selection option for alv
i used the following code
WA_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
WA_LAYOUT-ZEBRA = 'X'.
WA_LAYOUT-NO_HLINE = 'X'.
WA_LAYOUT-NO_VLINE = 'X'.
WA_LAYOUT-CELL_MERGE = 'X'.
WA_LAYOUT-BOX_FIELDNAME = 'SEL'.
WA_LAYOUT-BOX_TABNAME = 'IT_FINAL'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_GRID_SETTINGS = LC_GLAY
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
IT_EVENTS = IT_EVENTS
IT_SORT = IT_SORT
TABLES
T_OUTTAB = IT_FINAL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
I am getting multiple selection but when press any button (even back button ) it is going to MOVE_TO_LIT_NOTALLOWED_NODATA dump
Where iam going wrong???
Thanks in advance
ujwal
2012 Jun 27 6:58 AM
Does the internal table you declared IT_FINAL has a field SEL with attributes Char 1?
2012 Jun 27 6:58 AM
Does the internal table you declared IT_FINAL has a field SEL with attributes Char 1?
2012 Jun 27 7:02 AM
ok thanks chinmay,
that problem is solved just now
Can you tell how to capture and process the selected records in output
Thanks in advance
2012 Jun 27 7:04 AM
I guess IT_FINAL is global.
All the selected rows will have SEL = 'X'.