<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Formatting problem when transform to PDF in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141347#M1191600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specify the line-size and line-count in the report statement. this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zka51151_test LINE-SIZE 132 LINE-COUNT 32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Avinash Kodarapu on Jan 28, 2009 9:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2009 15:56:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-28T15:56:59Z</dc:date>
    <item>
      <title>Formatting problem when transform to PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141346#M1191599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found a problem with program RSTXPDFT4 and functions CONVERT_ABAPSPOOL ... and CONVERT_OTFSPOOL...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to convert to PDF the spool generated by a report using "classic" list programming (write and so on).&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched for notes and forums, and I found nothing about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas? Is this a limitation of these FM's? Is there any other way of converting a list spool into PDF?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rafa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 15:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141346#M1191599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T15:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem when transform to PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141347#M1191600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specify the line-size and line-count in the report statement. this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zka51151_test LINE-SIZE 132 LINE-COUNT 32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Avinash Kodarapu on Jan 28, 2009 9:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 15:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141347#M1191600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T15:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem when transform to PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141348#M1191601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;convert_otf&lt;/STRONG&gt; FM&lt;/P&gt;&lt;P&gt;specify this parameter of the fm&lt;/P&gt;&lt;P&gt;max_linewidth               = 132&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kartik tarla on Jan 28, 2009 10:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:38:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141348#M1191601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T16:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem when transform to PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141349#M1191602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_OTFSPOOLJOB_2_PDF&lt;/P&gt;&lt;P&gt;pass u r spool number &lt;/P&gt;&lt;P&gt;no_dialog = ''&lt;/P&gt;&lt;P&gt;dst_device = 'LOCL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:53:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141349#M1191602</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-01-28T16:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem when transform to PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141350#M1191603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Avinash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these instructions are already declared...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
REPORT  z_test_list NO STANDARD PAGE HEADING
                    LINE-SIZE 132
                    LINE-COUNT 65
                    MESSAGE-ID zzrn_msj.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 17:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141350#M1191603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T17:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem when transform to PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141351#M1191604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, Kartik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannon use these FM because I need to retrieve the spool order generated, as this report should be execute in batch-mode via Job.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 17:07:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141351#M1191604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T17:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem when transform to PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141352#M1191605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, tarangini&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried as you said and still the same...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other idea??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 17:08:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141352#M1191605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T17:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem when transform to PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141353#M1191606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you paste your code...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 17:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141353#M1191606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T17:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem when transform to PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141354#M1191607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rafel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN FM make no_dialog as 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pop up will appear i think there u can change the format of the.Then u will get whole data as i know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 17:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141354#M1191607</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-01-28T17:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem when transform to PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141355#M1191608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , check code here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 17:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141355#M1191608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T17:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem when transform to PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141356#M1191609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report is defined as 65 x 132 (which should be landscape),  but the PDF file appears in portrait (65 x 80 I presume).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is in the funcions CONVERTxxx_SPOOLJOBxxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did anybody have this problem? Should I think that it's not possible to convert list output spools to PDF???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code I used at home in the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
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.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 08:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141356#M1191609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T08:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem when transform to PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141357#M1191610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've finally found the solution (more or less).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I make a "submit" to the report, using a JOB (JOB_OPEN and JOB_CLOSE FM's) and I don't know why the system is changing the page layout from whatever it is (X_65_132..) to X_PAPER, so the list looses all its formating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've changed the way to retrieve the spool, and now I'm using "SUBMIT REPORT TO SAPSPOOL", and I'm giving this the print options as this way of submitting allows it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not a smart option, but it works and it's what I need now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I would like to program a generic solution, so I could submit any report and retrieve the generated spool in PDF without passing the page layout (which I will probably won't know in most of cases).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if anybody knows any other way of doing this, of if there's a way of knowing the page layout of a report before launching it with the submit instruction, I would try to try (uff) all given ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, and thanks to you all for your help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 11:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-problem-when-transform-to-pdf/m-p/5141357#M1191610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T11:27:42Z</dc:date>
    </item>
  </channel>
</rss>

