Application Development 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: 

Anyone use ALV grid as input/edit to save values to database?

Former Member
0 Kudos

I am trying to use ALV grid as as a display and edit function back to the database. Is this possible?

4 REPLIES 4

Former Member
0 Kudos

In short, it is possible. You need to use the USER_COMMAND parameter and write your update logic there.

Srinivas

andreas_mann3
Active Contributor
0 Kudos

Hi Scott,

have a look at reports beginning with BCALV_EDIT..

regards Andreas

Former Member
0 Kudos

Hi,

If you are using object oriented ALV, then define and implement method handle_data_changed. Internal table of type lvc_t_modi takes care of updated cell values like row ID, fieldname, actual value. Using this table you can make changes in database.

cheers,

-Tejal

ssimsekler
Active Contributor
0 Kudos

Hi Scott

You can refer to the tuorial <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf">"An Easy Reference for ALV Grid Control"</a>.

*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>