Skip to Content
0

ALV - Dynamic header?

Sep 01, 2017 at 05:27 PM

73

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded

Which ALV technology are you using?

0
* Please Login or Register to Answer, Follow or Comment.

3 Answers

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

Description is not clear..

More Details Please..

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Sep 04, 2017 at 10:05 AM
0

Hi,

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

Best Regards

Show 1 Share
10 |10000 characters needed characters left 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?

0
Mike Pokraka Sep 06, 2017 at 11:05 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded