Skip to Content
0
Former Member
Feb 20, 2006 at 11:51 AM

Vertical Alignment of the report list printing

192 Views

Dear All,

In my report output screen, the data is coming correctly, but when I take print out in paper, the vertical alignment (lines) are not coming properly.

Kindly let me know how to get the vertical line alignment correctly. I am using the following code presently.

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'PRNT'.

DATA: l_params TYPE pri_params,

l_valid TYPE c,

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

destination = 'LPIN'

copies = 1

immediately = 'X'

layout = 'X_65_132'

line_count = 65

line_size = 220

release = 'X'

mode = 'CURRENT'

no_dialog = 'X'

IMPORTING

out_parameters = l_params

valid = l_valid

EXCEPTIONS

archive_info_not_found = 1

invalid_print_params = 2

invalid_archive_params = 3

OTHERS = 4.

l_params-prsap = ' '.

NEW-PAGE PRINT ON PARAMETERS l_params NO DIALOG.

PERFORM display_data1.

NEW-PAGE PRINT OFF.

ENDCASE.

WRITE:/2(165) sy-uline.

write:/2 sy-vline,text-007, "Material Name,

43 sy-vline,text-008, "Batch No

55 sy-vline,text-009, "Quantity

72 sy-vline,text-010, "Unit

79 sy-vline,text-011, "Ship-to Address

151 sy-vline,text-012, "Shipping Doc

166 sy-vline.

WRITE:/2(165) sy-uline.

LOOP AT g_t_final ASSIGNING <fs_final>.

WRITE:/2 sy-vline, <fs_final>-maktx under text-007,

43 sy-vline, <fs_final>-charg under text-008,

55 sy-vline,<fs_final>-lgmng UNIT mara-meins under text-009,

72 sy-vline, <fs_final>-meins under text-010,

79 sy-vline, <fs_final>-name under text-011,

151 sy-vline, <fs_final>-vbeln under text-012.

166 sy-vline.

WRITE:/2(165) sy-uline.

ENDLOOP.

Many Thanks,

Ranjan