LIST REPORT with line-size 279 to PDF document

Hi,
  I have a classical report outputting dynamic internal table contents, I wanted this to be in PDF document. I have used LIST to PDF conversion technique to get PDF document, which is successful. But I see the font size is small.
I have used FM: CONVERT_ABAPSPOOLJOB_2_PDF with the following values being passed.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
      src_spoolid              = l_id
      no_dialog                = space
     PDF_DESTINATION          = 'X'
     get_size_from_format     = 'X'
    IMPORTING
      pdf_bytecount            = l_bytecount
    TABLES
      pdf                      = t_pdf
    EXCEPTIONS
      err_no_abap_spooljob     = 1
      err_no_spooljob          = 2
      err_no_permission        = 3
      err_conv_not_possible    = 4
      err_bad_destdevice       = 5
      user_cancelled           = 6
      err_spoolerror           = 7
      err_temseerror           = 8
      err_btcjob_open_failed   = 9
      err_btcjob_submit_failed = 10
      err_btcjob_close_failed  = 11
      OTHERS                   = 12.
when I make use of get_size_from format parameter in the FM, I'm able to get bigger font but layout is not proper (like page format should have been in LANDSCAPE but it is display PDF in PORTRAIT ).
I'm trying to build PDF with LETTER format in LANDSCAPE orientation.
I had searched enough threads in forum but no relevant answers for this type of issue.
Appreciate your quick responses. Thank you.
Best Regards,
Babu

So, you want to display the list in PDF in Lanscape format, right? You can do this:
  CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      layout               = 'X_65_132'
      no_dialog            = gc_x
      line_count           = 60
    IMPORTING
      out_parameters       = gs_print_params
      valid                = gv_valid
    EXCEPTIONS
      invalid_print_params = 2
      OTHERS               = 4.
  SUBMIT ztest_report TO SAP-SPOOL
                    SPOOL PARAMETERS gs_print_params
                    WITHOUT SPOOL DYNPRO
                    WITH p_date eq p_date
                    AND RETURN.
* After getting the spool id, do the below
  CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
      src_spoolid              = gv_rqident
      no_dialog                = space
      dst_device               = gs_print_params-pdest
    IMPORTING
      pdf_bytecount            = gv_bytecount
    TABLES
      pdf                      = gt_pdf
    EXCEPTIONS
      err_no_abap_spooljob     = 1
      err_no_spooljob          = 2
      err_no_permission        = 3
      err_conv_not_possible    = 4
      err_bad_destdevice       = 5
      user_cancelled           = 6
      err_spoolerror           = 7
      err_temseerror           = 8
      err_btcjob_open_failed   = 9
      err_btcjob_submit_failed = 10
      err_btcjob_close_failed  = 11
      OTHERS                   = 12.
  IF sy-subrc NE 0.
*    MESSAGE text-e02 TYPE gc_e.
  ENDIF.
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename                = gv_file
      filetype                = 'BIN'
    IMPORTING
      filelength              = gv_binsize
    TABLES
      data_tab                = gt_pdf
    EXCEPTIONS
      file_write_error        = 1
      no_batch                = 2
      gui_refuse_filetransfer = 3
      invalid_type            = 4
      no_authority            = 5
      unknown_error           = 6
      header_not_allowed      = 7
      separator_not_allowed   = 8
      filesize_not_allowed    = 9
      header_too_long         = 10
      dp_error_create         = 11
      dp_error_send           = 12
      dp_error_write          = 13
      unknown_dp_error        = 14
      access_denied           = 15
      dp_out_of_memory        = 16
      disk_full               = 17
      dp_timeout              = 18
      file_not_found          = 19
      dataprovider_exception  = 20
      control_flush_error     = 21
      OTHERS                  = 22.

