<?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: problem with zeros in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281322#M1388323</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 think you can use SHIFT statement as suggested. Press F1 on SHIFT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Nov 2009 17:26:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-14T17:26:37Z</dc:date>
    <item>
      <title>Replace: problem with zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281319#M1388320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to everybody&lt;/P&gt;&lt;P&gt;I have tihs values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;31.800&lt;/P&gt;&lt;P&gt;  0.300&lt;/P&gt;&lt;P&gt;  2.100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should to get this&lt;/P&gt;&lt;P&gt;31,800&lt;/P&gt;&lt;P&gt;00,300&lt;/P&gt;&lt;P&gt;02,100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use REPLACE ALL OCCURRENCES OF '.' IN lt_itob-id1 WITH ','  it is ok&lt;/P&gt;&lt;P&gt;but I get an error if I use REPLACE ALL OCCURRENCES OF space IN lt_itob-id1  WITH '0' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;Thanks a loto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Nov 2009 16:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281319#M1388320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-14T16:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replace: problem with zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281320#M1388321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;For pdding zeros in the begning use the following:&lt;/P&gt;&lt;P&gt;SHIFT RIGHT &amp;lt;variable&amp;gt; RIGHT DELETING TRAILING SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for replacing '.' with ',', i think you will ahve to make use of IF loop and do this operation withn it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Nov 2009 17:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281320#M1388321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-14T17:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replace: problem with zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281321#M1388322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please be more clear  .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Nov 2009 17:19:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281321#M1388322</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-11-14T17:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replace: problem with zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281322#M1388323</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 think you can use SHIFT statement as suggested. Press F1 on SHIFT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Nov 2009 17:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281322#M1388323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-14T17:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Replace: problem with zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281323#M1388324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Georgio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unable to answer incomplete questions: ID1 is no field of DB view ITOB. Thus you should give the field technical settings here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post a few code lines on how you populate the field (Don't worry, CIA knows anyway)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then someone can answer your question.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Nov 2009 18:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281323#M1388324</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-11-14T18:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replace: problem with zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281324#M1388325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;if the pattern of the variable in which u r taking value is constant,i.e if there are 3 values after decimal as shown in below code ,you can use below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : l_local(6)  TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_local = '0.300'.&lt;/P&gt;&lt;P&gt;concatenate '0' l_local into l_local.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '.' IN l_local WITH ',' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited By &lt;/P&gt;&lt;P&gt;Tejaswini Khante&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 06:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281324#M1388325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T06:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replace: problem with zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281325#M1388326</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;To Replace space with '0' use &lt;STRONG&gt;OVERLAY&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: l_val TYPE char6 VALUE '0.300'.

REPLACE ALL OCCURRENCES OF '.' IN l_val WITH ',' .
SHIFT l_val RIGHT DELETING TRAILING space.

OVERLAY l_val WITH '000000'.
WRITE l_val.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Farheen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 07:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-problem-with-zeros/m-p/6281325#M1388326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T07:17:47Z</dc:date>
    </item>
  </channel>
</rss>

