<?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_XSTRING_TO_BINARY'  add zero '0000000'  to xstring in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-xstring-to-binary-add-zero-0000000-to-xstring/m-p/7597366#M1567946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. The code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: xxx type xstring.&lt;/P&gt;&lt;P&gt;data: data_tab type table of x255.&lt;/P&gt;&lt;P&gt;data: len type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SCMS_XSTRING_TO_BINARY'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    buffer = xxx&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;OUTPUT_LENGTH         = len&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    binary_tab = data_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_gui_frontend_services=&amp;gt;gui_download(&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;BIN_FILESIZE = len&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   filename = FILENAME&lt;/P&gt;&lt;P&gt;   filetype = 'BIN'&lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;   data_tab = data_tab ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jan 2011 05:25:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-05T05:25:56Z</dc:date>
    <item>
      <title>'SCMS_XSTRING_TO_BINARY'  add zero '0000000'  to xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-xstring-to-binary-add-zero-0000000-to-xstring/m-p/7597364#M1567944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a RAWSTRING xxx (get from DB) and want download it using GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;According to some posts, I call 'SCMS_XSTRING_TO_BINARY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: data_tab type table of x255.&lt;/P&gt;&lt;P&gt;call function 'SCMS_XSTRING_TO_BINARY'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    buffer = xxx&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    binary_tab = data_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I find that 'SCMS_XSTRING_TO_BINARY'  add many  '0000000000' after xxx,  for example:&lt;/P&gt;&lt;P&gt;xxx:..............2FF84D8592BDC35AEA507762&lt;/P&gt;&lt;P&gt;data_tab:  .....2FF84D8592BDC35AEA5077620000000000000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want the '0000000000' , How can I do?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 02:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-xstring-to-binary-add-zero-0000000-to-xstring/m-p/7597364#M1567944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T02:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: 'SCMS_XSTRING_TO_BINARY'  add zero '0000000'  to xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-xstring-to-binary-add-zero-0000000-to-xstring/m-p/7597365#M1567945</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;    In addition to the 'binary_tab' the FM returns the string length 'output_length' . Use this length in reading the 'data_tab' &lt;/P&gt;&lt;P&gt;    and restrict the Zero's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          buffer                  = xxx&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          output_length         = lv_strlen&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          binary_tab            = data_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 04:43:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-xstring-to-binary-add-zero-0000000-to-xstring/m-p/7597365#M1567945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T04:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: 'SCMS_XSTRING_TO_BINARY'  add zero '0000000'  to xstring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scms-xstring-to-binary-add-zero-0000000-to-xstring/m-p/7597366#M1567946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. The code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: xxx type xstring.&lt;/P&gt;&lt;P&gt;data: data_tab type table of x255.&lt;/P&gt;&lt;P&gt;data: len type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SCMS_XSTRING_TO_BINARY'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    buffer = xxx&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;OUTPUT_LENGTH         = len&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    binary_tab = data_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_gui_frontend_services=&amp;gt;gui_download(&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;BIN_FILESIZE = len&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   filename = FILENAME&lt;/P&gt;&lt;P&gt;   filetype = 'BIN'&lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;   data_tab = data_tab ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 05:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scms-xstring-to-binary-add-zero-0000000-to-xstring/m-p/7597366#M1567946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T05:25:56Z</dc:date>
    </item>
  </channel>
</rss>

