Problem with F4 Help
I am Using F4IF_INT_TABLEVALUE_REQ for search help,
i have populated the itab as per my requirement,i have
exported KUNNR for retfield(which i need as F4 help) and also tables
VALUE_TAB = ITAB,and DDIC_STRUCTURE = 'KNA1'
my program has no syntax errors but
it is giving run time error.what could be the problem am i exporting wrong data.
*There is no need to write the code for F4 help for kunnr field.
*if you want f4 help for other field like NAME then you can use following example
DATA: BEGIN OF it_kna1 OCCURS 0,
name1 TYPE kna1-name1,
END OF it_kna1.
parameters: p_kunnr type kna1-kunnr.
PARAMETERS: p_name1 TYPE kna1-name1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name1.
SELECT name1 FROM kna1 INTO TABLE it_kna1 UP TO 100 ROWS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
retfield = 'NAME1'
dynprofield = 'P_NAME1'
value_org = 'S'
dynpprog = sy-repid
dynpnr = sy-dynnr
value_tab = it_kna1.