Application Development and Automation 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: 
Read only

F4 Help Multiple selection - Output issue

Former Member
0 Likes
741

Hi Friends,

I am using below FM to generate F4 help with multiple value selection option.

Issue:

The output of F4 help is coming up in normal list display rather than advanced grid display, this happens only when i make multiple_choice = 'X'.

If the multiple_choice = ' ', F4 output is coming up in grid format.

Can someone help me to get F4 help with Multiple value selection, i need to get the output of F4 in advanced grid format.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'FIELD1'

dynpprog = sy-cprog

dynpnr = sy-dynnr

dynprofield = 'S_N1'

value_org = 'S'

multiple_choice = 'X'

TABLES

value_tab = it_values

return_tab = it_return

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

Thanks in advance.

Thanks,

Chandru

4 REPLIES 4
Read only

Clemenss
Active Contributor
0 Likes
590

Hi p,

it's not a bug, it's a feature.

No way - except do yur own programming.

Regards,

Clemens

Read only

Former Member
0 Likes
590

Hi Clemens,

Thanks for your reply.

Could you please guide me other options to meet this requirement?

Is there any alternate FM's that i need to look at?

Thanks,

Chandru

Read only

Former Member
0 Likes
590

Hi Experts,

Can someone help me with this question?

Thanks,

Chandru

Read only

Former Member
0 Likes
590
* Following Type and Table will have data to be shown in popup to select multiple rows.
TYPES: BEGIN OF ty_infty,
         infty     TYPE infotyp,
         itext     TYPE intxt,
         selec     TYPE oax,
       END OF ty_infty.

DATA: wa_infty    TYPE ty_infty,
      it_infty    TYPE STANDARD TABLE OF ty_infty.


  DATA : lv_selfield TYPE slis_selfield,
         l_exit TYPE char1.

*ALV Screen Field Catalogue
DATA:  it_fieldcat TYPE slis_t_fieldcat_alv,
       wa_fieldcat TYPE slis_fieldcat_alv.


* First create field cateloge, where first field will be check box.
  clear wa_fieldcat.
  wa_fieldcat-col_pos   = 1.
  wa_fieldcat-outputlen = 3.
  wa_fieldcat-fieldname = 'Selection'.     
  wa_fieldcat-tabname   = 'IT_INFTY'.
  wa_fieldcat-rollname  = ' '. 
  wa_fieldcat-checkbox  = 'X'.
  append wa_fieldcat to it_fieldcat.   clear wa_fieldcat.

  clear wa_fieldcat.
  wa_fieldcat-col_pos   = 1.
  wa_fieldcat-outputlen = 3.
  wa_fieldcat-fieldname = 'INFTY'.
  wa_fieldcat-tabname   = 'IT_INFTY'.
  wa_fieldcat-rollname  = 'INFTY '.
  wa_fieldcat-checkbox  = ' '.
  append wa_fieldcat to it_fieldcat.   clear wa_fieldcat.

  clear wa_fieldcat.
  wa_fieldcat-col_pos   = 1.
  wa_fieldcat-outputlen = 3.
  wa_fieldcat-fieldname = 'ITEXT'.
  wa_fieldcat-tabname   = 'IT_INFTY'.
  wa_fieldcat-rollname  = 'INTXT '.
  wa_fieldcat-checkbox  = ' '.
  append wa_fieldcat to it_fieldcat.   clear wa_fieldcat.


  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
    EXPORTING
      i_title                 = 'Infotype Selection'(d01)
      i_selection             = 'X'
      i_allow_no_selection    = 'X'
      i_zebra                 = 'X'
      i_checkbox_fieldname    = 'SELEC'
      i_tabname               = 'IT_INFTY'
      it_fieldcat             = it_fieldcat[]
      i_callback_program      = sy-repid
    IMPORTING
      es_selfield             = lv_selfield
      e_exit                  = l_exit
    TABLES
      t_outtab                = it_infty
    EXCEPTIONS
      program_error           = 1
      OTHERS                  = 2 .
IF sy-subrc = 0.
* Here you can loop talbe IT_INFTY which will have 'X' in SELEC field for which you will select in popup. 
Endif.