Share |

F4IF_INT_TABLE_VALUE_REQUEST sap function module


The below code shows how function module F4IF_INT_TABLE_VALUE_REQUEST is used to display an ABAP internal table as an SAP search help.

Display ABAP table as search help

types: begin of t_ekko,
  ebeln type ekko-ebeln,
  bukrs type ekko-bukrs,
  ekgrp type ekko-ekgrp,
 end of t_ekko.
data: it_ekko   type STANDARD TABLE OF t_ekko,
      it_return type STANDARD TABLE OF DDSHRETVAL,
      wa_ekko   like line of it_ekko.

select ebeln bukrs ekgrp
  from ekko
  up to 100 rows
  into corresponding fields of table it_ekko.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
  EXPORTING
*   DDIC_STRUCTURE         = 'EKKO'
    RETFIELD               = 'EBELN'
*   PVALKEY                = ' '
*    DYNPPROG               = sy-repid
*    DYNPNR                 = sy-dynnr
*   DYNPROFIELD            = 'EBELN'
*   STEPL                  = 0
    WINDOW_TITLE           = 'Ekko Records'
*   VALUE                  = ' '
    VALUE_ORG              = 'S'
    MULTIPLE_CHOICE        = 'X'
*   DISPLAY                = ' '
*   CALLBACK_PROGRAM       = ' '
*   CALLBACK_FORM          = ' '
*   MARK_TAB               =
* IMPORTING
*   USER_RESET             = ld_ret
  TABLES
    VALUE_TAB              = it_ekko
*    FIELD_TAB              = lt_field
*    RETURN_TAB             = it_return
*   DYNPFLD_MAPPING        =
 EXCEPTIONS
   PARAMETER_ERROR        = 1
   NO_VALUES_FOUND        = 2
   OTHERS                 = 3.

if sy-subrc ne 0.

endif.



Check out sap documentation and pattern details for function module f4if_int_table_value_request on website se80.co.uk