Similar Messages

  • Print report with line-size 999

    Hi everyone,
    I need to print a report with line-size 999 in letter size. I´m using the complete 999 lines.
    REPORT zfr1000g MESSAGE-ID fr
                    LINE-SIZE   999
                    NO STANDARD PAGE HEADING.
    ANY SUGGESTIONS???
    Thanks.

    Hi,
    You can go ahead. The max. size is <b>1023</b> chars.
    REPORT zfr1000g
           NO STANDARD PAGE HEADING
           LINE-SIZE 999
           MESSAGE-ID fr.
    Regards,
    Anjali.
    Refer the Documentation on Reports.
    ... LINE-SIZE col
    Effect
    Creates a report with col columns per line.
    If the LINE-SIZE specification is missing, the line length corresponds to the current screen width. The system field SY-LINSZ contains the current line size for generating lists. The maximum width of a list is 1023 characters. You should keep lists to the minimum possible size to improve useability and performance (recommendation: LINE-SIZE < 132). For very wide lists (LINE-SIZE > 255), you should consult the notes for using LINE-SIZE

  • Is there any way to make the page size of a PDF document smaller?  I'm at 30"x36" and want 8.5"x11"

    Is there any way to make the page size of a PDF document smaller?  I'm at 30"x36" and want 8.5"x11"

    The quickest way is to print to a new PDF and use shrink to fit. Be sure you set the paper size in the printer properties. Normally this is not recommended, but it is a quick approach. You would loss any bookmarks and other markup with the print.

  • When converting a document on Pages to PDF, is there a way to shrink the size of the PDF document?

    When converting a document on Pages to PDF, is there a way to shrink the size of the PDF document?

    When exporting you are given 3 options:
    Good, Better, Best
    But I am guessing you are asking something else, just haven't said so.
    Peter

  • How do i reduce the file size on a pdf document?

    How do i reduce the file size on a pdf document?

    The only way to reduce the size is by editing the original document to reduce its size and then converting again to PDF.

  • Interactive list report with screns

    hi! all
              I have an Executable report which has a screen as an input screen not selection-screen, and a classical list display as its output for the entered data. in that output display i have an hotspot column which acts as a base for the secondary screen.
             Now im not able to trigger the event +at line-selection + .
             where to place this event to fetch the selected data from the first screen.
    Thanks and Regards,
    Nagulan

    Here is my code, kindly say me where to locate the at line-selection.
    TABLES: vbrk, vbrp.
    DATA: wk_fkart LIKE vbrk-fkart,
          wk_fkdat LIKE vbrk-fkdat,
          it_vbrk LIKE vbrk OCCURS 0 WITH HEADER LINE,
          wk_vbeln like vbrk-vbeln,
          it_vbrp like vbrp occurs 0 with header line,
          wk_vbrk like vbrk .
    START-OF-SELECTION.
      CALL SCREEN 5000.
    top-of-page.
      perform top_of_page.
    *&      Module  STATUS_5000  OUTPUT
          text
    MODULE status_5000 OUTPUT.
      SET PF-STATUS 'MLSTATUS'.
      SET TITLEBAR '500'.
    ENDMODULE.                 " STATUS_5000  OUTPUT
    *&      Module  USER_COMMAND_5000  INPUT
          text
    MODULE user_command_5000 INPUT.
      CASE sy-ucomm.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'CLOSE'.
          LEAVE PROGRAM.
        WHEN 'BACK'.
          SET SCREEN 0.
        WHEN 'PRNT'.
          LEAVE TO LIST-PROCESSING.
          PERFORM print.
        WHEN 'PRNV'.
          LEAVE TO LIST-PROCESSING.
          PERFORM get_data.
          PERFORM display_data.
        WHEN 'IDIS'  .
          leave to list-processing.
          perform get_data.
          perform idisplay_data.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_5000  INPUT
    *&      Form  GET_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM get_data .
      SELECT * FROM  vbrk INTO TABLE it_vbrk
             WHERE  fkart  = wk_fkart
             AND    fkdat  = wk_fkdat.
      IF sy-subrc <> 0.
        MESSAGE e001(zsd) WITH 'NO RECORDS FOUND'.
      ENDIF.
    ENDFORM.                    " GET_DATA
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      LOOP AT it_vbrk.
        WRITE:  /10 sy-vline,
                11 it_vbrk-vbeln ,
                20 sy-vline,
                21 it_vbrk-fkart,
                27 sy-vline,
                28 it_vbrk-fkdat,
                39 sy-vline,
                40 it_vbrk-netwr,
                63 sy-vline,
                64 it_vbrk-fksto,
                67 sy-vline.
      at last.
          ULINE : /10(58).
          WRITE : /23 '<<<<< REPORT OVER >>>>>'.
      endat.
      ENDLOOP.
    ENDFORM.                    " DISPLAY_DATA
    *&      Form  PRINT
          text
    -->  p1        text
    <--  p2        text
    FORM print .
      DATA: pripar TYPE pri_params,
            val TYPE c,
            dest like PRI_PARAMS-PDEST,
            ARCPAR LIKE ARC_PARAMS.
            dest = 'ZLASER'.
      PERFORM get_data.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
       EXPORTING
         copies                         = 1
         destination                    = DEST
         layout                         = 'X_PAPER'
         line_count                     = 65
         line_size                      = 72
         no_dialog                      = 'X'
         report                         = sy-repid
         priority                       = 2
       IMPORTING
       OUT_ARCHIVE_PARAMETERS         = ARCPAR
         out_parameters                 = pripar
         valid                          = val
       EXCEPTIONS
         archive_info_not_found         = 1
         invalid_print_params           = 2
         invalid_archive_params         = 3
         OTHERS                         = 4
      IF val <> space AND sy-subrc = 0.
        pripar-primm = 'X'.
        NEW-PAGE PRINT ON
        NEW-SECTION PARAMETERS pripar
        ARCHIVE PARAMETERS ARCPAR
        NO DIALOG.
        PERFORM display_data.
      ENDIF.
    ENDFORM.                    " PRINT
    *&      Form  TOP_OF_PAGE
          text
    -->  p1        text
    <--  p2        text
    form TOP_OF_PAGE .
      WRITE : /25 'LIST REPORT IN MODULE POOL',
               65 sy-pagno,
              /25 'FOR:', wk_fkart,
              /25 'ON:',  wk_fkdat.
      SKIP 2.
      ULINE: /10(58).
      WRITE: /10 sy-vline,
              11 'Bill.no',
              20 sy-vline,
              21 'Type',
              27 sy-vline,
              28 'Bill date',
              39 sy-vline,
              40 'Bill Value',
              63 sy-vline,
              64 'canc',
              67 sy-vline.
      ULINE : /10(58).
    endform.                    " TOP_OF_PAGE
    *&      Form  IDISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    form IDISPLAY_DATA .
      LOOP AT it_vbrk.
        WRITE:  /10 sy-vline,
                11 it_vbrk-vbeln hotspot on,
                20 sy-vline,
                21 it_vbrk-fkart,
                27 sy-vline,
                28 it_vbrk-fkdat,
                39 sy-vline,
                40 it_vbrk-netwr,
                63 sy-vline,
                64 it_vbrk-fksto,
                67 sy-vline.
      at last.
          ULINE : /10(58).
          WRITE : /23 '<<<<< REPORT OVER >>>>>'.
      endat.
    ENDLOOP.
    endform.                    " IDISPLAY_DATA
    *&      Form  GET_DATA_VBRP
          text
    -->  p1        text
    <--  p2        text
    form GET_DATA_VBRP .
      SELECT * FROM  vbrp into table it_vbrp
             WHERE  vbeln  = wk_vbeln.
    endform.                    " GET_DATA_VBRP
    *&      Form  DISPLAY_DATA_VBRP
          text
    -->  p1        text
    <--  p2        text
    form DISPLAY_DATA_VBRP .
    loop at it_vbrp.
      write: /10 it_vbrp-vbeln,
              20 it_vbrp-posnr,
              25 it_vbrp-matnr,
              35 it_vbrp-arktx,
              55 it_vbrp-fkimg,
              65 it_vbrp-netwr,
              75 it_vbrp-aubel,
              85 it_vbrp-aupos.
    endloop.
    endform.                    " DISPLAY_DATA_VBRP
    Thanks and Regads,
    Nagulan

  • How to allocate space for headers in reports through line size r line count

    hi ,
    may i know how to allocate space for a header ( we do the same for footer through line-count ( footer space ) ) through line size or line count in reports...
    thanks in advance..

    Hi..,
    There is no need to reserve any space for the header. TOP-OF-PAGE can by default allocates the space for the header.
    If you still having confusion just  go ahead with this link. This is the research on same thing in defferent way.
    [Link|lines reservation for TOP-OF-PAGE & END-OF-PAGE;
    Thanks,
    Naveen.I

  • Report with Summary & Detail - Exporting to PDF in Crystal Report

    Hi,
    I am using Crystal Reports XI (release 2). I am trying out a report with Summary and Detail sections.
    Requirement:
    1.     Report should display both Summary and Detail Sections
    2.     Summary section should be displayed first followed by Detail Section
    3.     A field in summary section should have a hyperlink to Detail Section
    4.     On clicking the hyperlink the user should be navigated to the corresponding detail record
    5.     User should be able to download the whole report as a single PDF (i.e., both summary and detail together)
    Implementation in Crystal Report:
    This feature could be implemented using
    a.     Linked On Demand Sub report
    b.     Using Hide (Drill down ok) option
    c.     Hyperlinks
    Issue Faced:
    I used the on demand sub report option. When i clicked on the sub report (hyperlink), the details get displayed. But the details get displayed in separate viewer and hence when we export to PDF both summary and detail are not getting exported together. User has to select each detail report and export to PDF. Is this a limitation in CR XI? - proprietary Crystal Report features, such as drill-down and on-demand subreports, are supported only in the native Crystal Report format. These special features are ignored when exporting a report to a non-Crystal format like pdf.
    Is there any workaround for exporting both the summary and detail (in subreport) as a single PDF file?
    Any help will be greatly appreciated.
    Thanks,
    Viji.

    Hi
    Hyperlink would not be a solution to what you are asking for.
    If you want to see the records related to a particular employee id by clicking on emp id, you can try the below:
    - Apply a group on employee id on the main report.
    - Insert a subreport with the required fields and place it on the Employee id Group header. You can put a name of the subreport as "Check Employee details" or something else as per requirement and make it a on demand subreport.
    - Link the subreport on Employee id.
    Hope this helps!!!
    Regards
    Sourashree

  • CR report with embedded SWF: Export to PDF displays nothing

    I'm creating CR 2008 reports with embedded SWFs as described in the whitepaper [EMBEDDING XCELSIUS 2008 VISUALIZATIONS IN CRYSTAL REPORTS 2008|http://www.businessobjects.com/pdf/product/catalog/crystalreports/cr_xc_integration.pdf].
    From CR, I can export the report to html and view the report fine. But when I export to pdf, ppt, etc. The SWFs are not viewable. Is this a bug or by design?
    This section of the white paper seems to imply that maybe you cannot export to pdf:
    >TECHNICAL DETAILS
    >
    >Viewing Flash objects embedded in a Crystal Report is supported in the:
    >
    >Crystal Reports 2008 Preview tab
    >Crystal Reports 2008 .NET Webform viewer
    >Crystal Reports 2008 Java DHTML viewer (used in BusinessObjects Enterprise XI 3.0 and other products)
    >
    >Exporting and printing of Flash objects with connections to Crystal Reports data is not supported.
    >
    >Embedded Flash objects that do not have connections to Crystal Reports data can be exported to PDF only.
    I'm using the latest version of Adobe products:
    - Adobe Flash Player ActiveX, Version 9.0.124.0
    - Adobe Flash Player Plugin, Version 9.0.115.0
    - Adobe Reader 9, Version 9.0.0
    Also, I downloaded [CR Viewer 2008|http://www.businessobjects.com/product/catalog/crystalreports_viewer/] and can see the CR reports I've created with embedded Xcelsius swfs.
    Any information is appreciated. Thanks.
    Tim

    > ... it states in your first post, the export is not supported,
    True. It says:
    > Exporting and printing of Flash objects with connections to Crystal Reports data is not supported.
    But I can export such reports to html and view and print the flash objects.
    It seems inconsistent to me. I can export static flash charts to pdf, yet I cannot export dynamic flash charts to pdf, which is from Adobe, as is Flash?
    I'm hoping this is a temporary bug either in Crystal or pdf reader and is to be fixed in a patch release. Or an explanation of why the limitations exist.
    Thanks for the response.
    Tim

  • Exporting Crystal Reports with embedded Xcelsius content to PDF

    Hi,
    I have a crystal report with an embedded xcelsius chart. I would like to schedule this report using Crystal Server 2008, sending it monthly as a PDF file attached to an email. But after exporting the report through Crystal Server, the xceslsius content is just blank. Shouldn't this be working?

    What is the version of Adobe Reader? Adobe Reader 9 should be there.Also check whether you have Flash Palyer/ flash Active X control installed.
    If you can view the dashboard after exporting it to PPT,it means you have Flash Player installed. You need to try with Adobe Reader 9.

  • Saving WebI report with links to desktop in pdf format

    I have a user who is asking if a WebI report with drill down links can be saved to his desktop as a pdf and still have the links work. Has anyone had the same request?

    it´s ocurrs because the drill down that you have in the query, try with another query and export this to a PDF and if you can access ... is that is not possible to use the link for a drill down in a PDF.
    good luck!

  • While imp. snote REPORT j_1icapg LINE-SIZE 300 NO STANDARD PAGE HEADING

    Hi Friends
    Well I m trying to Implement the note 1003236 but it is showing the yellow light signal and showing the report j_1icapg.
    It is showing some synatx error.
    Can anybody help me in this how to proceed and what measurements should be taken
    Thanks
    Alabusani

    Hi Theja,
    From the post mentioned by ravi,  i can define the line size upto 1023. and so i did upto 425. but my problem is while printing the report. I also tried ALV and that also doesn't print some data. I guess my best bet right now is to download that internal table to an Excel file.
    let me know if there is any other way to fix this.
    Re: ABAP Programming to display more than 255 characters in the screen
    Thanks again.

  • Restrict Line which comes with Line-size.

    REPORT ZXYZ
      NO STANDARD PAGE HEADING
    LINE-SIZE 135
      LINE-SIZE 155.
    By adding this code i am getting a horizontal line at the Report Heading.
    Ex :  abcd      123      txyz
    Now my issue is I want to maintain the same distance between each text and at the same time Line size should  end after Z. 
    Ex :  abcd      123      txyz
    If i reduce the line size then the text at 123 will over write TXYZ...so i increased the Line-Size.
    Can i restrict the line visibility after Z without reducing the Line size...?
    Any suggestions will be appreciated!
    Regards,
    Kittu

    Hi, did you try uline.
    sample;
    DATA l_text(40).
    DATA l_len TYPE i.
    l_text = 'hello'.
    l_len = STRLEN( l_text ).
    WRITE :/ l_text.
    ULINE AT /1(l_len).

  • Formatting issues with a cut and pasted PDF document

    Hi,
    I am working with a lot of scanned PDF text and online PDF documents. When i paste them into pages 09, I am getting that little Paragraph symbol after each line of text. I think it is basically a line break. This causes problems for me and I wish that there was a fast way of deleting all of thise little breaks at one time somehow instead of manually deleting them, line by line, like i've been doing. PLEASE someone, if you can help with this, you will save me untold hours of tedious labor.
    thanks!

    Welcome to the Apple forums
    Peter's solution is excellent & I've used it for years. But there are a couple of options that automate the process. Here's a thread with an explanation & links.

  • Problem with selecting text in a PDF document

    I'm having a problem with Acrobat 9 and Reader 9.  PDF document that has copying and selecting permissions granted, when I highlight text for copying, some of it gets highlighted and some doesn't.  Put the same document on several computers in the office, same issue.  It's the document, but I can't figure out what the deal is.
    We need to copy large portions of this into a new tech manual. 
    Can someone help

    Without further information, my first reaction is to think that the texts that you cannot copy are included as images.

Maybe you are looking for

  • PSUB daemon not getting started

    Hi, I am installing OC 4.6 server but psub daemon is not getting started please suggest and resolution mia35132orc002:/opt/opapps/oc/46/log#cat rxcpsd_RSDBTAJ_46_1.log Log filename=/opt/opapps/oc/46/log/rxcpsd_RSDBTAJ_46_1.log ERROR:Daemon error whil

  • Problem to play-back on-demand videos more than 10 minute

    Hello everyone, I like to play on-demand video in Flash media server but FMS just play 10 minute of total video duration...!!! My video format is F4V and I type this address on the Sample FMS video-player. http://localhost/hds-vod/myvideo.f4v.f4m Not

  • Gross or Net postings

    Hello If I look at the following figure:- http://i168.photobucket.com/albums/u200/masarada/Fig1.jpg and the text from the Documentation states the following:- The system ignores the cash discount amount when gross posting the invoice. The cash discou

  • Microphone not working sometimes

    Since my typing skills are not good, I use the microphone for messaging, emailing, reminders, etc.  Many times the microphone is inoperative.  If I try it over and over again, it sometimes begins to work.

  • Error while stating j2ee server

    I 'm working on Win xp professional operating system. While starting the j2ee server from command line with the command j2ee -verbose earlier it was working perfectly but from 2 days its not starting even...even i have reinstalled the j2ee software .