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

CL_GUI_ALV_GRID --database updates

Former Member
0 Likes
589

I want to use grip of type CL_GUI_ALV_GRID for user input for updating data in database ....

How to update databse data using grid ot type Cl_GUI_ALV_GRID

..Thanks

.Ashish

I want to use grip of type CL_GUI_ALV_GRID for user input for updating data in database ....

How to update databse data using grid ot type Cl_GUI_ALV_GRID

..Thanks

.Ashish

4 REPLIES 4
Read only

Former Member
0 Likes
533

This message was moderated.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
533

Look at SAP demo program BCALV_GRID_EDIT and use [search tools at sdn|https://forums.sdn.sap.com/search.jspa?objID=c42&q=CL_GUI_ALV_GRIDdatabaseupdate], there are many samples like [Get Changed Value In ALV Grid Dynamically|https://wiki.sdn.sap.com/wiki/display/ABAP/GetChangedValueInALVGridDynamically.]

Regards,

Raymond

Read only

Former Member
0 Likes
533

This is the ALV grid class. This means that takes the fieldcatalog (Technical description of the data) and the table data and display into a user friendly mode. Now based on this class you can build your own logic. You can create a Model Class that will be responsible for the DB updates.

1. Make the ALV editable or selectable. This is done via the LAYOUT.

2. Define a button responsible for the UPDATE or use an event from the ALV (You have not to register the EVENT in the ALV grid class it is already preregister).

3a. When the user press the button make a get the selected rows (there is a method from the CL_GUI_ALV_GRID) and for the relevant itab rows makes the DB updates.

3b. If an EVENT raised programmed the EVENT HANDLER with a relevant way as the step 3a.

With regard

George

Read only

Former Member
0 Likes
533

Thanks