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 USING FM

Former Member
0 Kudos
88

1) I want to send my output(alv),by print could you please guide me to take printout in alv using fm.

3 REPLIES 3

Former Member
0 Kudos
43

ALV_TREE_PRINT_SERVER

CKALV_USER_EXIT_PRINT

TAX_REP_PRINT_ALV_LIST_TITLE

TAX_REP_PRINT_N_ALV_LISTS

Reward points..

Former Member
0 Kudos
43

Hi,

Anyway if you want to print the ALV without display it on screen, you should transfer the coorect value to the structue IS_PRINT, this is help:

Print control parameter

PRINT

value set: SPACE, 'X'

'X' = the list is to be printed and not displayed on the screen. Other settings can be made in the print parameter screen.

NO_PRINT_SELINFOS

value set: SPACE, 'X'

'X' = do not print selection info (see LAYOUT-GET_SELINFOS)

NO_COVERPAGE

value set: SPACE, 'X'

'X' = do not print selection information and list status on a separate page.

NO_NEW_PAGE

value set: SPACE, 'X'

For internal use only

RESERVE_LINES

value set: 0, n

Not relevant for hierarchical-sequential lists and block lists.

n = number of lines to be printed by the user in the footer area in the Callback at the event END_OF_PAGE.

NO_PRINT_LISTINFOS

value set: SPACE, 'X'

'X' = Do not print list status (sort, subtotal and filter information).

NO_CHANGE_PRINT_PARAMS

value set: SPACE, 'X'

SPACE = (default) The output format (number of columns) is dynamically adjusted to the list width (max. 255).

'X' = The current print parameters are used. If the list is wider, the output width is not dynamically adjusted.

If you're using the method the parameter is IS_PRINT like LVC_S_PRNT.

Regards,

SHIVA(reward if helpful).

Former Member
0 Kudos
43

hi,

DATA: gd_prntparams type slis_print_alv.

call function 'REUSE_ALV_GRID_DISPLAY'

exporting

i_callback_program = gd_repid

i_callback_top_of_page = 'TOP-OF-PAGE'

is_layout = gd_layout

it_fieldcat = fieldcatalog[]

is_print = gd_prntparams

tables

t_outtab = it_ekko

perform build_print_params.

form build_print_params.

gd_prntparams-reserve_lines = '3'. "Lines reserved for footer

gd_prntparams-no_coverpage = 'X'.

endform.