cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple value selection for f4 help in table control

0 Kudos
405

Hi Expert,

I have created a F4 help for a particular field in table control. By using the F4 help I am able to select only one value. But I want to select multiple values from F4 help and for that I have also enabled multiple choice parameter in FM F4IF_FIELD_VALUE_REQUEST. But it's not updating all the values which are I am selecting only last one getting updated.

Can any help me in my code what changes I need to done for this to getting desired output?

DATA : lt_return TYPE TABLE OF ddshretval.
  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
      tabname           = 'MCHB'
      fieldname         = 'CHARG'
      searchhelp        = 'ZSH_TEST'
*     SHLPPARAM         = ' '
      dynpprog          = sy-repid
      dynpnr            = sy-dynnr
*     DYNPROFIELD       = ' '
*     STEPL             = 0
*     VALUE             = ' '
      multiple_choice   = 'X'
*     DISPLAY           = ' '
*     SUPPRESS_RECORDLIST       = ' '
*     CALLBACK_PROGRAM  = ' '
*     CALLBACK_FORM     = ' '
*     CALLBACK_METHOD   =
*     SELECTION_SCREEN  = ' '
* IMPORTING
*     USER_RESET        =
    TABLES
      return_tab        = lt_return
    EXCEPTIONS
      field_not_found   = 1
      no_help_for_field = 2
      inconsistent_help = 3
      no_values_found   = 4
      OTHERS            = 5.
  IF lt_return IS NOT INITIAL.
    LOOP AT lt_return ASSIGNING FIELD-SYMBOL(<ls_return>).
      ls_mchb-charg = <ls_return>-fieldval.
    ENDLOOP.
  ENDIF.

Accepted Solutions (0)

Answers (0)