Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV - Dynamic header?

Former Member
0 Kudos

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?

5 REPLIES 5

0 Kudos

Description is not clear..

More Details Please..

Former Member
0 Kudos

Hi,

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

Best Regards

0 Kudos

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?

Sandra_Rossi
Active Contributor
0 Kudos

Which ALV technology are you using?

pokrakam
Active Contributor
0 Kudos

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.