Skip to Content
avatar image
Former Member

ALV - Dynamic header?

I'm relatively new to SAP, and I'm currently polishing off a program based on an ALV display.

The spec requires three variables to be shown in the header, above the grid. Currently I have those implemented by way of a string concatenation in HANDLE_TOP_OF_PAGE.

The problem is that these variables can be changed by the user after the initial ALV display, meaning that the versions shown in the header are no longer correct. Right now the only way to make these update is to close the program and reopen it.

Is there a way to force the header to update and reprint the variable values, rather than just the grid itself?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 04, 2017 at 09:42 AM

    Description is not clear..

    More Details Please..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2017 at 10:05 AM

    Hi,

    Maybe this : https://archive.sap.com/discussions/thread/660907 is what you are searching for :-)

    Best Regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I've tried implementing the fix shown in that link, though I also had to cobble some bits from other sources. The end result was that it would only load the new header *after* the information had been changed, so the first display still had the original look. Then, once it did update the header, it was completely reformatted and my custom toolbar buttons (which are used to make those mid-run edits) disappeared. My assumption is that the HTML style header completely overwrites all other content above the ALV, instead of just modifying the content added by HANDLE_TOP_OF_PAGE.

      Is there some way to limit what gets replaced by the HTML header once it refreshes?

  • Sep 06, 2017 at 11:05 AM

    I know it's kinda a bit late in the game, but in case it's an option this would be fairly straightforward with SALV, just reset the header whenever you refresh the data.

    Add comment
    10|10000 characters needed characters exceeded