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: 

How to print several ALV one one page

Former Member
0 Kudos

Hi.

This is my first post here. I have a problem, because I want to print one one page for example 2 alv grid or other component based on containers (like charts). This is big problem for me.

If anybody has any idea, please help me.

Thanks for help -

Daniel

2 REPLIES 2

Former Member
0 Kudos

Hi Daniel,

Welcom to SDN.

You need to use ALV Block for displaying multiple grids in one page.

REUSE_ALV*BLOCK*APPEND

http://www.geocities.com/mpioud/Z_ALV_LIST_BLOCK.html

Or use OO ALV Grid Controls and display two grids in one screen. A example of the same is shown below

http://www.geocities.com/mpioud/Z_DEMO_2_ALV_LIST.html

http://www.geocities.com/mpioud/Z_ALV_GRID_AND_POPUP.html

Refer the sample code:

CLEAR w_event.

w_event-name = slis_ev_top_of_page.

w_event-form = 'TOP_OF_PAGE'.

APPEND w_event TO i_events1.

CLEAR w_event.

w_event-name = slis_ev_top_of_page.

w_event-form = 'XTOP_OF_PAGE'.

APPEND w_event TO i_events2.

DATA: lv_repid LIKE sy-repid.

lv_repid = sy-repid.

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'

EXPORTING

i_callback_program = lv_repid

i_callback_user_command = 'USER_COMMAND'

i_callback_pf_status_set = 'PF_STATUS'.

*-- Vendor Schedule List

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'

EXPORTING

it_fieldcat = i_field_cat1

is_layout = w_lay_out1

i_tabname = '<I_TABLE>'

it_events = i_events1

TABLES

t_outtab = <i_table>.

*-- Error Lsit display

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'

EXPORTING

it_fieldcat = i_field_cat2

is_layout = w_lay_out2

i_tabname = 'I_ERROR'

it_events = i_events2

TABLES

t_outtab = i_error[].

w_print-reserve_lines = 2.

w_print-no_print_listinfos = c_x.

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'

EXPORTING

is_print = w_print.

ENDFORM. " f0504_create_list

*-- Top of Page

FORM top_of_page.

WRITE: sy-title.

ENDFORM.

----


  • FORM xtop_of_page *

----


  • ........ *

----


FORM xtop_of_page.

WRITE: 'Error Records'.

ENDFORM.

<b>Reward points if this Helps.

Manish</b>

0 Kudos

This method can do this with charts?

I do not want to have "ASCII" charts .