Skip to Content
0
Former Member
Dec 22, 2010 at 02:10 PM

ALV - F4 issue - Unable to set the selected value back to right row

707 Views

Hello

I'm working on a ALV using OO . I have a column with F4 help . Im able to popup the F4 list and select from the F4 list using FM 'F4IF_INT_TABLE_VALUE_REQUEST'. Im fllowing BCALV_EDIT_08 for logic .

The issue is

-->Once i select a value in F4 pop up the value gets returned back only to the first row cell irrespective of the row from where i have called F4 .

-->The above happens inside the method ON_F4 where the f4_params-cs_row_no-row_id is always returning as '1' irrespective of the row from where i have prerssed F4 . Why is the ROW ID always appearing as 1 inside method ON_F4 . Please throw some light .

I have registered the event in PBO like

lt_f4-fieldname = 'NEWCMP'.

lt_f4-register = 'X'.

lt_f4-getbefore = 'X'.

lt_f4-chngeafter = 'X'.

INSERT TABLE lt_f4.

CALL METHOD cl_grid1->register_f4_for_fields

EXPORTING

it_f4 = lt_f4[].

thanks

J