09-01-2017 6:27 PM
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?
09-04-2017 10:42 AM
09-04-2017 11:05 AM
Hi,
Maybe this : https://archive.sap.com/discussions/thread/660907 is what you are searching for 🙂
Best Regards
09-05-2017 9:40 PM
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?
09-06-2017 6:41 AM
09-06-2017 12:05 PM
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.