<?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: Conversion FAQ in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-faq/m-p/1848408#M359650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;first of all thanks for your help but could you please explain why we use:-&lt;/P&gt;&lt;P&gt;DATA: lt_pdfdata LIKE TABLE OF tline WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: lt_otf TYPE STANDARD TABLE OF itcoo WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;lt_doctab TYPE STANDARD TABLE OF docs WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;lt_otfdata TYPE STANDARD TABLE OF itcoo WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what is the use of &amp;lt;b&amp;gt;tline&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now i have taken an internal table and then fill it using GUI_UPLOAD FM.&lt;/P&gt;&lt;P&gt;After this i m using this internal table and passing it to function 'CONVERT_OTF_2_PDF'.&lt;/P&gt;&lt;P&gt;IS my approch right please help me i am not able to understand the concept of how to use this FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2007 07:50:49 GMT</pubDate>
    <dc:creator>RKSK</dc:creator>
    <dc:date>2007-01-10T07:50:49Z</dc:date>
    <item>
      <title>Conversion FAQ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-faq/m-p/1848405#M359647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAPGURUS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to convert a text file to pdf file for this i am creating a internal table and then fill it from the input file (this i do by GUI_UPLOAD FM). After that i download the data in another file and then i now want to convert the downloaded file into pdf file for this i am using the FM CONVERT_OTF_2_PDF.&lt;/P&gt;&lt;P&gt;But this is not working and giving me dumb when executed.&lt;/P&gt;&lt;P&gt;could anyone provide me a simple program so that i can understand the use of thr CONVERT_OTF_2_PDF FM.&lt;/P&gt;&lt;P&gt;Please reply as soon as possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 13:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-faq/m-p/1848405#M359647</guid>
      <dc:creator>RKSK</dc:creator>
      <dc:date>2007-01-09T13:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion FAQ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-faq/m-p/1848406#M359648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this custom FM...You must convert your text file to a spool request and call the FM -:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*"----------------------------------------------------------
*"*"Interfase local
*"  IMPORTING
*"     REFERENCE(FILENAME) TYPE  STRING
*"----------------------------------------------------------

    SELECT RQIDENT
    INTO (T_TSP01-RQIDENT)
    FROM TSP01
    WHERE RQOWNER EQ SY-UNAME
      AND RQCLIENT EQ SY-MANDT.
    APPEND T_TSP01.
    ENDSELECT.

    SORT T_TSP01 DESCENDING.

    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
         EXPORTING
              SRC_SPOOLID              = T_TSP01-RQIDENT
              NO_DIALOG                = ''
         IMPORTING
              PDF_BYTECOUNT            = NUMBYTES
              PDF_SPOOLID              = PDFSPOOLID
              BTC_JOBNAME              = JOBNAME
              BTC_JOBCOUNT             = JOBCOUNT
         TABLES
              PDF                      = PDF
         EXCEPTIONS
              ERR_NO_OTF_SPOOLJOB      = 1
              ERR_NO_SPOOLJOB          = 2
              ERR_NO_PERMISSION        = 3
              ERR_CONV_NOT_POSSIBLE    = 4
              ERR_BAD_DSTDEVICE        = 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 EQ 0.

      CALL FUNCTION 'GUI_DOWNLOAD'
           EXPORTING
                BIN_FILESIZE            = NUMBYTES
                FILENAME                = FILENAME
                FILETYPE                = 'BIN'
           TABLES
                DATA_TAB                = PDF
           EXCEPTIONS
                FILE_WRITE_ERROR        = 1
                NO_BATCH                = 2
                GUI_REFUSE_FILETRANSFER = 3
                INVALID_TYPE            = 4
                NO_AUTHORITY            = 5
                UNKNOWN_ERROR           = 6.

      IF SY-SUBRC EQ 0.
        DELETE FROM TSP01 WHERE RQIDENT EQ T_TSP01-RQIDENT.
      ENDIF.

    ENDIF.

  ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 13:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-faq/m-p/1848406#M359648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T13:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion FAQ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-faq/m-p/1848407#M359649</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;Refer thread &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2348765"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lt_pdfdata LIKE TABLE OF tline WITH HEADER LINE.
DATA: lt_otf TYPE STANDARD TABLE OF itcoo WITH HEADER LINE,
lt_doctab TYPE STANDARD TABLE OF docs WITH HEADER LINE,
lt_otfdata TYPE STANDARD TABLE OF itcoo WITH HEADER LINE.

*-- Convert the OTF data to PDF data
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
use_otf_mc_cmd = 'X'
IMPORTING
bin_filesize = v_bin
TABLES
otf = lt_otf
doctab_archive = it_doctab
lines = lt_pdfdata
EXCEPTIONS
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
OTHERS = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an alternative SX_OBJECT_CONVERT_OTF_PDF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 13:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-faq/m-p/1848407#M359649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T13:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion FAQ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-faq/m-p/1848408#M359650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;first of all thanks for your help but could you please explain why we use:-&lt;/P&gt;&lt;P&gt;DATA: lt_pdfdata LIKE TABLE OF tline WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: lt_otf TYPE STANDARD TABLE OF itcoo WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;lt_doctab TYPE STANDARD TABLE OF docs WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;lt_otfdata TYPE STANDARD TABLE OF itcoo WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what is the use of &amp;lt;b&amp;gt;tline&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now i have taken an internal table and then fill it using GUI_UPLOAD FM.&lt;/P&gt;&lt;P&gt;After this i m using this internal table and passing it to function 'CONVERT_OTF_2_PDF'.&lt;/P&gt;&lt;P&gt;IS my approch right please help me i am not able to understand the concept of how to use this FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 07:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-faq/m-p/1848408#M359650</guid>
      <dc:creator>RKSK</dc:creator>
      <dc:date>2007-01-10T07:50:49Z</dc:date>
    </item>
  </channel>
</rss>

