Formatting problem when transform to PDF

Hi all,
I've found a problem with program RSTXPDFT4 and functions CONVERT_ABAPSPOOL ... and CONVERT_OTFSPOOL...
I want to convert to PDF the spool generated by a report using "classic" list programming (write and so on).
Output format is x_65_132, which is ok while I'm in SAPGUI, but when transforming it with report RSTXPDFT4, I get a PDF file in a x_65_80 (I think) format, so I'm having half of my list cut.
I've searched for notes and forums, and I found nothing about this.
Any Ideas? Is this a limitation of these FM's? Is there any other way of converting a list spool into PDF?
Thanks in advance,
Rafa

Hi all,
yesterday I went home and I tried the same in the MIniWas I have installed in my laptop, and the result was exactly the same!!
The test I made was: run a program in online mode, generate a spool request, and then use standard program RSTXPDFT4 to convert this request into a PDF file.
The report is defined as 65 x 132 (which should be landscape),  but the PDF file appears in portrait (65 x 80 I presume).
I think the problem is in the funcions CONVERTxxx_SPOOLJOBxxx.
Did anybody have this problem? Should I think that it's not possible to convert list output spools to PDF???
Here is the code I used at home in the report.
REPORT  z_test_list NO STANDARD PAGE HEADING
                    LINE-SIZE 132
                    LINE-COUNT 65
                    MESSAGE-ID zzrn_msj.
* tablas **********************************************************************
TABLES: usr01.
* variables globales **********************************************************************
DATA: aux_usr     TYPE bapibname-bapibname,
      wa_address  TYPE bapiaddr3 ,
      it_profiles TYPE TABLE OF bapiprof,
      wa_profiles TYPE bapiprof,
      it_groups   TYPE TABLE OF bapiagr,
      wa_groups   TYPE bapiagr,
      it_return   TYPE TABLE OF bapiret2,
      wa_return   TYPE bapiret2,
      resto       TYPE i.
* pantalla de selección **********************************************************************
SELECT-OPTIONS: so_usr FOR usr01-bname.
TOP-OF-PAGE.
  FORMAT COLOR COL_HEADING.
  WRITE: /01 'LISTADO DE CARACTERISTICAS DE USUARIOS DEL SISTEMA ', SY-SYSID.
  ULINE.
  FORMAT COLOR COL_TOTAL.
  WRITE: /01 'Fecha del listado:', sy-datum, ' -- ', sy-uzeit.
  ULINE.
  SKIP 1.
START-OF-SELECTION.
  SELECT bname
    INTO aux_usr
    FROM usr01
    WHERE bname IN so_usr.
    CALL FUNCTION 'BAPI_USER_GET_DETAIL'
      EXPORTING
        username             = aux_usr
*     CACHE_RESULTS        = 'X'
    IMPORTING
*     LOGONDATA            =
*     DEFAULTS             =
      address              = wa_address
*     COMPANY              =
*     SNC                  =
*     REF_USER             =
*     ALIAS                =
*     UCLASS               =
*     LASTMODIFIED         =
*     ISLOCKED             =
      TABLES
*       PARAMETER            =
        profiles             = it_profiles
        activitygroups       = it_groups
        return               = it_return
