Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

MOVE_TO_LIT_NOTALLOWED_NODATA while ALV multple selection

former_member420959
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Does the internal table you declared IT_FINAL has a field SEL with attributes Char 1?

3 REPLIES 3

Former Member
0 Kudos

Does the internal table you declared IT_FINAL has a field SEL with attributes Char 1?

0 Kudos

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

0 Kudos

I guess IT_FINAL is global.

All the selected rows will have SEL = 'X'.