ABAP screen F4 help call the function to implement the data in the values table it's best to refer to the system field otherwise, if it's just type C, it might not show.
The Show Table
Data:begin of t_tab occurs 0,
Matnr TYPE Mara-matnr,
MAKTX TYPE MAKT-MAKTX,
END of T_tab.
"To use the F4 screen element
Parameters:p_matnr () TYPE c.
"Monitoring F4 Events
At Selection-screen in Value-request for P_MATNR.
PERFORM Frm_help.
*&---------------------------------------------------------------------*
*& Form Frm_help
*&---------------------------------------------------------------------*
* Text
*----------------------------------------------------------------------*
*-P1 text
* <--P2 text
*----------------------------------------------------------------------*
FORM Frm_help.
"Fetch number
SELECT *
From Makt
into corresponding fields of TABLE T_tab
Up to ten ROWS.
The Invoke presentation function
Call FUNCTION ' F4if_int_table_value_request '
Exporting
Retfield = ' matnr ' table to display fields
Dynpprog = sy-repid "Return only program
DYNPNR = Sy-dynnr "screen
Dynprofield = ' P_matnr ' "place to backfill values in the page
value_org = ' S ' "Display type
TABLES
Value_tab = T_tab. "The inside table of the form help passed in
IF SY-SUBRC <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty number Sy-msgno
With Sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
EndForm.
ABAP screen F4 help call function implementation