Code: Alles auswählen.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name.
DATA ls_shlp TYPE shlp_descr.
DATA lt_return_values TYPE TABLE OF ddshretval.
DATA ls_interface TYPE ddshiface.
FIELD-SYMBOLS <ls_return_values> TYPE ddshretval.
* Die Beschreibung der Suchhilfe besorgen
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = 'STXH'
IMPORTING
shlp = ls_shlp.
* Rückgabefeld markieren.
ls_interface-valtabname = 'X'.
ls_interface-valfield = 'X'.
MODIFY ls_shlp-interface FROM ls_interface
TRANSPORTING valtabname valfield
WHERE shlpfield = 'TDNAME'.
* Den F4-Ablauf starten
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = ls_shlp
TABLES
return_values = lt_return_values.
READ TABLE lt_return_values ASSIGNING <ls_return_values> INDEX 1.
p_name = <ls_return_values>-fieldval.