Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Row Editing

Former Member
0 Likes
987

Hi all,

If I edit multiple number of rows in an ALV Grid(suppose I use OOPS) , on using get_selected_rows

will I get the edited row and its data.

Tell me if I cannot get the edited data, how can I get it??

I know to make an ALV with certain edit enabled fields, but I cannot make the edited data reflect into the Internal table I used for displaying in ALV fn module.That is after editing some of the cells the changes I made must be made in the Internal table I used for displaying the ALV.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
916

Put the edited values back into the columns/rows of your internal table. Then REFRESH the ALV output...that will "reset" your display...how to refresh depends on which version of ALV or SALV you're using.

6 REPLIES 6
Read only

rainer_hbenthal
Active Contributor
0 Likes
916

Press save button.

Read only

Former Member
0 Likes
917

Put the edited values back into the columns/rows of your internal table. Then REFRESH the ALV output...that will "reset" your display...how to refresh depends on which version of ALV or SALV you're using.

Read only

0 Likes
916

Thanks for all the responses ..

but my question is ..how can I put the edited values back into my internal table????

Read only

0 Likes
916

Hi,

You need to call the method check_changed_data in the PAI of the screen. Changed data will be updated to your final table.

Check out below WIKI for sample code.

http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=61243570

Thanks,

Vinod.

Read only

0 Likes
916

Hi,

Use the method check_changed_data of the alv class CL_GUI_ALV_GRID.

Thanks,

Anju

Read only

Former Member
0 Likes
916

Hi,

You can use an 'UPDATE' button on application toolbar of ALV.

In user command event of ALV, update your internal table with the data edited on ALV screen

Thanks,

Hemant