<?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 SCMS_BINARY_TO_STRING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824137#M1682359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Requirement :&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Need to Convert Binary Data(PDF data or DOC data or TXT data) into String.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Procedure:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;lt_phio_content is a binary table of Table Type SDOKCNTBIN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_BINARY_TO_STRING'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input_length&amp;nbsp; = v_fsize&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text_buffer&amp;nbsp;&amp;nbsp; = lv_string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; binary_tab&amp;nbsp;&amp;nbsp;&amp;nbsp; = lt_phio_content&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; failed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to retrieve exact content of RTF or DOC or PDF binary data(Table type &lt;SPAN style="color: #333333; font-size: 12px;"&gt;SDOKCNTBIN&lt;/SPAN&gt;) with this Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the output string when RTF binary data is passed&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fcharset0 Times New Roman;}{\f1\fswiss\fcharset0 Arial;}{\f2\fswiss\fcharset0 Tahoma;}}##{\colortbl ;\red0\green0\blue0;\red255\green255\blue255;}##{\stylesheet{ Normal;}{\s1 heading 1;}{\s2 he&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can able to get the correct string when binary data of text doc is passed with this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me more details on this function module to retrieve correct string when RTF or DOC or PDF binary data is passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Swetha.C&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2012 12:47:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-06-15T12:47:08Z</dc:date>
    <item>
      <title>SCMS_BINARY_TO_STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824137#M1682359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Requirement :&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Need to Convert Binary Data(PDF data or DOC data or TXT data) into String.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Procedure:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;lt_phio_content is a binary table of Table Type SDOKCNTBIN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_BINARY_TO_STRING'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input_length&amp;nbsp; = v_fsize&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text_buffer&amp;nbsp;&amp;nbsp; = lv_string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; binary_tab&amp;nbsp;&amp;nbsp;&amp;nbsp; = lt_phio_content&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; failed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to retrieve exact content of RTF or DOC or PDF binary data(Table type &lt;SPAN style="color: #333333; font-size: 12px;"&gt;SDOKCNTBIN&lt;/SPAN&gt;) with this Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the output string when RTF binary data is passed&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fcharset0 Times New Roman;}{\f1\fswiss\fcharset0 Arial;}{\f2\fswiss\fcharset0 Tahoma;}}##{\colortbl ;\red0\green0\blue0;\red255\green255\blue255;}##{\stylesheet{ Normal;}{\s1 heading 1;}{\s2 he&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can able to get the correct string when binary data of text doc is passed with this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me more details on this function module to retrieve correct string when RTF or DOC or PDF binary data is passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Swetha.C&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:47:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824137#M1682359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-15T12:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_BINARY_TO_STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824138#M1682360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may check this thread &lt;A _jive_internal="true" href="https://answers.sap.com/thread/2130257"&gt;http://scn.sap.com/thread/2130257&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Khare&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824138#M1682360</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2012-06-15T12:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_BINARY_TO_STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824139#M1682361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;works for me when I upload via CL_GIU_FRONTEND_SERVICES - method GUI_UPLOAD using "BIN" and into a binary table described like itab type table of tbl1024.&amp;nbsp; Then I get the actual file size with another method of the class... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you certain that you binary table is correct after your upload or import from apps server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 16:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824139#M1682361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-15T16:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_BINARY_TO_STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824140#M1682362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What exactly is incorrect with the RTF output that you are getting?&amp;nbsp; When I'm looking at that the only characters that look out of place are the '#' characters but I can say with 99.9% certainty that these represent carriage return/newline pairs because they are not displayable characters.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&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;Ryan Crosby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 17:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824140#M1682362</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2012-06-15T17:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_BINARY_TO_STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824141#M1682363</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;SPAN style="color: #333333; font-size: 12px;"&gt;"Convert Binary Data(PDF data or DOC data or TXT data) into String."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Binary is binary, String is character (character length depends on unicode).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;You can convert binary data to XSTRING using class &lt;/SPAN&gt;&lt;/P&gt;&lt;H3 class="r"&gt;&lt;EM&gt;cl_bcs_convert&lt;/EM&gt;&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Regards&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Clemens&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 22:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824141#M1682363</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2012-06-15T22:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_BINARY_TO_STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824142#M1682364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using function module BBP_PROCDOC_GETDETAIL to retrieve attachments in PHIO_CONTENT table of ET_ATTACH exporting parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PHIO_CONTENT is of table type BBPT_ATT_CONT(line type = SDOKCNTBIN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using FM SCMS_BINARY_TO_STRING, &lt;/P&gt;&lt;P&gt;1. We are able to convert the text document binary data retrieved from&amp;nbsp; PHIO_CONTENT to string exactly as it is in the document.&lt;/P&gt;&lt;P&gt;2. We are not able to convert the PDF binary data retrieved from PHIO_CONTENT to string exactly as it is in the PDF document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please help me out of this problem to retrieve PDF data as string with this FM (SCMS_BINARY_TO STRING) other wise suggest me how to convert the PDF binary data retrieved from BBPT_ATT_CONT to string format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Swetha.C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 10:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824142#M1682364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-18T10:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_BINARY_TO_STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824143#M1682365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I only deal with PDF in XSTRING and binary tables.&amp;nbsp; I don't know what you would get with converting to a string, but I doubt it would be readable or usable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 14:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824143#M1682365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-18T14:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_BINARY_TO_STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824144#M1682366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Break Point,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah. You are correct that PDF deals with binary data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to display the PDF data in my adobe form(created in SFP Tcode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Swetha.C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 15:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-binary-to-string/m-p/8824144#M1682366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-18T15:26:53Z</dc:date>
    </item>
  </channel>
</rss>

