<?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: String splitting at double hyphen while exporting from Spool to excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-splitting-at-double-hyphen-while-exporting-from-spool-to-excel/m-p/5655881#M1286721</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;Give a sigle quote ( ' ) in front of the string.&lt;/P&gt;&lt;P&gt;Just try if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: v_str type string.

v_str = '123456--7'.

if v_str CA '--'.

  CONCATENATE '''' v_str  into v_str.

endif.

write:/ v_str.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2009 09:14:03 GMT</pubDate>
    <dc:creator>former_member222860</dc:creator>
    <dc:date>2009-05-26T09:14:03Z</dc:date>
    <item>
      <title>String splitting at double hyphen while exporting from Spool to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-splitting-at-double-hyphen-while-exporting-from-spool-to-excel/m-p/5655879#M1286719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;        My report output contains a string with double hyphen in one of the column of ALV. When i run the report in background and try to export the result from Spool to excel, the string is splitting into two separate columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: if the value is 123456--7 then, it will split into 1232456 in one column  and 7 in another&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea to prevent this? please suggest a solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 09:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-splitting-at-double-hyphen-while-exporting-from-spool-to-excel/m-p/5655879#M1286719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T09:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: String splitting at double hyphen while exporting from Spool to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-splitting-at-double-hyphen-while-exporting-from-spool-to-excel/m-p/5655880#M1286720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to save the o/p in a notepad or in *.rtf format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy and paste the data from notepad to xls sheet, ensure the columns in the xls sheet are Text formatted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinayak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 09:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-splitting-at-double-hyphen-while-exporting-from-spool-to-excel/m-p/5655880#M1286720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T09:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: String splitting at double hyphen while exporting from Spool to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-splitting-at-double-hyphen-while-exporting-from-spool-to-excel/m-p/5655881#M1286721</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;Give a sigle quote ( ' ) in front of the string.&lt;/P&gt;&lt;P&gt;Just try if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: v_str type string.

v_str = '123456--7'.

if v_str CA '--'.

  CONCATENATE '''' v_str  into v_str.

endif.

write:/ v_str.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 09:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-splitting-at-double-hyphen-while-exporting-from-spool-to-excel/m-p/5655881#M1286721</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-05-26T09:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: String splitting at double hyphen while exporting from Spool to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-splitting-at-double-hyphen-while-exporting-from-spool-to-excel/m-p/5655882#M1286722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks mahesh for the reply,&lt;/P&gt;&lt;P&gt;           i tried this, it wont work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 09:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-splitting-at-double-hyphen-while-exporting-from-spool-to-excel/m-p/5655882#M1286722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T09:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: String splitting at double hyphen while exporting from Spool to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-splitting-at-double-hyphen-while-exporting-from-spool-to-excel/m-p/5655883#M1286723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might happen if you have already issued a "text to columns" in one of the excel sheets with delimiter option '-'.&lt;/P&gt;&lt;P&gt;Close all the excel documents and open a new excel sheet and try to copy the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 09:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-splitting-at-double-hyphen-while-exporting-from-spool-to-excel/m-p/5655883#M1286723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T09:56:08Z</dc:date>
    </item>
  </channel>
</rss>

