<?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: REPLACE OFFSET with space in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544573#M1266047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nathalie, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE w_data1 USING '* '.    (*space)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MayM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2009 10:45:15 GMT</pubDate>
    <dc:creator>MaryM</dc:creator>
    <dc:date>2009-04-21T10:45:15Z</dc:date>
    <item>
      <title>REPLACE OFFSET with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544570#M1266044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this coding &lt;/P&gt;&lt;P&gt;data : w_data(100),w_data1 TYPE string, w_data2 TYPE xstring.&lt;/P&gt;&lt;P&gt;data w_replace(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;w_data1 = 'A A A*R'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_replace = ' '.&lt;/P&gt;&lt;P&gt;REPLACE SECTION OFFSET 5 LENGTH 1 OF w_data1 WITH w_replace .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE w_data1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to replace the '*' in w_ data1 by a space. In w_replace I put 'ALT+32' and if I look the HEX code w_replace = 20. And it's exactly what I want.&lt;/P&gt;&lt;P&gt;But when I use REPLACE, the '*' is replace by nothing !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_data1 before REPLACE = 41204120412A52&lt;/P&gt;&lt;P&gt;w_data1 after   REPLACE = 412041204152&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want 41204120412052&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried with w_replace = Space , = ' ', = 'ALT+32'  For all, same problem&lt;/P&gt;&lt;P&gt;I also tried with  'ALT+255' , the HEX code is A0, and it's correctly replaced in w_data1, but for the rest of the program, I really need a blank corresponding at '20'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- w_data1 is used to send by mail a PDF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idea ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nathalie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 10:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544570#M1266044</guid>
      <dc:creator>nathalie_michel</dc:creator>
      <dc:date>2009-04-21T10:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE OFFSET with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544571#M1266045</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;Use Overlay operator as per below example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ONE(16), TWO(16). &lt;/P&gt;&lt;P&gt;ONE = '----****++++....'. &lt;/P&gt;&lt;P&gt;TWO = '-&lt;STRONG&gt;+.-&lt;/STRONG&gt;&lt;EM&gt;.-*&lt;/EM&gt;.-*+.'. &lt;/P&gt;&lt;P&gt;OVERLAY ONE WITH TWO ONLY '.'. &lt;/P&gt;&lt;P&gt;OVERLAY TWO WITH ONE ONLY '.+'. &lt;/P&gt;&lt;P&gt;OVERLAY ONE WITH TWO ONLY '+*'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field ONE now contains '--&lt;DEL&gt;-**&lt;STRONG&gt;-&lt;/STRONG&gt;+&lt;EM&gt;-*&lt;/EM&gt;.' and field TWO contains '-*&lt;/DEL&gt;-**&lt;STRONG&gt;-&lt;/STRONG&gt;+&lt;EM&gt;-*&lt;/EM&gt;.'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 10:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544571#M1266045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T10:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE OFFSET with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544572#M1266046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data: lv_fdpos        type syst-fdpos,
        lv_part1         type c length 5,
        lv_part2         type c length 20,
        lv_final           type char30.

search w_data1 for '.*.'.
lv_fdpos = sy-fdpos - 1.
lv_part1 = w_data1(lv_fdpos).
lv_fdpos = sy-fdpos + 1.
lv_part2 = w_data1+lv_fdpos.
concatenate lv_part1 lv_part2 into lv_final. separated by space.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 10:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544572#M1266046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T10:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE OFFSET with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544573#M1266047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nathalie, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE w_data1 USING '* '.    (*space)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MayM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 10:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544573#M1266047</guid>
      <dc:creator>MaryM</dc:creator>
      <dc:date>2009-04-21T10:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE OFFSET with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544574#M1266048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: wdata1 type string value 'A A A*R'.

TRANSLATE wdata1 USING '* '. " give space using Alt+255

write:/ wdata1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 11:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544574#M1266048</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-04-21T11:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE OFFSET with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544575#M1266049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestion was very helpfull and solved my problem .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 11:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-offset-with-space/m-p/5544575#M1266049</guid>
      <dc:creator>nathalie_michel</dc:creator>
      <dc:date>2009-04-21T11:57:58Z</dc:date>
    </item>
  </channel>
</rss>

