Application Development 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: 

Container refresh

Former Member
0 Kudos

Hi All,

I am working on a interactive OOALV, where I am using the handle_double_click event to get the details of a particular cell. When i go back to the original screen

and double click a different cell, in debugging mode I was able to get the correct values, but on the output it is only showing the previous value.

I am using the method set_table_for_first_display only to display the values.

Your inputs will be a great help to me.

Thanks in Advance.

Sudha

5 REPLIES 5

Former Member
0 Kudos

Hi Sudha ,

Are you changing the values of the table you are passing to the second screen.

And my sugestion wold be to use the method set_table.... only once after that just use the method refresh_table_display.

Do revert back in case of any further queries.

Regards

Arun

Former Member
0 Kudos

Hi,

In PBO module, include this as the last statement:

call method grid->refresh_table_display.

In PAI module, include this as the FIRST statement:

call method grid->check_changed_data.

marcelo_ramos
Active Contributor
0 Kudos

Hi,

Try to do in PBO as follow.

<b> IF custom_container IS INITIAL.

CREATE OBJECT custom_container

EXPORTING

container_name = cont_on_100.

CREATE OBJECT grid

EXPORTING i_parent = custom_container.

CALL METHOD grid1->set_table_for_first_display

EXPORTING is_layout = gs_layout

CHANGING it_fieldcatalog = it_fieldcat

it_outtab = ti_arquivo[]

it_sort = isort1[].

ELSE.

CALL METHOD grid->refresh_table_display.

ENDIF.</b>

Regards.

Marcelo Ramos

Former Member
0 Kudos

hi,

call the method refresh_table_display to refresh the values which are displayed on grid.........

<b>syantax:</b>

CALL METHOD grid->refresh_table_display.

in the above statement <grid> is the instance of the class CL_GUI_ALV_GRID.

the above method has no mandatory parameters.

now you call the event handler method for getting the exact cell values.

regards,

Ashok Reddy

Former Member
0 Kudos

Thanks for your promt reply. Appreciated!!