2009 Aug 04 8:23 AM
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
2009 Aug 04 9:59 AM
2009 Aug 04 10:04 AM
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
2009 Aug 04 6:08 PM
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
2010 Jan 11 5:21 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |