Skip to Content
author's profile photo
Former Member

For Refreshing a table display in ALV when data is chngd in maintainance vi

Hi All,

I am displaying the fields of a Ztable in a ALV report. A maintainance view call button is attached to that report through which data of Ztable can be changed.Prolem is that when after changing the data when I return back to report, changes are not reflected.

Kindly suggest to solve this problem.

I am using ALV display through class.

I have already used these functions in the else condition of IF GO_CUSTOM_CONTAINER IS INITIAL.

CALL METHOD go_grid->refresh_table_display.

CALL METHOD cl_gui_cfw=>flush.

For maintainance view I am using the function as

VIEW_MAINTENANCE_CALL on double clicking the maintain button.

Kindly suggest.

Ashutosh Kumar

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Oct 07, 2005 at 04:46 PM

    Ashutosh,

    Just calling the REFRESH method will not work. You need to re-fetch the data into the same internal table which you using the displaying the data in the grid.

    Probably you can write this data fetching as a subroutine and call this as soon as come back from the Maintenance screen. And updating the internal table, call the REFRESH method.

    This should work.

    Regards,

    Ravi

    Note : Please reward points if this helps.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 07, 2005 at 05:02 PM

    If you're using your ALV table only to display your Z-table, you can achieve a similar but more integrated result by allowing editing inside your ALV.

    Nevertheless, it requires a bit of effort, I don't deny it...

    Cheers,

    Add comment
    10|10000 characters needed characters exceeded