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

how to update custom table with alv grid having editable column

Hi experts,

i want update the custum table with the values i entered in editable column in alv grid

i m using function module REUSE_ALV_GRID_DISPLAY.

and i have created a custon button 'update ' to update data .

although data is updated with records on alv grid.....as i pass the internal table to modify it......but how to update the values of editable column in custom table.....


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Mar 13, 2014 at 11:44 AM

    hi ,

    You can use the GET_SELECTED_ROWS in cl_gui_alv_grid class. Through the index capturing the values of selected rows .

    Loop the selected fields copy them in internal table and save it to the table.

    refer the link : ALV-Editing and saving the edited values in Database(OOPS) - Code Gallery - SCN Wiki

    Regards,

    Sivaganesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 13, 2014 at 11:58 AM

    Look at SAP sample reports like BCALV_GRID_EDIT.

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 13, 2014 at 12:02 PM

    Hi ankush ,

    use this :

    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'

    IMPORTING

    e_grid = ref1.

    CALL METHOD ref1->check_changed_data.



    hope this will help you



    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.