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: 

Display the changed data in the oops grid display

Former Member
0 Kudos

Hi Gurus,

I am displaying editable fields using CALL METHOD g_grid2->set_table_for_first_display in the output.

I am changing some fields and click on save button. Once the save button is clicked on, it will do some validations and again display the error fields with comment in the last field.

Upto here it is working fine, but again if I change the data, the changed data doesn't reflect in the output.

Do we need to refresh the data or is there any other method to display the refreshed data.

Please help.

Regards

Mac

1 ACCEPTED SOLUTION

former_member555112
Active Contributor
0 Kudos

Hi,

In the PAI, call the method check_Data_Changed.

Regards,

Ankur Parab

3 REPLIES 3

former_member555112
Active Contributor
0 Kudos

Hi,

In the PAI, call the method check_Data_Changed.

Regards,

Ankur Parab

0 Kudos

Yep I checked it. It is showing the changed data in the Int. table in debugging mode. but after this check I am validating and again changing a field another column. That change is not getting captured.

Any help on this.

Regards

mohan

0 Kudos

Hi Mac,

That means you mean to say after checking the check_changed_data you are modifying the data in the internal table,

So after this change modify your internal table and refresh your ALV using

CALL METHOD gv_alv_grid->refresh_table_display

EXCEPTIONS

finished = 1

OTHERS = 2.

and pass on your internal table to display ALV

CALL METHOD gv_alv_grid->set_table_for_first_display

EXPORTING

  • IS_LAYOUT = LS_LAYOUT

it_toolbar_excluding = lt_exclude

it_special_groups = gt_fieldgrp

CHANGING

it_fieldcatalog = it_fieldcat

it_outtab = it_outtab.

Hope it helps you,

Regards,

Abhijit G. Borkar