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

update teh internal table from the grid data

Former Member
0 Likes
485

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 ?

2 REPLIES 2
Read only

matt
Active Contributor
0 Likes
452

>

> 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

Read only

Former Member
0 Likes
452

Thank u