Application Development and Automation 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: 
Read only

HTML Header using classes

Former Member
0 Likes
592

Calling all gurus

I've gone through SAP Controls Workshop (by Harald Röser) and it is a really good book.

So I based my report output design on the classes way for ALV grid. Everything except for printing is perfect. I've defined event classes for

TOP_OF_PAGE

AFTER_USER_COMMAND

HANDLE_TOOLBAR.

The printing icon currently active is on my ALV grid toolbar. This toolbar is between the HTML header and the ALV grid and I've added extra pushbuttons to it. The main toolbar printing icon is not active and even if I do activate, I'd still have to catch this as a user command and deal with the printing.

I'd like to know how it is done in the REUSE_ALV_GRID_DISPLAY, but that function drills down in hundreds of lines of code, methods, functions etc to perform the printing routine. I urgently have to find a solution or revert back to the function. Please advise. Thank you. Adrian

1 REPLY 1
Read only

Former Member
0 Likes
311

In addition to the 3 events I registered, the PRINT_TOP_OF_LIST event also has to be set e.g. SET HANDLER OBJ_EVENT_RECEIVER->PRINT_TOP_OF_LIST FOR OBJ_GRID1. This then is defined and implemented in the local class and, as if by magic, Bob's your uncle. Thanks to Elan Balasubramanian.