Skip to Content
avatar image
Former Member

Short dump on REUSE_ALV_GRID_DISPLAY

Hi all.

I've got an abap report with an ALV.

User works on it all the day and have to refresh data manytimes.

The report uses the REUSE_ALV_GRID_DISPLAY MF to refresh the grid with new data loaded in the internal table passed to MF. But after 50 calls to this MF, I've got a dump because of the MF wich calls screen without leave screen and overstack the 50 nested screens available.

I read many post about using leave screen statement, but I only call this Standard MF and can't call leave screen.

How can I solve this issue ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 01 at 01:23 PM

    Try the following search:

    sap oop ALV Grid

    Switch your programming and use the OOP version.

    If you prefer to use the FM search:

    reuse_alv_display too many calls

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 01 at 03:27 PM

    You don't need to call the function module each time you refresh. If you define a callback subroutine for user command, you just need to return the flag to refresh. This way, you'll avoid nesting calls:

    FORM yourcallbackname
          USING
            R_UCOMM     TYPE SYUCOMM
            RS_SELFIELD TYPE SLIS_SELFIELD.
      IF r_ucomm = 'ZYOURFCODE'.
        " here update the internal table of the ALV
        RS_SELFIELD-REFRESH = 'X'.
      ENDIF.
    ENDFORM.
    
    Add comment
    10|10000 characters needed characters exceeded