<?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: Converting XSTRING into PDF in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330814#M168612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am also talking about XSTRINGS only, i did one such. i converted otf to pdf and then pdf to string and then string to binary string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for otf to pdf &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_OTF_2_PDF&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;and from pdf to string&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_TABLE_TO_STRING&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;and then string to BINARY STRING&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SCMS_STRING_TO_XSTRING&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after i get the XSTRING data i am storing the data in application server in binary string format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jun 2006 10:37:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-09T10:37:00Z</dc:date>
    <item>
      <title>Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330808#M168606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a function module called ZL_CONVERT_OTF (its a custom built one) It has an output importing parameter of type XSTRING, in which the data, comes up from the smartform that's in question, into a variable of type xstring. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how to print this XSTRING into a pdf document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 09:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330808#M168606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T09:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330809#M168607</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;i am storing the Binary string in application server.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  open dataset l_in_file for output in binary mode.
  if sy-subrc &amp;lt;&amp;gt; 0.
    raise file_open_output_error.
  endif.
  transfer l_binarystring to l_in_file.
  close dataset l_in_file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else you can download the Binary data to PC using download with .pdf extension. filetype as BIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 10:08:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330809#M168607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T10:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330810#M168608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the string format or type of the variable l_in_file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 10:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330810#M168608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T10:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330811#M168609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any way to convert the xstring to pdf format, not using an intermediate binary format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 10:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330811#M168609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T10:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330812#M168610</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;l_in_file is of type rlgrap-filename, it is application server filepath.&lt;/P&gt;&lt;P&gt;i am opening the file, and transfering the binary data to application server.the same way you can use GUI_DOWNLOAD the binary string to pdf file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 10:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330812#M168610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T10:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330813#M168611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's totally deviating from my question...sorry Vijay&lt;/P&gt;&lt;P&gt;But my requirement is completely different. Have u worked with XSTRINGs specifically...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: vijay srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 10:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330813#M168611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T10:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330814#M168612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am also talking about XSTRINGS only, i did one such. i converted otf to pdf and then pdf to string and then string to binary string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for otf to pdf &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_OTF_2_PDF&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;and from pdf to string&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_TABLE_TO_STRING&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;and then string to BINARY STRING&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SCMS_STRING_TO_XSTRING&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after i get the XSTRING data i am storing the data in application server in binary string format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 10:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330814#M168612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T10:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330815#M168613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also i downloaded the binarystring(xstring) to pc as pdf file , i am able to open it with acrobat reader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 10:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330815#M168613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T10:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330816#M168614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. So u mean the XSTRING is nothing but Binary String?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 10:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330816#M168614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T10:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330817#M168615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijay just one more query, what are your parameters to the GUI_DOWNLOAD FM. what parameter ar u passsing as the table. GUI_DOWNLOAD FM needs tables parameter mandatorily, what are you passing in as the tables parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: vijay srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 10:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330817#M168615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T10:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330818#M168616</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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      DATA: BEGIN OF xstring occurs 0,
               xs TYPE Xstring,
            END OF xstring.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: length TYPE I.
 CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      FILENAME                         = path
      FILETYPE                         = 'BIN'
    IMPORTING
      FILELENGTH                       = length
    TABLES
      DATA_TAB                         = xstring
   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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 11:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330818#M168616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T11:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330819#M168617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the acrobat file wouldn't open up for me properly. also one thing I was unable to find the CONVERT_TABLE_TO_STRING function module. Which version of SAP are you running?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 11:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330819#M168617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T11:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Converting XSTRING into PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330820#M168618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI,&lt;/P&gt;&lt;P&gt;I AM WORKING on 4.7 version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION CONVERT_TABLE_TO_STRING.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  IMPORTING
*"     VALUE(I_TABLINE_LENGTH) TYPE  I
*"  EXPORTING
*"     REFERENCE(E_STRING) TYPE  STRING
*"  TABLES
*"      IT_TABLE TYPE  TABLE
*"----------------------------------------------------------------------

  data: l_length type i,
        l_space  type flag.

  loop at it_table.

    if l_space = 'X'.
      concatenate e_string it_table into e_string separated by ' '.
      clear l_space.
    else.
      concatenate e_string it_table into e_string.
    endif.

    l_length = i_tabline_length - 1.
    if it_table+l_length = ' '.
      l_space = 'X'.
    endif.
  endloop.

ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;what abt you///&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 11:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-into-pdf/m-p/1330820#M168618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T11:21:06Z</dc:date>
    </item>
  </channel>
</rss>

