2008 Aug 11 9:33 AM
Hi abap gurus,
I am trying to use the class cl_gui_alv_grid . Im that class there is one method called SAVE_DATA . This is a protected method . SoI am not able to use that .
My queries are :
1> How to use a protected method from a class ?
2> Is there any other way to update the output internal table according to the changes done in the grid ?
Hi abap gurus,
I am trying to use the class cl_gui_alv_grid . Im that class there is one method called SAVE_DATA . This is a protected method . SoI am not able to use that .
My queries are :
1> How to use a protected method from a class ?
2> Is there any other way to update the output internal table according to the changes done in the grid ?
2008 Aug 11 9:37 AM
>
> Hi abap gurus,
>
> I am trying to use the class cl_gui_alv_grid . Im that class there is one method called SAVE_DATA . This is a protected method . SoI am not able to use that .
>
> My queries are :
>
> 1> How to use a protected method from a class ?
> 2> Is there any other way to update the output internal table according to the changes done in the grid ?
The table contents are automatically updated when you use the public method check_changed_data. (This actually calls the SAVE_DATA method). So no need to use the protected method directly. A protected method can only be used within the class, or one of its subclasses.
CHECK_CHANGED_DATA also does the FLUSH for you as well.
matt
2008 Aug 11 12:03 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |