Hi everyone,
I created an ALV using OO.
In a cell of the ALV, I implemented the F4 method.
When I click on the search help (F4) of the cell, I get the window and select a row but nothing appears back in the cell of the ALV.
Here is the code:
TYPES: BEGIN OF values,
ebeln TYPE ebeln,
bukrs type bukrs,
END OF values.
DATA: progname TYPE sy-repid VALUE sy-repid,
dynnum TYPE sy-dynnr,
values_tab TYPE TABLE OF values.
DATA: lt_ret_tab TYPE TABLE OF values.
SELECT *
FROM ekko
INTO CORRESPONDING FIELDS OF TABLE lt_ret_tab
WHERE ebelnfikrs = '12345678'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BUKRS'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'BUKRS'
value_org = 'S'
TABLES
value_tab = lt_ret_tab.
Thanks.
Regards.