Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: Transfer modified line to handle_data_changed method

$
0
0

after the SET HANDLER go_event_receiver01->handle_onf4 FOR alvgrid

perform register_f4_fields .    "set cells with search help

 

 

 

I use this logic

FORM f_handle_onf4

*§5 define fields and field-symbols for data-update
    field-symbols: <itab> type lvc_t_modi.
    data: ls_modi type lvc_s_modi.
    data: ls_f4 type ddshretval,
          lt_f4 type table of ddshretval.
* customised f4-help
    call method my_f4
      exporting
        sender        = sender
        es_row_no     = es_row_no
        er_event_data = er_event_data
        et_bad_cells  = et_bad_cells
        e_display     = e_display
        e_fieldname   = e_fieldname
      importing
        lt_f4         = lt_f4.

*§6 assign the cell table fieldsymbol to the dereferenced data table and
*   fill the table.
    assign er_event_data->m_data->* to <itab>.

    read table lt_f4 into ls_f4 with key fieldname = fieldname.
    if not ls_f4 is initial.
      ls_modi-row_id    = es_row_no-row_id.
      ls_modi-fieldname = fieldname.
      ls_modi-value     = ls_f4-fieldval.
      append ls_modi to <itab>.
    endif.
**§3 set attribute m_event_handled of er_event_data to avoid standard
**   f4-help.
    er_event_data->m_event_handled = 'X'.

 

 

 

pls try this and let me know if it helps.

 

 

Rgds,

K.S


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>