*        ADDTEL               =
*        ADDFAX               =
*        ADDTTX               =
*        ADDTLX               =
*        ADDSMTP              =
*        ADDRML               =
*        ADDX400              =
*        ADDRFC               =
*        ADDPRT               =
*        ADDSSF               =
*        ADDURI               =
*        ADDPAG               =
*        ADDCOMREM            =
*        PARAMETER1           =
*        GROUPS               =
*        UCLASSSYS            =
*        EXTIDHEAD            =
*        EXTIDPART            =
*        SYSTEMS              =
    LOOP AT it_return INTO wa_return WHERE type EQ 'E'.
      resto = sy-tabix MOD 2.
      IF resto = 0.
        FORMAT COLOR COL_NORMAL INTENSIFIED ON.
      ELSE.
        FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
      ENDIF.
      WRITE: /01 'ERROR' COLOR COL_NEGATIVE, wa_return-message.
    ENDLOOP.
    CHECK sy-subrc NE 0.
    WRITE: /01 'DATOS DEL USUARIO' COLOR COL_GROUP INTENSIFIED ON.
    ULINE.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    WRITE: /01  sy-vline, space,  aux_usr(10), space, sy-vline, space, wa_address-fullname(50), space, sy-vline, space, wa_address-e_mail(50), space, sy-vline.
    ULINE.
    FORMAT COLOR COL_NORMAL RESET.
    SKIP 1.
    WRITE: /01 'PERFILES ASIGNADOS' COLOR COL_GROUP INTENSIFIED ON.
    WRITE: /01(87) sy-uline.
    LOOP AT it_profiles INTO wa_profiles.
      resto = sy-tabix MOD 2.
      IF resto = 0.
        FORMAT COLOR COL_NORMAL INTENSIFIED ON.
      ELSE.
        FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
      ENDIF.
      WRITE: /01 sy-vline, space, wa_profiles-bapiprof, space, sy-vline, space, wa_profiles-bapiptext, space, sy-vline.
    ENDLOOP.
    WRITE: /01(87) sy-uline.
    FORMAT COLOR COL_NORMAL RESET.
    SKIP 1.
    WRITE:  /01 'ROLES ASIGNADOS' COLOR COL_GROUP INTENSIFIED ON.
    WRITE: /01(125) sy-uline.
    LOOP AT it_groups INTO wa_groups.
      resto = sy-tabix MOD 2.
      IF resto = 0.
        FORMAT COLOR COL_NORMAL INTENSIFIED ON.
      ELSE.
        FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
      ENDIF.
      WRITE: /01 sy-vline, space, wa_groups-agr_name, space, sy-vline, space, wa_groups-agr_text, space, sy-vline.
    ENDLOOP.
    WRITE: /01(125) sy-uline.
    NEW-PAGE.
  ENDSELECT.

