cancel
Showing results for 
Search instead for 
Did you mean: 

Print Report output on A4 paper

Former Member
0 Kudos

Hi Gurus,

How could I print output of report ie. list to A4 paper.

What settings need to be done. Is it Printer related or ABAP related.

Thank you.

Points guaranteed.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

DATA:L_PARAMS TYPE PRI_PARAMS,

L_VALID TYPE C.

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

IMMEDIATELY = 'X'

LINE_SIZE = 220

RELEASE = 'X'

MODE = 'CURRENT'

NO_DIALOG = 'X'

IMPORTING

  • OUT_ARCHIVE_PARAMETERS =

OUT_PARAMETERS = L_PARAMS

VALID = L_VALID

EXCEPTIONS

ARCHIVE_INFO_NOT_FOUND = 1

INVALID_PRINT_PARAMS = 2

INVALID_ARCHIVE_PARAMS = 3

OTHERS = 4.

IF SY-SUBRC <> 0.

ENDIF.

"But it will take default printer from user settings

NEW-PAGE PRINT ON PARAMETERS L_PARAMS NO DIALOG.

write : 'print is on'.

NEW-PAGE PRINT OFF.

Regards,

Omkar.

Answers (2)

Answers (2)

Former Member
0 Kudos

Printer related.

But it is a easy life since you are printing on A4 paper, don't make it complicated.

When printing ABAP list,

you just need to confirm the LINE-SIZE and LINE-COUNT within a A4 paper.

SAP will determine the most suitable format for you during printing.

Here is the candidate format for ABAP list.

X_44_120 - selected if LINE-COUNT <= 44 and LINE-SIZE <=120

X_58_170 - selected if LINE-COUNT <= 58 and LINE-SIZE <=170

X_65_132 - so on

X_65_200

X_65_255

X_65_512/2

X_65_80

X_90_120

Former Member
0 Kudos

Printer related, but you can pass Parameters from ABAP also to print in which format.

Regards,

Satish

Former Member
0 Kudos

how? tell me in brief.

Former Member
0 Kudos

Hi Shailesh,

This is the syntax

SUBMIT submitable TO SAP-SPOOL

SPOOL PARAMETERS print_parameters.

Check structure PRI_PARAMS.

Reward Points if this helps,

Satish