<?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: ASCII Code in ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ascii-code-in-abap/m-p/5944907#M1335261</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;This character is special one, so you can't print it out. In SAP all special charcter which can't be printed are replaced with placeholder #.  They are intended to do theri special purpose in flat file, once you open it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the following:&lt;/P&gt;&lt;P&gt;- use fm &lt;STRONG&gt;HR_KR_XSTRING_TO_STRING&lt;/STRONG&gt; to convert xstring with value  '1F' (30 decimal value) to string&lt;/P&gt;&lt;P&gt;- write this string to certain place in internal string table (where you want later use it in the file)&lt;/P&gt;&lt;P&gt;- download this table as to file&lt;/P&gt;&lt;P&gt;- special character will do its purpose in text file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the same functionality as you would be placing &lt;STRONG&gt;Line Feed&lt;/STRONG&gt; (0x0A - 10 dec). It would be shown as # but once you open downlaoded file you don't see hash # anymore, but you see that &lt;EM&gt;new line&lt;/EM&gt; in that place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 08:58:02 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-07-30T08:58:02Z</dc:date>
    <item>
      <title>ASCII Code in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ascii-code-in-abap/m-p/5944906#M1335260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to enter a unique ASCII character called 'US' or Unit Separator in a text file being generated through a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ASCII code for US is 31. However when we try and do it programmatically the character '#' is getting populated.&lt;/P&gt;&lt;P&gt;The code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lv_sep type c.&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;xfs&amp;gt; type x.&lt;/P&gt;&lt;P&gt;assign lv_sep to &amp;lt;xfs&amp;gt; casting.&lt;/P&gt;&lt;P&gt;&amp;lt;xfs&amp;gt; = 0031.&lt;/P&gt;&lt;P&gt;write lv_sep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help us out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ravi Bhatnagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 07:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ascii-code-in-abap/m-p/5944906#M1335260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T07:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: ASCII Code in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ascii-code-in-abap/m-p/5944907#M1335261</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;This character is special one, so you can't print it out. In SAP all special charcter which can't be printed are replaced with placeholder #.  They are intended to do theri special purpose in flat file, once you open it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the following:&lt;/P&gt;&lt;P&gt;- use fm &lt;STRONG&gt;HR_KR_XSTRING_TO_STRING&lt;/STRONG&gt; to convert xstring with value  '1F' (30 decimal value) to string&lt;/P&gt;&lt;P&gt;- write this string to certain place in internal string table (where you want later use it in the file)&lt;/P&gt;&lt;P&gt;- download this table as to file&lt;/P&gt;&lt;P&gt;- special character will do its purpose in text file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the same functionality as you would be placing &lt;STRONG&gt;Line Feed&lt;/STRONG&gt; (0x0A - 10 dec). It would be shown as # but once you open downlaoded file you don't see hash # anymore, but you see that &lt;EM&gt;new line&lt;/EM&gt; in that place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 08:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ascii-code-in-abap/m-p/5944907#M1335261</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-07-30T08:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: ASCII Code in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ascii-code-in-abap/m-p/5944908#M1335262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try This.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lv_sep type c.&lt;/P&gt;&lt;P&gt;DATA : lv_sep1 type c.&lt;/P&gt;&lt;P&gt;data : m_text(2) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;xfs&amp;gt; type x.&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;yfs&amp;gt; type x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign lv_sep to &amp;lt;xfs&amp;gt; casting.&lt;/P&gt;&lt;P&gt;assign lv_sep1 to &amp;lt;yfs&amp;gt; casting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xfs&amp;gt; = 0085.&lt;/P&gt;&lt;P&gt;&amp;lt;yfs&amp;gt; = 0083.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate lv_sep lv_sep1 into m_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ m_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 09:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ascii-code-in-abap/m-p/5944908#M1335262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T09:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: ASCII Code in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ascii-code-in-abap/m-p/5944909#M1335263</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 used fm HR_KR_XSTRING_TO_STRING and it worked well !  Many thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 13:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ascii-code-in-abap/m-p/5944909#M1335263</guid>
      <dc:creator>audrey_ravenet2</dc:creator>
      <dc:date>2011-05-31T13:14:47Z</dc:date>
    </item>
  </channel>
</rss>

