Report output different when sent directly to printer

I have a report that if formated for 8.5 x 11 paper and has an address at the bottom of the page. When the report is generated as a pdf the address is in the corrent postion. When the report is sent directly to a printer from the report server the bottom 2 inches of the report are not printed. If i send the pdf version to the same printer it prints correctly.
Any help with this issue would be greatly appreciated.

Thanks for your answer, Ramachandra!
However I need some more specific information to solve this.
Which printer layout settings are relevant for the handling of margins and duplex printing for Adobe Forms?
I have not set up the printer myself but when talking to the printer guy which settings should I recommend him to look at?
I can see in transaction SPAD that there are settings specific to SmartForms but there is nothing said about Adobe Forms. Is there some way to make Adobe Forms related setting appear in SPAD for a device type?
Maybe my problem is not related to the printer device settings but rather to the way the printer is being called. When printing duplex we will have to override the default settings of the printer anyway.
Function module FP_JOB_OPEN has a parameter structure of the type SFPOUTPUTPARAMS. Which fields in this parameter structure are to be manipulated to get duplex print and output fitted to page size?

Similar Messages

  • Adobe Form output cropped when sent directly from SAP to printer

    I have created an Adobe Form (not interactive) that looks perfectly OK when previewed in Adobe Acrobat viewer but when printed blank margins of 4-5 millimeters are applied on all 4 paper edges. The form was designed with a coloured frame around it but the margins effectively remove most of the frame. The form content is being cropped instead of being compressed inside the margins.
    The form has been created with LiveCycle Designer via SAP transaction SFP. I am generating the form from an ABAP program
    When the form is printed from the Adobe Acrobat viewer I have the option to set Page Scaling to 'Fit to Printable Area'. This makes the form content being compressed inside the blank margins and the coloured frame remains intact. If I leave the Page Scaling setting as 'None' the output is being cropped as described above.
    The real problem occurs when I want to print without previewing first. I need to do that since previewing enables the user to skip printing and the application must know if the form has been printed or not. I have so far found no way to make the printer print on the paper edges or fit the content to printable area. Is there some setting in the output parameters than handles this?
    Also there is a need for duplex printing when sending form directly to printer. On help.sap.com there is information about duplex print for SAPscript and Smartforms but nothing for Adobe Forms.
    Here is an excerpt of the ABAP code used for printing the Adobe Form:
      DATA: zs_outparams TYPE sfpoutputparams,
                 z_fmname     TYPE rs38l_fnam.
    Set some print parameters
      zs_outparams-nodialog = abap_true.        "No user dialog
      zs_outparams-device   = 'PRINTER'.          "Output device
      zs_outparams-dest     = z_pdest.              "Printer name
      zs_outparams-reqnew   = abap_true.        "New spool request
      zs_outparams-reqimm   = abap_true.        "Print immediately
    Open print job
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = zs_outparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
      IF sy-subrc <> 0.
        RAISE print_error.
      ENDIF.
    Get FM name for form
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = 'Z_TEST_FORM'
        IMPORTING
          e_funcname = z_fmname.
    Call FM to print form
      CALL FUNCTION z_fmname
        EXPORTING
          i_header       = t_data_for_form
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
        RAISE print_error.
      ENDIF.
    Close print job
      CALL FUNCTION 'FP_JOB_CLOSE'
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
        "Ignore
      ENDIF.
    Please advise on how to
    -  avoid the content cropping
    -  enable duplex print
    when sending Adobe forms directly to the printer
    Thanks very much!
    Bernt Evensen

    Thanks for your answer, Ramachandra!
    However I need some more specific information to solve this.
    Which printer layout settings are relevant for the handling of margins and duplex printing for Adobe Forms?
    I have not set up the printer myself but when talking to the printer guy which settings should I recommend him to look at?
    I can see in transaction SPAD that there are settings specific to SmartForms but there is nothing said about Adobe Forms. Is there some way to make Adobe Forms related setting appear in SPAD for a device type?
    Maybe my problem is not related to the printer device settings but rather to the way the printer is being called. When printing duplex we will have to override the default settings of the printer anyway.
    Function module FP_JOB_OPEN has a parameter structure of the type SFPOUTPUTPARAMS. Which fields in this parameter structure are to be manipulated to get duplex print and output fitted to page size?

  • Problem In report output display when i run in the background

    Hi,
    In a classical report i am printing around 17 fields  the width of the report out put is around 800 characters.
    If i run  the report in the  fore ground it running perfectly. But the thing is when i give large selection is it GETTING ' TIMED OUT ' as it is running more than an Hour.
    so i wanted to run it in the back ground to avoid TIME OUT problems.
    But when i run in the backgroud   i am not getting  full  out put in the SPOOL request(SIZE of the report output may causing the problem) .
    Pls come up with some solutions
    Thanks in advance

    Try increasing the spool length..
    Refer this link for doing so.
    Spool List output display > 255 char when the rpt is run in Background
    Thanks
    mahesh

  • Report Output Changed when Executed in Background

    Hi Guys,
    I have generated a report,which when executed online displays
    four records.
    But when i am executing the same report in background by generating a spool,my output is changed,such as third record is missing and i am getting only three records.
    In the place of the third record an empty line is displayed.
    whats the reason for it?
    Can anyone help me in this regard.

    Hey Aparna,
    I have a report which has more than 400 characters in width. When I execute the report in background, I dont have a printing format of more than 255 characters. Therefore the generated spool has only 255 characters.
    How can I get the complete spool? Is there a way to define printing format or any other T-Code to print the generated spool?
    Regards,
    Anosh

  • Report output different in web mode

    Hi all,
    I've got a simple tabular report(Rows and columns without headers) which i deploy on the web and the report is displayed on a browser. The output i get from the browser is different from when i test and run it in report builder.
    When i deploy the report and view it on the browser, the rows do not start from a new line and each record is joined. How do i specify a line feed to start each row.
    For e.g, this is how it looks in report builder when i run it,
    record1 xxx xxx xxx
    record2 yyy yyy yyy
    This is what i get in web mode,
    record1 xxx xxx xxx record2 yyy yyy yyy
    note : The report is a character mode report.

    Hello,
    Another simple solution when you have simple text to show in a web and keep the presentation is to use the <PRE> tag. (see http://www.w3.org/TR/REC-html40/struct/text.html#edef-PRE)
    In you case
    <pre>
    record1 xxx xxx xxx
    record2 yyy yyy yyy
    </pre>
    Regards
    Tugdual

  • Reports output delayed when exported to Excel using OLE2

    Hi All,
    Platform - Oracle Application Server 10g Release 2 10.1.2.3 on Windows 32 bit.
    The report output is getting generated in a minute when exported to PDF i.e destype=cache & desformat=pdf. When we generate the output to excel is considerably delayed. It is taking time and internal server error is occuring.
    1) Report developed with simple query
    2) Used RPT2XLS procedure which uses OLE2 builtin to export report output into excel.
    3) Called RPT2XLS.run procedure in After-Report trigger of the report.
    4) We have relased all memory objects in the RPT2XLS package after exporting data and there is no EXCEL.exe running once the file is generated.
    System parameters used in the URL.
    . destype=file
    desformat=pdf
    CONTAINSOLE=yes (Required for exporting OLE2 objects into Excel in report)
    desname=path & name of the file.
    I have gone through the tuning documents for reports server and increased minengine, maxengine and initengine parameters of the reports engine and also changed maxconnect and IdleTimeout parameters in reports server configuration file.
    What might be the reason for delaying in the output of the reports when exported to Excel. Can the guys with special knowledge on this area help us in getting out of this issue.
    Thanks in advance.

    hey all,
    Thanks everyone for the reply.
    I am using the foloowing field cat:
    l_col_pos = l_col_pos + 1.
        wa_fieldcat-col_pos = l_col_pos.
        wa_fieldcat-outputlen = 32.            
         wa_fieldcat-fieldname = 'SOLLWERT'.
         wa_fieldcat-inttype   = 'P'.             
    *    wa_fieldcat-tabname = 'i_final'.      
        wa_fieldcat-seltext_l = text-t11.         "Target Value
        APPEND wa_fieldcat TO i_fieldcat.
        CLEAR wa_fieldcat.
    I have use this also in the field cat but stil i get space in the excel header.
    wa_fieldcat-REF_FIELDNAME = 'SOLLWERT'.
    *    wa_fieldcat-REF_TABNAME =  'QAMV'.
    Also the space comes with the descrip[tion in the cell of excel.
    its like [space Target Value] and i dont need this Space.
    I have also used  wa_layout-colwidth_optimize = 'X'. but it doesnt wrk.
    Please suggest

  • Report output to be sent via mail

    Hi Experts,
    I want to send my customized ABAP report output to an email address (e.g my own email ID) as I need to send to the vendor (who doesn't have SAP access) as per the requirement.
    Can you please let me know is there any transaction or any other way with the help of which i can just input this report name and the email Id and then it will automatically send the output of the report to that email id.
    Thanks in advance.
    Any helpful entry will be rewarded.
    Warm regards,
    Raman.

    You might want to write a small program that retrieves your spool information, and send the corresponding ALV (internal table) by converting it and sending it via SAP Connect. Here is a sample of hos to attach and send your internal table:
    FORM send_file .
      DATA: send_request       TYPE REF TO cl_bcs,
            text               TYPE bcsy_text,
            document           TYPE REF TO cl_document_bcs,
            recipient          TYPE REF TO if_recipient_bcs,
            copy               TYPE ad_smtpadr,
            bcs_exception      TYPE REF TO cx_bcs,
            sent_to_all        TYPE os_boolean,
            att_name           TYPE sood-objdes,
            subject            TYPE so_obj_des.
    Get attachment name
      CONCATENATE g_ret_id '_' sy-datum sy-uzeit '_' g_fileid '.CSV' INTO
      att_name.
      TRY.
    Create the send request
          send_request = cl_bcs=>create_persistent( ).
    Create the document with attachments
    Main document
            APPEND 'Attachment test' TO text.
          document = cl_document_bcs=>create_document(
                        i_type    = 'RAW'
                        i_text    = text
                        i_subject = subject ).
    Add text attachment to document
          document->add_attachment( i_attachment_type    = 'CSV'
                                    i_attachment_subject = att_name
                                    i_att_content_text   = itab_file ).
          send_request->set_document( document ).
    Create recipient and add to send request
          LOOP AT itab_recipients INTO wa_recipients.
            IF wa_recipients-copy IS INITIAL.
              "To recipient
              MOVE wa_recipients-address TO g_rec_send.
              recipient = cl_cam_address_bcs=>create_internet_address(
              g_rec_send ).
              send_request->add_recipient( i_recipient = recipient ).
              CLEAR g_rec_send.
            ELSE.
              "CC
              MOVE wa_recipients-address TO g_rec_send.
              recipient = cl_cam_address_bcs=>create_internet_address(
              g_rec_send ).
              send_request->add_recipient( i_recipient = recipient
                                           i_copy = 'X' ).
              CLEAR g_rec_send.
            ENDIF.
          ENDLOOP.
    Send
          sent_to_all = send_request->send( i_with_error_screen = 'X' ).
          IF sent_to_all = 'X'.
            MESSAGE s022.
          ENDIF.
        CATCH cx_bcs INTO bcs_exception.
          MESSAGE e865 WITH bcs_exception->error_type.
      ENDTRY.
    ENDFORM.                    " send_file
    REPORT TO EMAIL
    ALV output to email
    How to send ALV Grid report to Email?
    Check the code...on http://sap4.com/wiki/index.php?title=ZOUTLOOK
    sending the output of a program through an email
    report output to email
    Sending ABAP Report by email
    Rewards if useful..............
    Minal

  • PO output different when viewed thru ME22N & ME9F

    Hi all,
    if a particular PO is print previewed or printed from ME22N and ME9F, should they be showing the same or different?
    In my case it is showing diffenrnt outputs. could you please tell me the difference between the 2 transactions.
    Thanks,
    Kiran

    Hello,
    You can see the  PRINT PERVIEW through the transaction code ME22N which is the change of teh Purchase order
    And the Transaction code ME9F is used to  to manually output the Message to the document
    If you maintain the condition records , then automatically the Output will be triggered to the Purchase order,
    But from ME9F you can print the document manually
    There are some document like RFQ, Scheduling agreements, contracts for which you cant see the PRINT PERVIEW directly, so you wil luse ME9F.
    Hope it is clear,
    santosh

  • Crystal Reports 2008 crashes when I try to print

    Post Author: j89
    CA Forum: General
    When I open my report it says "This report uses an invalid printer. The default printer will be used instead."When I click on the print icon or file>print, Crystal Reports 2008 crashes. It simply disappears. Any ideas?

    Post Author: j89
    CA Forum: General
    When I open my report it says "This report uses an invalid printer. The default printer will be used instead."When I click on the print icon or file>print, Crystal Reports 2008 crashes. It simply disappears. Any ideas?

  • FileInputStream's read() outputs differently when not stored in a variable

    Here's my original code:
    import java.io.*;
    class ShowFile {
         public static void main(String[] args)
         throws IOException{
              FileInputStream fin = new FileInputStream(args[0]);
              int i;
              do {
                   i = fin.read();
                   if (i != -1) System.out.print((char) fin.read());
              }while (i != -1);
    }When i do a "java ShowFile test.txt", it outputs characters that's not the same as the ones in test.txt.
    But when I changed the code
    if (i != -1) System.out.print((char) fin.read()); to if (i != -1) System.out.print((char) i); everything outputs fine. Why is that?

    ajushi wrote:
    Thanks laginimaineb.You're welcome.
    ajushi wrote:
    So when I assign the resulting value from read(), is read() called? Is that the reason why I'm reading 2 chars per loop?Exactly, when you "assign the resulting value from read()" you actually call read, it performs what it needs to, and it returns some value, which you then use.
    laginimaineb.

  • Crystal Reports 2008 crash when Select Page or Print Report

    Hy,
    I Have Crystal Reports 2008 on Windows Vista. When I select page or I print reports, Crystal Reports crash. I tried to uninstall Crystal 8.5 and Crystal XI that I was on the same computer and manually removed all entry in Registry. After this I reinstalled Crystall 2008 but the problem was not resolved.
    So I tracked the dll called by CRW32.EXE and I found that the problem was on a DLL of Microsoft Office OneNote. I uninstall the Microsoft Office OneNote printer that Office Installation Program created for OneNote and now all work fine. I hope that this can help other people that have the same problem.
    Ciao Filippo

    Thank You for the information Filippo,
    This is actually a known issue with CR 2008 when a printer driver is missing at least one file. Our developers are aware of the issue and are planning to release a fix soon.

  • Need to Print the Report Output

    Hi,
    I want to print the report output. How to install a printer in Oracle Appls. If i give number of copies 1 or morethan 1(from SRS Window)...the report is completed-warning. pls advice
    Thanks in advance.

    Hi,
    I changed the printer to Epson LQ2170 and Epson LQ2180 but since I don't know the initialization and reset parameter (already search for the manual but couldn't find it, downloaded from Epson's website but couldn't find it either) so I register it with LQ1070. I'd tested to print the reports directly from Reports Builder 6i and it printed just as I wanted to but when I tried to print from oracle apps it only printed up to about 3/4 width of the paper. I tried to change the report's height and width, paper size, orientation but no luck. What should I do? Thanks

  • How to Print Selection-Screen along with ALV Report output

    Hi,
    I have a requirement wherein i need to also print the Selection Screen of a report when I print the ALV report output.
    Basically i need to print the ALV output along with selection screen.
    Could you plz suggest me the way.
    Regards,
    Nitin

    Hi,
    My selection Screen is a very big one. It contains around 30 select-options.
    So is their any standard method in which you can choose whether you want to take the output printout with or without Selection screen.
    Regards,
    Nitin

  • Report output to email

    Hi all,
    I have developed a report whose output is directed to email. The problem is the output is sent as an attachment to emil. I want the report output to be sent in body of email rather than as an attachment.
    Thanx in advance
    Murthy

    Hi Tanikella,
    You could use the Reports Distribution feature. You can find the introduction to distribution here:
    http://otn.oracle.com/products/reports/htdocs/getstart/examples/Distribution/index.html
    For more detailed information you can go to the document on "Publishing Reports to the Web" - see the chapter on Creating Advanced Distributions, esp section 9.4.2.1 (Email with whole report as body)
    http://otn.oracle.com/docs/products/reports/content.html
    Navneet.

  • Stay font size when modify orientation of print page.

    Hi.
    I'm using a simple report (Write) and when I want to print it, because of the LINE-SIZE and LINE-COUNT appears in a landscape orientation, but when I changed these parameters appears in a portrait orientation, but the problem is that font size becomes bigger.
    How can I do to avoid becomes big the font-size, or if i can change the font size directly in code.
    Thanks

    You can check the print scale: File > Page Setup > "Format & Options": Scale (unselect: "Shrink to fit page width")
    * http://kb.mozillazine.org/Problems_printing_web_pages

Maybe you are looking for

  • Kindle single-folio apps?

    Is it still not possible to build single-folio apps for Kindle? (And Android in general?) I'm assuming that hasn't changed but haven't paid attention. If not possible, is it on the horizon? (Is it a Kindle Store issue, or a viewer builder issue? Assu

  • PHP AND ACTION SCRIPT

    Hello Experts,   I am trying to make communication between FMS server and PHP (Linux server). As I am working on a video recording application I want to move the recorded video file from the FMS server to my PHP (Linux server). I am trying to connect

  • Creative Suite Standard Student - Switch from Win to Mac OS

    Hello, a few weeks ago I bought the Creative Suite Design Standard Students edition for Windows. By now I have not verifyed that I am a student, so I do not have an activation-key. I know how to get the key. I just had to wait for my new documents fr

  • Finding files in subdirectory

    Hi. I want to write an application which will be changing one word to other and write save to a editing file. Does anybody knows how to search a file in subdirectories is there any class which will make it??

  • Have Flip4mac but unable to open some video links

    I have had my iMac since mid-06 and this is the first time I haven't been able to watch a video link online. I'm wondering if anyone can figure out why I can't watch video on www.chicagotribune.com. The Tribune site suggests that I download Windows M