<?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: Function Module : SCMS_BINARY_TO_TEXT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-scms-binary-to-text/m-p/1084036#M98729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the output in single line use FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCMS_BINARY_TO_STRING .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want the resulting string to be in an itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a itab type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: stringtab type standard table of string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append &amp;lt;result string from FM&amp;gt; to stringtab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2005 04:21:43 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2005-12-12T04:21:43Z</dc:date>
    <item>
      <title>Function Module : SCMS_BINARY_TO_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-scms-binary-to-text/m-p/1084033#M98726</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 use the follwoing Function Module to convert from Binary to Text.I call it in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 10 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_BINARY_TO_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    INPUT_LENGTH          = 255&lt;/P&gt;&lt;P&gt;             APPEND_TO_TABLE       = 'X'&lt;/P&gt;&lt;P&gt;            WRAP_LINES            = 'X'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    BINARY_TAB            = LT_BINARY&lt;/P&gt;&lt;P&gt;    TEXT_TAB              = LT_TEXT_OUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is because my input table LT_BINARY has binary fields of length 255 and i want the result to be returned as a concatenated text in the output table LT_TEXT_OUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But every time the next 255 chars are appended to the output table LT_TEXT_OUT, i get the text in a new line and not continuously.&lt;/P&gt;&lt;P&gt;So instead of getting continous text, i am getting text seperated by a new line after every 255 chars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get continuous text????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2005 13:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-scms-binary-to-text/m-p/1084033#M98726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-11T13:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module : SCMS_BINARY_TO_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-scms-binary-to-text/m-p/1084034#M98727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Every time this internal table &amp;lt;b&amp;gt;LT_TEXT_OUT&amp;lt;/b&amp;gt; will be appended with the converted text, it is not possible from this Function module to get the data in a single line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to meet your requirment, then use the same code which you have written, then add this code.&lt;/P&gt;&lt;P&gt;create one more internal table and loop the Internale table &amp;lt;b&amp;gt;LT_TEXT_OUT&amp;lt;/b&amp;gt; and move to the new internal table,&lt;/P&gt;&lt;P&gt;lets take an example, if you want the first 2 lines in a single row, then write with in the loop..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move: LT_TEXT_OUT to New_inernal table.&lt;/P&gt;&lt;P&gt;   if sy-tabix = 2.&lt;/P&gt;&lt;P&gt;     move: LT_TEXT_OUT to New_inernal table+255(255).&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this way you can write the code to meet your requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps you to solve the Problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2005 13:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-scms-binary-to-text/m-p/1084034#M98727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-11T13:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module : SCMS_BINARY_TO_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-scms-binary-to-text/m-p/1084035#M98728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Step 1:&lt;/P&gt;&lt;P&gt;After using the Function module 'SCMS_BINARY_TO_TEXT'.&lt;/P&gt;&lt;P&gt;Step 2:&lt;/P&gt;&lt;P&gt;Use below function module inorder to convert as string from a given internal table(that fetched from(step 1)). &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_TEXT_TO_XSTRING'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIRST_LINE       = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LAST_LINE        = 0&lt;/P&gt;&lt;/LI&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;   BUFFER           =  lv_XSTRING&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    TEXT_TAB         = LT_TEXT_OUT&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FAILED           = 1&lt;/P&gt;&lt;P&gt;   OTHERS           = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2005 15:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-scms-binary-to-text/m-p/1084035#M98728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-11T15:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module : SCMS_BINARY_TO_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-scms-binary-to-text/m-p/1084036#M98729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the output in single line use FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCMS_BINARY_TO_STRING .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want the resulting string to be in an itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a itab type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: stringtab type standard table of string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append &amp;lt;result string from FM&amp;gt; to stringtab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 04:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-scms-binary-to-text/m-p/1084036#M98729</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-12-12T04:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module : SCMS_BINARY_TO_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-scms-binary-to-text/m-p/1084037#M98730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the question is answered, can you mark it so and close it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 10:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-scms-binary-to-text/m-p/1084037#M98730</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-12-12T10:30:29Z</dc:date>
    </item>
  </channel>
</rss>

