Skip to Content
0

Short dump on REUSE_ALV_GRID_DISPLAY

Feb 01 at 11:41 AM

47

avatar image
Former Member

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 ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Michelle Crapo Feb 01 at 01:23 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Sandra Rossi Feb 01 at 03:27 PM
0

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.
Share
10 |10000 characters needed characters left characters exceeded