F4IF_INT_TABLE_VALUE_REQUEST.md
F4IF_INT_TABLE_VALUE_REQUEST
Questa function viene utilizzata per la compilazione custom del search help su parametri di input di un report.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_juri.
DATA: lt_value_selected TYPE TABLE OF ddshretval.
SELECT DISTINCT ( taxjurcode ) , ( name1 ) FROM adrc
WHERE country EQ 'IT' AND taxjurcode IS NOT INITIAL INTO TABLE @DATA(lt_adrc).
SORT lt_adrc BY name1.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'TAXJURCODE' " Name OF return FIELD IN FIELD_TAB
dynpprog = SY-repid " Current program
dynpnr = SY-dynnr " Screen number
dynprofield = 'P_JURI' " Name OF screen FIELD FOR VALUE return
value_org = 'S' " VALUE return: C: cell BY cell, S: structured
display = 'F' " Override readiness FOR input
TABLES
value_tab = lt_adrc " Table OF values: entries cell BY cell
return_tab = lt_value_selected " Return the selected VALUE
.