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
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!
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!
Schrift 5 Punkt einstellen.
\eS92X
#8,5 lpi
\el8.5;
XPGINIT: Orientation
##usage: Orientation
##DO NOT CHANGE the first two lines!
Landscape-Mode
\ePL
I have tried to use the same example as <a href="http://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</a> 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

Hi
Due to getting no joy with this, I ended up creating an A3 Smartform and using a Windows printer capable of printing it. I also have the option of an A4 or A3 sheet in the Selection Screen, so this gives me the output in the format that was needed.
Defining a Printer Output definition proved too tricky and I had to find a way to do it.
Whether you can use a Smartform to print your ALV grid across several pages I do not know, but might be worth considering. I used a custom print button to trigger the correct page size (as selected on the Selection Screen).
Regards
Nick

Similar Messages

  • Problem in ALV report printing

    Hi,
    I am facing issue while printing the ALV report. The no. of columns in output are dynamic.
    System is giving the printout for 9 columns . If no. of columns are increasing than its printing only one line with garbage values.
    Can anybody help to fix this issue. We need print of 27 (3 static + 24 dynamic (for 12 months)) columns in one go.
    Thanks in advance,
    Vijeta
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Jun 9, 2009 9:30 AM

    Hi
    The font size depends on the format you've choosen for the print.
    The abap list arranges the page as grid: colunmXrow.
    Every colunm of a page means a character.
    If you use the standard format X_65_200, it means you're page is arranged for 65 row and 200 colunm:
    that means the size of a character is optimized to can print 200 chararcter in a A4 page.
    If you use the standard format X_65_132 it means you're page is arranged for 65 row and132 colunm:
    that means the size of a character is optimized to can print 132 chararcter in a A4 page.
    So that mean the size of format X_65_132 will be bigger than X_65_200, because in the same space (page A4) it needs to write 132 char instead of 200.
    If your report print NN char, u should use the format wiith number colunm is closer to NN.
    If there isn't a format or u use the first available format or u create a new one by trx SPAD.
    Max

  • ALV Report Print Problem.

    Hi,
    When I Print any ALV Report then In the First Row BackColor is white,
    but in Second it is Gray,and this alternative for all remaining rows,
    How Can I SET it to White For ALL Rows.
    Thx,
    Hitesh Jain.

    Hi Jain,
    I'm not aware of a way to wrap the test or set break points in an ALV report.  Typically I just try to reduce the number of columns to print and determine if the data is truly needed or just redundant.
    To change the font, you need to change the Format setting.  This setting is in the same popup box I described earlier.  This time under General Properties, double click on Format.  Just play around with the different Format options loaded.  If you need additional formats, you should work with your BASIS team because it depends on the Output Devices that are loaded in your system. 
    Otherwise, you may just need to export the ALV report into Excel to make it "pretty".  In Excel, you could create a macro to automate your formatting steps.  Just a thought.
    Good luck,
    Cindy

  • ALV Report Print

    Hi All,
    can any one tel the solution fort me
    is there any function module to print ALV report with out giving print option manually( user press print button)

    Hi,
    execute that report and on output list GOTO LIST->PRINT.
    OR
    if u want to print the code itself then PROGRAM->PRINT.
    In the output screen
    GOTO LIST IN THE MENU
    SELECT EXPORT IN IT
    THEN SELECT EXPORT SPREAD SHEET
    to get other basic format for the alv output.
    -Thanks & Regards
    Saurabh Goel

  • Alv report Print out Problem

    Hi Experts,
       I am having problem while taking print out of Alv report format. In that report, 1 column contains  Unit  Values.
    Eg.  Unit value - 'LE' , AFTER USING CONVERSION EXIT LOGIC it is converted into 'AU'  which is finally displayed in the Alv -Report display format. 
    while taking Print-out of that report , that field Unit Value 'AU' is Shown in this format  "****'.
    Please give me your Valuable Suggestions.
    Thanks and Regards
    BalaNarasimman M

    while defining filed catalog define the data type also
      clear l_fieldcat.
      l_fieldcat-fieldname  = 'MEINS'.
      l_fieldcat-datatype = 'UNIT'.
    l_fieldcat-no_out     = ' '.
      l_fieldcat-do_sum = 'X'.
      l_fieldcat-seltext_l  = 'UOM'.
      append l_fieldcat to p_fieldtab.
    may be it would help.
    anya

  • ALV report - Print issues

    When trying to print an ALV report (Ctrl+P), printer has issues due to the shading (backgound colors) of the report.
    So here is my question,
    Is there a way to supress the report formatting while printing?
        or
    Can you convert an ALV into an unfomatted basic report?

    In the output screen
    GOTO  LIST IN THE MENU
    SELECT EXPORT IN IT
    THEN SELECT EXPORT SPREAD SHEET
    to get other basic format for the alv output.

  • ALV Report output in Excel format

    Hi ,
    I am facing a different behaviour in two computers , while trying to take an Excel format of an ALV report output. After generating the ALV output ,in one , when I click on the Excel Format button - the Excel spreadsheet opens with the output data. In the second computed , under the same action , a blank Excel sheet opens .
    Could someone tell me a solution . What aspect is responsible for this ?
    Regards ,
    Sujata

    Reduce the MACRO security settings in the Excel to Medium.
    Open an execl sheet, Chose from menu Tootls->Macro->Security.
    Chose the radio-buton medium. Close the file and all excel applications.Then try downloading again.
    Regards,
    Ravi

  • ALV Report Print problem after 255 character line size

    Hi ABAP Gurus,
    I have created one alv report where i am getting output more then 255 character line size.
    so whenever i tried to print this report it print only line upto first 255 character and truncated after it in printing.
    is there any way i can print this report without truncation ....
    Thanks,
    Jack

    no there is no such way because you acan print at most 99 columns and utmost 255 characters .
    and alternative is take your filed in separate screen and make it appear through hotspot in another filedcatalog.then u will get more space .
    reward if useful
    keep rockin
    vivek

  • ALV report Print out.

    Hi,
    I have developed a ALV report .
    I also want to take the print out of this report.
    How can i do this.

    Hi,
    Refer this code
    DATA : wa_variant  TYPE disvariant,       "Work area for variant
           wa_variant1 TYPE disvariant,       "Work area for variant
           wa_layout   TYPE slis_layout_alv,  "Work area for layout
           wa_print    TYPE slis_print_alv,   "Work area for print
    *&      Form  sub_alv_display                                          *
    This form displays the output using REUSE_ALV_GRID_DISPLAY          *
    function module                                                     *
    FORM sub_alv_display .
    *--Local Internal Table
      DATA : li_sort  TYPE slis_t_sortinfo_alv.
    *--Define print list
      wa_print-no_print_listinfos = c_chk.
      wa_print-no_coverpage = c_chk.
    *--If the No zero stock lines is checked in the selection screen
      IF  p_sline IS NOT INITIAL.
        DELETE i_final WHERE einme = c_zero.
      ENDIF.
      IF NOT i_final[] IS INITIAL.
    *--Call the function module to display the ALV report
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program = v_repid
            is_layout          = wa_layout
            it_fieldcat        = i_fieldcat
            i_default          = c_chk
            i_save             = c_save
            is_variant         = wa_variant
            it_events          = i_events
            is_print           = wa_print
            it_sort            = li_sort
          TABLES
            t_outtab           = i_final
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ELSE.
    *--No data found for the given selection criteria.
        MESSAGE i001.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                                  "sub_alv_display
    Regards,
    Prashant

  • Download alv report output to excel format with out header line

    Hi experts,
    i want to download a alv report output into excel formatt with out the header line but it has to download including field description. as this output will fed into another transaction, the downloaded excel file should be with out header line.
    fro eg:
    Report   : Zabc                      ABAP Development          Page  :     1
    Run Date : 12/14/06                                                     System: UD400 
    Run Time : 08:45:37
    this header details should not be downloaded into the excel file.
    could somebody help me please.
    thanks
    deepu

    hi jayanti,
    thanks for your response.
    i have delclared all the field types as character but still it is not downloading and it 's sy-subrc is 4... the code is as below.
    *field names
      lt_fieldnames-value = 'Material Number'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Plant'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Group'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Description'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'UOM'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Price Unit'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Type'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'X-Plant Status'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Valuation Class'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_avmng.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_avntp.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Latest PO Qty'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Latest PO Cost'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'PO Creation Date'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_fcaqt.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Prev. Yr. Std. Cost'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_stcst.
      APPEND lt_fieldnames.
      CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
        EXPORTING
          file_name                       = 'XLSHEET'
        CREATE_PIVOT                    = 0
        DATA_SHEET_NAME                 = ' '
        PIVOT_SHEET_NAME                = ' '
        PASSWORD                        = ' '
        PASSWORD_OPTION                 = 0
        TABLES
        PIVOT_FIELD_TAB                 =
          data_tab                        = t_output1
          fieldnames                      = lt_fieldnames
        EXCEPTIONS
          file_not_exist                  = 1
          filename_expected               = 2
          communication_error             = 3
          ole_object_method_error         = 4
          ole_object_property_error       = 5
          invalid_pivot_fields            = 6
          download_problem                = 7
          OTHERS                          = 8
      IF sy-subrc <> 0.
        MESSAGE e001 WITH 'Data could not be downloaded'.
      ENDIF.
    ENDFORM.                               " z_dwn_xl
    thanks
    deepu

  • Apps report print on PDF format

    Hi all,
    I want to print my report from apps in PDF format, so can anyone tell me how to print report from apps in PDF format.
    Is there any document ID in metalink or can anyone tell me the complete steps for taking report in PDF format.
    Thanks & Regards

    In the earlier version of apps (before 11.5.10), we used to do it using bitmap reports. Now we can use XML Publisher, it is easier to design the layout in rtf rather than bitmap report (rdf).
    Check Metalink Note: 278727.1 for more information.
    HTH

  • Alv report print problems

    Hi all
    I have a problem when i print my alv grid report it first prints the title page then the revelent pages can i remove that title page.
    thanks

    have you checked with your windows administrator??

  • Issue while downloading the alv report output in spreadsheet format .

    Hi,
    I have a report output, whenever I try to download it in the spreadsheet format to my desktop,
    I get the following issue:
    Say the correct material number is 10833340001218999 or 10030000063207001
    (This appears in the report output)
    But in the excel file the number is displayed as 10833340001218900 and 10030000063207000.
    Please help.
    Regards,
    Sucharita.

    Hi Sucharita,
    The reason for your problem could be that in excel 2007, characters more that 15 are replaced with 0.
    Or you can try downloading the data using FM 'GUI_DOWNLOAD' , if currently you are using stadard SAP functionality of data downloading.
    Best Regards,
    Vishal.

  • Printing ALV report

    Hi everyone,
    I have a report that was created with ALV, everything works fine until we print.
    When we print the report, it is printed in one page and that's ok, but the size is reduced, I mean the size is very small, any idea why we have this issue?.
    Thanks
    Eduardo Campos.

    HI Hduardo Campos,
    For printing ALV report or Normal report we need separte format while printing.
    Please fallow the fallowing steps to achieve your requirement.
    Steps:
    1. You have to create your own page format.
    SPAD-> Full Administration -> Device Types -> Page Formats -> Define the respective Page formats
    2. You have to define your own format type and attach the newly created page format to that.
    3. while creating the format type using existing script code from other formats.
    ( Here while wrting the script just test the font & font size as per your requirement)
    4. While ALV report printing select the Format option and enter your newly created format name( If you are not seeing report format option then select the properties option then select the report format then enter the required format name)
    fallow the above steps, so that you will able to print ALV report successfully.
    Still if you are facing any problem, let me know i will send you the detailed screen shots for the same.
    Right now in my current project i am using the same procedure and succesfuuly achieved the results.
    Regards,
    Rajani

  • When 'PRINT' in ALV report using FM

    Hi
    I am getting an error when trying to execute and print option in the selection screen. my client system version is 4.6C
    in the dump  the error at :
    I am using FM at my report.
    set_auto_redraw(cl_gui_alf_grid_base)
    can you provide code for when 'PRINT' rs_selfild (dynamic form) for resue*grid_display
    Thanks

    Hi Dana,
    This thread answers ur question..
    alv REPORT PRINTING
    cheers,
    Prashanth
    P.S Please mark helpful answers

Maybe you are looking for

  • Adobe Bridge Collections (CC features?)

    I have the habit of using collections extensivly to organize projects. But I am always missing two main functionalities: The ability to automatically SEARCH for a missing file that have been moved outside of bridge Possibillity of NESTING collections

  • Is MacBook Pro's DVD Region Free?

    I was about to order a Region 3 DVD but then I realized that my MacBook may not be able to read that... Can MacBook Pro read Region 3 DVDs? I bought my MacBook Recently almost right after apple introduced Intel Duo Macbook Pro...

  • Range comparison using VARCHAR2

    Hi How can I achieve SELECT * FROM TABLE WHERE 'B' BETWEEN 'A' AND 'C' How do I obtain a number representation for a given character string?

  • How do i bring my camera online

    i keep getting no camera online when i try to get media..

  • ORA-00977 Error When Moving Table Between Tablespaces

    I used the "Alter table <tablename> move tablespace <newtablespace>" command on tables that contain a LONG datatype, and get an ORA-00977 error. Was successful with other tables that did not contain a LONG. This was on a 8.1.7.0 database, running on