Skip to Content
author's profile photo Former Member
Former Member

Print Report output on A4 paper

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 09:16 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 09:08 AM

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

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 09:46 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.