2006 Dec 18 8:15 AM
Hello,
I am using an editable OO ALV Grid for updating an internal table. I am using an instance of the class cl_alv_changed_data_protocol to track the changes. I have to validate the user entries. Can smb tell me where can I find the ALV displayed(modified & nonmodified data) ? I thought that MT_GOOD_CELLS and MT_MOD_CELLS will be enough, but it seems that MT_GOOD_CELLS is not returning all table data, in my case is returning only the modified data, I don't really understand why. Where can I find the non-modified rows?
Hello,
I am using an editable OO ALV Grid for updating an internal table. I am using an instance of the class cl_alv_changed_data_protocol to track the changes. I have to validate the user entries. Can smb tell me where can I find the ALV displayed(modified & nonmodified data) ? I thought that MT_GOOD_CELLS and MT_MOD_CELLS will be enough, but it seems that MT_GOOD_CELLS is not returning all table data, in my case is returning only the modified data, I don't really understand why. Where can I find the non-modified rows?
2006 Dec 18 8:40 AM
Hi George,
Please refer this program BCALV_EDIT_03.
regards
Ashutosh
PS: mark helpful answers.
2006 Dec 18 9:10 AM
Hi, I have checked BCALV_EDIT_03, but I did not find the answer. How can I validate a new row or a modified one against the rest of my table? I expected to find in ref_data_changed->mt_good_cells all table data , minus the new one and the modified one? What is the difference between MT_GOOD_CELLS and MT_MOD_CELLS ? Both returns only the modified fields.
2006 Dec 18 9:17 AM
Hi George ,
Check out the version of the SAP release .If you are in 4.6 c then in the CL_GUI_ALV_GRID ,you will have event data_changed_finish we will have a parameter et_good_cells which will have all the records from the screen.
Otherwise in 4.6c you will have to use mod_cells and check with table which you will for output table for displaying the grid.
Please reward if useful.
2006 Dec 18 9:19 AM
hi,
BCALV_EDIT_01 This report illustrates the simplest case of using an editable/noneditable ALV Grid Control.
BCALV_EDIT_02 This report illustrates how to set chosen cells of an ALV Grid Control editable.
BCALV_EDIT_03 In this example the user may change values of fields SEATSOCC (occupied seats) and/or PLANETYPE.
The report checks the input value(s) semantically and provides protocol messages in case of error
BCALV_EDIT_04 This report illustrates how to add and remove lines to a table using the ALV Grid Control and how to
implement the saving of the new data.
BCALV_EDIT_05 This example shows how to use checkboxes within an ALV Grid Control. You learn:
(1) how to define a column for editable checkboxes for an attribute of your list
(2) how to evaluate the checked checkboxes
(3) how to switch between editable and non-editable checkboxes
BCALV_EDIT_06 This example shows how to define a dropdown listbox for all cells of one column in an editable ALV
Grid Control.
BCALV_EDIT_07 This example shows how to define dropdown listboxes for particular cells of your output table.
BCALV_EDIT_08 This report implements an ALV Grid Control with an application specific F4 help. The following aspects
are dealt with:
(1) how to replace the standard f4 help
(2) how to pass the selected value to the ALV Grid Control
(3) how to build an f4 help, whose value range depend on a value of another cell.
Regards
Anver
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |