Skip to Content
author's profile photo Former Member
Former Member

issue in alv oops report

hi all,

i have requirement to d update , delete and insert a customized table through report .. i created the report and able to insert the record and delete , the fields displayed in the report output are order number, description and functional location in the report output . the order number is editable field .

my issue when we enter any order in new row i want to display the other fields automatically when we press enter key in keyboard..

Kindly let send the code

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 11, 2009 at 09:39 PM

    First of all you should have an event handler method for data changed event of cl_gui_alv_grid

    then you will have to use cl_gui_alv_grid->check_changed_data( ) method for triggering the data changed event

    register the event_enter of grid using

    l_grid->register_edit_event(

    EXPORTING

    i_event_id = cl_gui_alv_grid=>mc_evt_entr ).

    Inside the event handler method you have access er_data_changed .

    then use

    LOOP AT er_data_changed->mt_good_cells INTO l_good.

    er_data_changed->get_cell_value(

    EXPORTING

    i_row_id = l_good-row_id

    i_fieldname = 'ORDER'

    IMPORTING

    e_value = l_order ) .

    if l_order is not initial.

    select the other field values from l_order

    then use

    er_data_changed->modify_cell(

    i_row_id = l_good-row_id

    i_fieldname = 'DESCRIPTION'

    i_value = l_description ).

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.