Similar Messages

  • READ_TEXT: format problem when printing to PDF

    Hello everybody,
    I am using READ_TEXT function module to get long text then display to PDF format.
    I met a problem with format as following:
    The long text has bold format, for e.g.: This is bold text.
    The READ_TEXT FM will then read the data as: <H>This is bold text.</>
    When output to PDF instead of display as This is bold text., it is displaying <H>This is bold text.</>
    Please suggest me how to fix this.
    Thanks,
    Khanh

    Hi Khanh ,
    Below is the sample code for your reference .
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    ID = 'ZG01'
    LANGUAGE = 'EN'
    NAME = TH_INDATA_F01-VBELN_A
    OBJECT = 'VBBK'
    IMPORTING
    HEADER =
    TABLES
    LINES = TD_LINE
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    NOT_FOUND = 4
    OBJECT = 5
    REFERENCE_CHECK = 6
    WRONG_ACCESS_TO_ARCHIVE = 7
    OTHERS = 8.
    Here lines = td_line refers to Lines of text read
    The table contains all text lines belonging to a text module. The line structure is defined in table TLINE. The line contents are stored in ITF format.
    Hope this helps you .
    Regards ,
    Navya .

  • Format Changes when Exporting to PDF

    I'm using Crystal 12.0 and have an issue very similar to these threads listed below. 
    While viewing a report on my development machine, all is fine.  I can export to PDF and the formatting is OK. 
    However, when the report is exported to PDF on the web server, the spacing between some of the text is off.  The spacing is used for a CrossTab cell in a "Display String" that I changed using "Format Field."   All that's supposed to happen here is several spaces are used to move the text under the proper column. 
    When exporting to PDF on the web, the text moves over to the left like it's missing some of the spaces.  I wondering if the below threads apply to Crystal 12.0. 
    Thread:1220516 and
    Format Changes when Exporting to PDF
    Thanks kindly for your assistance,
    -Marty

    I'm having a very similar problem using Crystal Reports for Visual Studio 2008. Everything is perfect when running in VS 2008, it takes the report and exports it to PDF format via VB code. The PDF file is idenitcal to the report. However, when run on the server the one page report (when exported to PDF) gets chopped into ten 4x4 chunks. So the PDF file is 10 pages....its like puzzle pieces of the original.
    I've drawn a bunch of lines on the report to look like boxes - perhaps this is causing issues? The font on the report is Arial.
    The server has the 10_5 runtime installed and it is set to the same default printer as the development PC. I have been stuck on this for days and would really appreciate any advice you may have.
    Thanks!
    Edited by: WanderingEye on Sep 18, 2009 4:54 PM

  • Problems when Saving as PDF in Framemaker 9

    Hello,
    Our department is having a couple of problems when 'Save as PDF' is used to create a PDF in FM9.   We all use WindowsXP.
    Problem #1: No PDF created.   A window appears stating that Distiller 5.0.5 or higher is required; we all have Distiller 9.0 installed.  So it doesn't seem to recognize that Distiller 9.0 is available.  NOTE: When PRINTING to PDF there are no issues, it is uses Distiller 9.0 as expected.
    Problem #2: PDF is created but chunks of text are missing.
    We need to Save as PDF in order for our reviewer comments to automatically be added when importing back into Framemaker.
    Can anyone help?
    Thank you.
    T.

    Since you mention that you're on XP, have you installed the PostScript
    printer Hotfix from Microsoft?
    That would be my starting point for trouble-shooting because it
    specifically addresses at least one of your issues.
    Info at:
    http://blogs.adobe.com/techcomm/2008/07/hotfix_for_framemaker_1.html
    The fix is at:
    http://support.microsoft.com/kb/952909/en-us
    Art Campbell
                  [email protected]
      "... In my opinion, there's nothing in this world beats a '52
    Vincent and a redheaded girl." -- Richard Thompson
                                                          No disclaimers apply.
                                                                   DoD 358

  • Transparency problems when I distort Pdf image size (ie: 100%x99%) then Export. Is there away to fix

    I sometimes have transparency problems when I distort PDF image size (i.e.: 100%x99%) then Export. Is there away to fix.   Or at least be able to preflight and know I have an issue.

    Mostly I have seen borders and drop shadows that will just go away or other wise not print right but only when I distort the image and only on very complicated large PDF images.  When I print it at same % both horz and vert. this problem goes away.

  • I have problem when transferring book (PDF/Epub) from Computer to iPad with the new iTune? Please Help....

    I have problem when transferring book (PDF/Epub) from Computer to iPad with the new iTune? Please Help....

    With iTunes 11 you can enable the left-hand sidebar via control-S on a PC, option-command-S on a Mac. If you are trying to get it to the iBooks app then with the sidebar enabled the process should be similar to how it was on previous versions of iTunes e.g. add it to your iTunes library via File > Add To Library, connect the iPad and select it on the left-hand sidebar, and then use the Books tab on the right-hand side to select and sync it to the iBooks app.

  • Format problem when export to RTF

    Hi,
    Iam creating a RTF template, when export to pdf everything working fine. However, when i export to RTF(word) alot of document properties got lost such as :
    font size default to 12 when it's blank line; page number are not re-start for multi sections; table properties not holding, header, footer and edge margin are not holding, etc...... Is there any way to fix these. I tried to create a word macro to fix some of the format problems, but the macro have to run manually instead of initialized form a text field option on exit. Any idea on how to fix or work around would be appreciated.
    Thanks,
    Tam

    im2famous4u wrote:
    Do you know if and when Pages will provide support for tables in rtf format? (My school requires that I send all assignments rtf format.)
    As Yvan points out, no one here can write what they know about it, and the vast majority of us know nothing about it.
    You cannot take any decision based on the assumption that Pages will one day support tables in RTFs, because it may never happen. If you need both RTF and tables, the only option is another tool (like NeoOffice, TextEdit, MS Office and so on).

  • I have problem when opening a pdf page, my mouse control is hijacked to that tab when im on other tab, i cant scroll or use the middle rollling button, i have to click at the pdf tab then my control over the mouse middle button is restored.

    I think I have this problem even on earlier version. The thing is I set open link in new tab and not switch over to the opened tab. My habit is to open a pdf page in the background and let it load first. What happen is that when the pdf page finished loading ( i do not set to download it), it hijacks my middle mouse button control. When i scroll down or scroll up on my original tab, it wont scroll on the tab, but insttead it scrolls on the pdf tab. I have to click on the pdf tab, then i can use the scrolling function on other tabs back. As for when i opened several pdf tabs, it seems i have to click on the tab that just finished loading, that means several times until they all finish loading. It has been getting on my nerve lately. And all pdf trouble i search from google led to unable to open pdf, firefox hang or crash when opening a pdf and the likes.

    core-el, i don't see the advantage of that or i can't figure out how i'm supposed to use it. for starters, i have to click the mouse in order to get "add bookmark here" to open, which is no different than clicking on the star in the location bar, or right-clicking on the page. there are also options in the bookmarks toolbar, but they all require clicking the mouse & holding down the right button, etc.
    my goal is to use keystrokes only. typing on the keyboard, using both hands, using the space bar & my left pinky finger to tab over are all painless routines for me. as soon as i have to take my fingers off the keyboard & use the mouse, the pain begins.
    as i said, in older versions of firefox, all i had to do to bookmark a page was click ctrl>d, then tab over & arrow down, when appropriate, to find the folder & add the bookmark. for me, as a touch-typist whose speed is between 60 & 80 wpm, this is lightning fast.
    if i have this wrong, please correct me. i just see it as more mouse clicks that don't save me time or pain.

  • Hyperlink problem when exporting to PDF

    We are using Crystal Reports XI R2 and having a problem when exporting a report to PDF that contains a Hyperlink to "A File".  The hyperlink works correctly when previewed inside Crystal but when it is exported to a PDF the text does not appear to show any hyperlink at all.  Am I missing something or is this a bug?

    Hi Brian
    Please visit the following URLs that talk about the issue.
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2014557&sliceId=&dialogID=25464253&stateId=1%200%2025430948
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2014405&sliceId=&dialogID=25464259&stateId=1%200%2025430949
    You can also download the CR XI R2 Service Pack 4 by using the following URL and check for the results.
    -  https://websmp208.sap-ag.de/bosap-supportsw
    -  Then choose Crystal Reports from 'Software Products' dropdownlist,XI Release 2 from 'Product Version' dropdownlist and service packs from 'Software Types' dropdownlist.

  • Reports layout/format problem when called from forms

    hi,
    using forms and reports builder 10g OS winxp
    i have created web and paper layout report with pre-defined template gray (rdf). when i run the web layout there is no problem.
    when i call this report from form using
    web.show_document('http://machine:8889/reports/rwservlet?report=mail_report.rdf&destype=cache&desformat=HTML&userid=abc/xyz@dbname&para1='||:parameter1, '_blank');
    the layout (cell bgcolors of the table) does not appear.
    pl guide what am i missing out.
    thanks

    Hi,
    that has nothing to do with forms. Your call inside web.show_document is a servlet-call. With this you get the paper layout of a report. If you want to get the web-layout, you have to call the report with a jsp-call. In your case that might look like http://machine:8889/reports/mail_report.jsp?userid=.....
    If you store your report as jsp-file, you can use it for paper & web-layout, as rdf only paper-layout is possible.
    http://download.oracle.com/docs/cd/B25016_08//doc/dl/bi/B14048_02/pbr_arch.htm#i1005927
    http://download.oracle.com/docs/cd/B25016_08//doc/dl/bi/B14048_02/pbr_run.htm#g1022421
    Regards
    Rainer

  • Footer problem when exporting to pdf

    I'm losing my footers when i export to pdf? Any ideas?

    Post Author: vtec
    CA Forum: Exporting
    We are having a similar issue. Importing a perfectly justified word document as an OLE Object in Crystal.  The document seems perfect in the viewer but when exported to PDF, the text seems to overlap each other and there are huge spaces between words.  Using Crystal 11 release 2 (version 11.5.8.826).  Any help would be greatly appreciated.

  • Problem when transform a smartform to pdf

    Hi all:
       When I run the program to dispaly pdf transformed from smartform, 
    the IE explorer is busy dead, have you ever met the same problem?
    thank you very much

    Interesting!
    the article would appear to be wrong!
    You don't need to call this FM at all - indeed - as it is only called with exporting parameters it is not going to change your form at all!
    in the code:
    lt_otfdata[] = lv_ssf_output-otfdata[].
    call function 'SSFCOMP_PDF_PREVIEW'
    exporting
    i_otf = lt_otfdata
    exceptions
    convert_otf_to_pdf_error = 1
    cntl_error = 2
    others = 3.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    data: l_dummy type standard table of tline,
    pdf_data type xstring,
    pdf_size type i.
    remove the section:
    call function 'SSFCOMP_PDF_PREVIEW'
    exporting
    i_otf = lt_otfdata
    exceptions
    convert_otf_to_pdf_error = 1
    cntl_error = 2
    others = 3.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    hopefully you can now generate your PDF.
    Let us know if you have any further problems.
    Chris

  • Having problems when exporting to pdf. PLEASE HELP!!!!

    Hi everyone!
    I used the business resume template to make my own. When I export it as a Pdf, however, it looks really really bad. Ive got a slight idea of why this happens: Acrobat converts the helvetica.dfont (only for mac) into TTF files so it can embed the fonts. This causes the font to skew and lose its real kerning and everything becomes a mess. I also tried to go to print, then hit preview, then save it as PNGs and then create a pdf based on images but i still get a way lower quality than the one on pages. I even tried to open the helvetica.dfont file on fontlab and then generate an opentype (Otf) font to see if I could get a better result but it seems to happen the same.
    I forgot to say I need to email it, that's why Im trying to get a way to get people Im sending it to to see it the exact same way even if they dont have the font installed on their computers - which is the most possible scenario.
    I hope you can help me!
    Thank you very much!
    Message was edited by: tikifan

    Henrik, so what you say is that with pdf 1.6 the problem might be solved???
    It's not simply the PDF version, its as well how the PDF is made. On prepress lists this has been discussed for a decade and a half.
    The intelligent font model of the Unicode Consortium and the intelligent profile model of the International Color Consortium are expressed as tagged file formats, but the PostScript interpreter ignores tagged file formats. Adobe Acrobat Distiller is an Adobe PostScript interpreter.
    In order to present the tagged file format of the intelligent font model to the PostScript interpreter, the tags that contain the semantics for the imageable shapes are stripped and the tag that contains the imageable shapes is subset. The intact tags of the intelligent font file are not embedded.
    In order to present the tagged file format of the intelligent profile model to the PostScript interpreter, the tags are also subset and tag that corresponds to the relative colourmetric transform with black point compensation, which is the transform in PostScript colour management, is embedded.
    If PostScript is not intermediate format, the tagged file format of the intelligent profile model may be embedded in PDF 1.3 and higher, but the tagged file format of the intelligent font model may only be embedded in PDF 1.6 and higher, and only with Microsoft line layout logic, not with Apple line layout logic.
    What Acrobat reports as embedded fonts is not easy to relate to what the original font was. If the original font data was TrueType housed in the tagged file format of the intelligent font model, and if PostScript was intermediate, the font data itself may have been transformed to PostScript Type 1 before embedding, or the font data may stay TrueType but packaged as a PostScript Type 1 font program dictionary per the Type 42 Specification.
    If you want to know what Type 42 refers to, then it is a reference to a passage in the Hitchhiker's Guide to the Galaxy. Which is probably the lay of the logic, too .
    /HH

  • Problem when printing from PDF created by InDesign

    Ok, here's the scenario!
    I have a flyer, created in InDesign. I have drawn a grey curve (in InDesign) which goes at the top of each page.
    I import a transparent logo in PSD format, and place it on top of the grey curve.
    In InDesign and when I PDF it, it looks fine (at any zoom level).
    However when I print it, there is a slight outline around the transparent logo and it has a slightly different shade of grey as its background (it stands out from the curve).
    Does anyone know why this could be?  I also tried importing the logo with the same grey background as in InDesign but the same problem occurs.
    Any help appreciated!

    If you can't select composite CMYK it means your printer isn't postscript, or you aren't using the postscript driver option if one is available.
    Since this is a printer-related function, not a property of the file itself, you don't want to do anything to your pdf to compensate. That's the printer's job, if necessary, when he processes your PDF.

  • Margins problem when printing to PDF (Pages '09 v4.0.3 build 766)

    Hi,
    I don't know if this is connected to the latest Mac OS X v10.6.4 update, but some of my machines exhibit a very curious behaviour.
    + multiple pages A4 document
    + choose File > Print, click on "Save as PDF", under the PDF button
    ++ set pages 6 & 7 to print
    ++ set 2 pages per spread, so as to have Pages shrink the A4 document to somewhat A5, and have the two pages side-by-side on the same sheet
    ++ save the PDF
    Then, when I open the PDF with Preview, the margins are all wrong (i.e. too big, there's too much white running around).
    And from Preview's inspector, I can tell that the Page Size is set to US Letter, although in Pages both the document size AND the Printing Format are set to A4.
    The most curious part of the story is that my MacPro, my work MacBook Pro 13 and a white MacBook exhibit the problem, whereas my personal iMac 27" DOES NOT.
    And they are all running Mac OS X v10.6.4, with ALL the most recent updates, and the exact same version of Pages!!!
    I suspect that something has been changed in a framework somewhere, but I cannot figure out what it is...
    Any idea is welcome!
    Thanks,
    K2r

    I can do the same in TextEdit (although it's even more painful to control the margins!!).
    My problem is not that Pages won't put pages on one sheet; It's that the generated PDF does not respect the sheet physical size (A4 vs. US Letter), thus adding wider margins all around the document.

Maybe you are looking for