‎2011 Mar 16 3:51 PM
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
‎2011 Mar 16 9:09 PM
Hi p,
it's not a bug, it's a feature.
No way - except do yur own programming.
Regards,
Clemens
‎2011 Mar 17 10:30 AM
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
‎2011 Mar 18 7:13 AM
Hi Experts,
Can someone help me with this question?
Thanks,
Chandru
‎2011 Mar 18 7:39 AM
* 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.