<?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 addding '0'. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453525#M13934</link>
    <description>&lt;P&gt;My wording was incorrect, thanks for pointing it out.&lt;/P&gt;&lt;P&gt;I meant SOLIX line of length 255 bytes, the trailing zeroes are because of the empty bytes. Is "empty byte" the correct term here? &lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 11:58:09 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2017-04-06T11:58:09Z</dc:date>
    <item>
      <title>SCMS_TEXT_TO_BINARY addding '0'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453520#M13929</link>
      <description>&lt;P&gt;I want to convert  Text to binary..which is further added into mail attachment and sent to   mail..&lt;/P&gt;&lt;P&gt;But when I am using &lt;STRONG&gt;SCMS_TEXT_TO_BINARY , it  adds up zeros in the back &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Test example .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data : begin of t_dwn occurs 0,&lt;BR /&gt;  text1(30) type c,&lt;BR /&gt;
 end of t_dwn .&lt;/P&gt;&lt;P&gt;data: filesize type i,&lt;BR /&gt;
 lt_bin type solix_tab .&lt;/P&gt;&lt;P&gt;t_dwn-text1 = 'AB'.&lt;BR /&gt;
append t_dwn.&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;
call function 'SCMS_TEXT_TO_BINARY'&lt;BR /&gt;
 importing&lt;BR /&gt;
 output_length = filesize&lt;BR /&gt;
 tables&lt;BR /&gt;
 text_tab = t_dwn[]&lt;BR /&gt;
 binary_tab = lt_bin&lt;BR /&gt;
 exceptions&lt;BR /&gt;
 failed = 1&lt;BR /&gt;
 others = 2.&lt;/P&gt;&lt;P&gt;HERE &lt;STRONG&gt; t_dwn having  &lt;/STRONG&gt; A&lt;STRONG&gt;B is converted into binary...&lt;/STRONG&gt;&lt;STRONG&gt;41420D0A&lt;/STRONG&gt; but its add up zeroes into &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; lt_bin : looks like .41420D0A000000000000000000000000000000000000000000000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I don't want  zeros at the back .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;.I tried looking at other solution which suggested to use &lt;STRONG&gt;SCMS_STRING_TO_XSTRING and &lt;/STRONG&gt;&lt;STRONG&gt;SCMS_XSTRING_TO_BINARY &lt;/STRONG&gt;..but was not able to do that.&lt;/P&gt;&lt;P&gt;Please  suggest.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 09:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453520#M13929</guid>
      <dc:creator>former_member415002</dc:creator>
      <dc:date>2017-04-06T09:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_TEXT_TO_BINARY addding '0'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453521#M13930</link>
      <description>&lt;P&gt;The zeroes at the end represent the "blank" spaces. &lt;/P&gt;&lt;P&gt;What is exactly the problem you are facing with the trailing zeroes? &lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 10:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453521#M13930</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2017-04-06T10:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_TEXT_TO_BINARY addding '0'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453522#M13931</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;begin of t_dwn occurs 0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Oh please, pretty please, not in 2017!&lt;/P&gt;&lt;P&gt;And if you'd used contemporary instead of obsolete ABAP you might also find classes as CL_ABAP_CODEPAGE instead of (undocumented) function modules&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 10:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453522#M13931</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-04-06T10:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_TEXT_TO_BINARY addding '0'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453523#M13932</link>
      <description>&lt;P&gt;Are you sure? Shouldn't bLank spaces be something like 200020002000200020002000200020002000200020002000...&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 10:44:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453523#M13932</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-04-06T10:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_TEXT_TO_BINARY addding '0'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453524#M13933</link>
      <description>&lt;P&gt;I want to remove...the zeros which are creating extra space...&lt;/P&gt;&lt;P&gt;Eg :&lt;/P&gt;&lt;P&gt;Suppose my File has two line items..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hello&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hello India&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When my file is sent in mail..the extra zeroes..we got on converting text to binary....add up as space ..in 3rd line and cursor goes&lt;/P&gt;&lt;P&gt;1 line Hello&lt;/P&gt;&lt;P&gt;2 line Hello India&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3 line (this will be the blank line with cursor at some random place..generated due to extra 000 creating blank space)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So my problem is ..The cursor should stop exactly on 3rd line staring ..or second line end at &lt;STRONG&gt;HELLO INDIA .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This format is further uploaded..so extra 3rd line space...is creating problem&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 11:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453524#M13933</guid>
      <dc:creator>former_member415002</dc:creator>
      <dc:date>2017-04-06T11:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_TEXT_TO_BINARY addding '0'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453525#M13934</link>
      <description>&lt;P&gt;My wording was incorrect, thanks for pointing it out.&lt;/P&gt;&lt;P&gt;I meant SOLIX line of length 255 bytes, the trailing zeroes are because of the empty bytes. Is "empty byte" the correct term here? &lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 11:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453525#M13934</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2017-04-06T11:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_TEXT_TO_BINARY addding '0'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453526#M13935</link>
      <description>&lt;P&gt;Hello Horst,&lt;/P&gt;&lt;P&gt;Do we have any alternative to the FM &lt;STRONG&gt;SCMS_XSTRING_TO_BINARY &lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 05:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453526#M13935</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2017-04-07T05:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_TEXT_TO_BINARY addding '0'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453527#M13936</link>
      <description>&lt;P&gt;WYCIWYG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA xstr TYPE xstring VALUE '0123456789ABCDEF'.
DATA binary_line TYPE xstring.
DATA binary_tab LIKE TABLE OF line.
data(len) = 3.
DATA(length) = xstrlen( xstr ).
WHILE length &amp;gt;= len.
  APPEND xstr(len) TO binary_tab.
  SHIFT xstr BY len PLACES LEFT IN BYTE MODE.
  length = xstrlen( xstr ).
ENDWHILE.
IF length &amp;gt; 0.
  APPEND xstr TO binary_tab.
ENDIF.
cl_demo_output=&amp;gt;display( binary_tab ).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Apr 2017 10:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453527#M13936</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-04-07T10:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: SCMS_TEXT_TO_BINARY addding '0'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453528#M13937</link>
      <description>&lt;P&gt;you can send text via the email standard features, why do you need to convert into binary? Maybe it is for getting it in a given code page, but otherwise it's not needed.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 11:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-text-to-binary-addding-0/m-p/453528#M13937</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-04-07T11:54:53Z</dc:date>
    </item>
  </channel>
</rss>

