<?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: Binary to Text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-to-text/m-p/4720353#M1108381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u please explain what l_pdf_data holds...so that we can check and correct ur error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2008 11:59:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-12T11:59:02Z</dc:date>
    <item>
      <title>Binary to Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-to-text/m-p/4720352#M1108380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i am using function module SCMS_BINARY_TO_STRING to convert Binary data [28*1000] to Text format.&lt;/P&gt;&lt;P&gt;DATA outrec TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_BINARY_TO_STRING'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input_length        = 28000&lt;/P&gt;&lt;P&gt;   FIRST_LINE          = 1&lt;/P&gt;&lt;P&gt;   LAST_LINE           = 28&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MIMETYPE            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt; text_buffer         = outrec&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OUTPUT_LENGTH       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    binary_tab          = l_pdf_data&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FAILED              = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS              = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;The resultant Text data is stored in "outrec" variable. But when i try to write this data to file, I notice that outrec does not contain all the data in the Binary format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please advice, if I am passing the parameters wrongly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shital&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 11:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-to-text/m-p/4720352#M1108380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T11:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Binary to Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-to-text/m-p/4720353#M1108381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u please explain what l_pdf_data holds...so that we can check and correct ur error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 11:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-to-text/m-p/4720353#M1108381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T11:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Binary to Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-to-text/m-p/4720354#M1108382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is how l_pdfdata gets populated. The below FM read data from PDF formated spool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Read the spool content&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FPCOMP_CREATE_PDF_FROM_SPOOL'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;    	i_spoolid = p_spono&lt;/P&gt;&lt;P&gt;    	i_partnum = '1'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      	e_pdf = pdf_data&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   	e_pdf_file = file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;    	ads_error = 1&lt;/P&gt;&lt;P&gt;    	usage_error = 2&lt;/P&gt;&lt;P&gt;    	system_error = 3&lt;/P&gt;&lt;P&gt;    	internal_error = 4&lt;/P&gt;&lt;P&gt;    OTHERS = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the spool  contents to prepare internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_len = XSTRLEN( pdf_data ).&lt;/P&gt;&lt;P&gt;WHILE l_len &amp;gt;= 1000.&lt;/P&gt;&lt;P&gt;  l_pdf_line = pdf_data+l_offset(1000).&lt;/P&gt;&lt;P&gt;  APPEND l_pdf_line TO l_pdf_data.&lt;/P&gt;&lt;P&gt;  ADD 1000 TO l_offset.&lt;/P&gt;&lt;P&gt;  SUBTRACT 1000 FROM l_len.&lt;/P&gt;&lt;P&gt;ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF l_len &amp;gt; 0.&lt;/P&gt;&lt;P&gt;  l_pdf_line = pdf_data+l_offset(l_len).&lt;/P&gt;&lt;P&gt;  APPEND l_pdf_line TO l_pdf_data.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 12:04:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-to-text/m-p/4720354#M1108382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T12:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Binary to Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-to-text/m-p/4720355#M1108383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unresolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2009 17:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-to-text/m-p/4720355#M1108383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-10T17:27:55Z</dc:date>
    </item>
  </channel>
</rss>

