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

ALV Report printing to A3 format

Hi

We have written an ABAP ALV report to extract information from any number of Sales Orders from a given set of criteria. A number of layouts have been created. The layouts have been defined by the business (as they wanted the same format as they were previously used to). The default layout is about 337 columns wide, thus sending it over the 255 A4 limit. I can print the layout on an A4 landscape on 2 sheets of paper, but this is not practical when you have up to 30 pages of content (thus 60 sheets of A4 paper).

As such, I am experimenting with printing to A3. This is what I have tried so far (from information gleaned from Forum posts and elsewhere):

Created a new Page Type (used template DINA3 to create ZDINA3.

Created a new Format Type (e.g. Z_65_400_A3) and use ZDINA3 with 65 rows and 400 columns.

Assigned this new Format Type to a Device Type, in this case, SWIN.

In the Device Type, I have had to change the List Handler printer driver to "Print driver for SWIN using SAPLPD/Windows", otherwise I end up with 3 lines.

I have also set the paper size on the printer to A3, but nothing else. Leaving this as A4 results in an A4 print!

I have set up a number of Escape characters in the Device Type configuration:

Printer Initialzation

  1. SAPWIN data stream

\e%SAPWIN%

\i<::XPAGES>

\i<::XPGINIT>

\i<::XPARAM>

\i<::XLINEMOD>

\i<::XFONT>

End Of Page

\f

End of Line

\n

XLINEMOD: Line handling

##usage: Line handling

##DO NOT CHANGE the first two lines!

  1. output complete line with one call (do not use for proportional fonts)

\eOa1

XPARAM: Local settings

##usage: Local settings

##DO NOT CHANGE the first two lines!

  1. Schrift 5 Punkt einstellen.

\eS92X

#8,5 lpi

\el8.5;

XPGINIT: Orientation

##usage: Orientation

##DO NOT CHANGE the first two lines!

  1. Landscape-Mode

\ePL

I have tried to use the same example as http://www.sap-img.com/basis/how-can-i-print-a3-format-in-sap.htmhttp://www.sap-img.com/basis/how-can-i-print-a3-format-in-sap.htm">http://www.sap-img.com/basis/how-can-i-print-a3-format-in-sap.htm> but although I am getting an A3 sheet of paper, there are still issues with it:

Portrait instead of Landscape

Text appears to be double line spaced

Font is very small (believe this can be resolved by specifying the size of a font)

Firstly, any tips or tricks on printing to A3?

Secondly, what is the List Driver checkbox used for on the Format Type (other than to show the portrait and landscape page types)?

I do tend to scan these forums before posting, but in this case I have not managed to resolve this by looking in the Forum or elsewhere.

Many thanks

Nick

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 10, 2008 at 03:20 AM

    Hi

    I am facing a similar problem as yours, but I have to do the contrary, printing the Grid on several pages.

    >> I can print the layout on an A4 landscape on 2 sheets of paper, but this is not practical

    >> when you have up to 30 pages of content (thus 60 sheets of A4 paper).

    Can you tell me how you print the grid on several pages ?

    You may like to refer to my question at

    [ALV Grid Printing

    ]

    Please advice. Thanks,

    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.