<?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: SCMS_TEXT_TO_BINARY - Problems converting data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-problems-converting-data/m-p/6704185#M1452825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi, 
&amp;lt;li&amp;gt;Once you get Binary data using &lt;STRONG&gt;SCMS_TEXT_TO_BINARY&lt;/STRONG&gt;, You need call &lt;STRONG&gt;SCMS_BINARY_TO_XSTRING&lt;/STRONG&gt; to convert that binary data to xstring format, use it . 

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2010 16:44:04 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2010-02-23T16:44:04Z</dc:date>
    <item>
      <title>SCMS_TEXT_TO_BINARY - Problems converting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-problems-converting-data/m-p/6704184#M1452824</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 have to convert an internal table in a binary string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I red several threads referring to this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*OUTPUT STRUCTURE&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF tp_tab,&lt;/P&gt;&lt;P&gt;       vbeln LIKE vbak-vbeln,&lt;/P&gt;&lt;P&gt;       erdat LIKE vbak-erdat,&lt;/P&gt;&lt;P&gt;       kunnr LIKE vbak-kunnr,&lt;/P&gt;&lt;P&gt;       name1 LIKE kna1-name1.&lt;/P&gt;&lt;P&gt;TYPES: END OF tp_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*GENERAL TABLE&lt;/P&gt;&lt;P&gt;DATA: it_data TYPE standard table of tp_tab,&lt;/P&gt;&lt;P&gt;      lt_att_content_hex TYPE TABLE OF solix.                          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....omissis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_TEXT_TO_BINARY'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FIRST_LINE            = 1&lt;/P&gt;&lt;P&gt;   LAST_LINE             = 10&lt;/P&gt;&lt;P&gt;   APPEND_TO_TABLE       = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MIMETYPE              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&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;    text_tab              = it_data&lt;/P&gt;&lt;P&gt;    binary_tab           = lt_att_content_hex&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;&lt;/P&gt;&lt;P&gt;As you can see my internal table consist of 4 fields. the table consist of 10 rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the binary table contains only the first fields of the table (so VBELN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 15:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-problems-converting-data/m-p/6704184#M1452824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T15:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_TEXT_TO_BINARY - Problems converting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-problems-converting-data/m-p/6704185#M1452825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi, 
&amp;lt;li&amp;gt;Once you get Binary data using &lt;STRONG&gt;SCMS_TEXT_TO_BINARY&lt;/STRONG&gt;, You need call &lt;STRONG&gt;SCMS_BINARY_TO_XSTRING&lt;/STRONG&gt; to convert that binary data to xstring format, use it . 

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 16:44:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-problems-converting-data/m-p/6704185#M1452825</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2010-02-23T16:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_TEXT_TO_BINARY - Problems converting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-problems-converting-data/m-p/6704186#M1452826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i agree with  &lt;STRONG&gt;Venkat.O&lt;/STRONG&gt;    as he told  u do like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*- Convert the string into xstring
  call function 'SCMS_STRING_TO_XSTRING'
   exporting
     TEXT     =k_string
   IMPORTING
     BUFFER   = v_xstring
   EXCEPTIONS
     FAILED         = 1
     OTHERS         = 2.
  IF SY-SUBRC  0.
   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
 
*-  Convert the string into binary table
 CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
   EXPORTING
     buffer     = v_xstring
   TABLES
     binary_tab = ta_excelx.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 10:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-problems-converting-data/m-p/6704186#M1452826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-25T10:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_TEXT_TO_BINARY - Problems converting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-problems-converting-data/m-p/6704187#M1452827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Krupa janiji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am also following same way. first i am converting my document path to xstring format using scms_text_to_xstring. then next i want convert xstring to binary format i am using this fm scms_xstring_to_binary. still i am getting xstring format only. can you please suggest me. how solve this&amp;nbsp; issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i am pasting my code here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: buffer type xstring,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_string type string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_string = 'file name'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SCMS_STRING_TO_XSTRING'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; exporting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TEXT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = lv_string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BUFFER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = buffer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FAILED&amp;nbsp;&amp;nbsp;&amp;nbsp;&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; OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF SY-SUBRC&amp;nbsp; 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-&amp;nbsp; Convert the string into binary table&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = buffer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; binary_tab = lt_binary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 09:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-problems-converting-data/m-p/6704187#M1452827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-24T09:10:38Z</dc:date>
    </item>
  </channel>
</rss>

