<?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: Remove '-' from the value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032025#M417131</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;value = '1800-12-1233-00'.&lt;/P&gt;&lt;P&gt;if value+0(1) = '1'.&lt;/P&gt;&lt;P&gt;value+0(1) = space.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;translate value using '- '.&lt;/P&gt;&lt;P&gt;condense value no-gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Navneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2007 23:04:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-07T23:04:20Z</dc:date>
    <item>
      <title>Remove '-' from the value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032021#M417127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a telephone number. it can come in any form like&lt;/P&gt;&lt;P&gt;1-800-222-3333 or&lt;/P&gt;&lt;P&gt;1800-222-3333 or&lt;/P&gt;&lt;P&gt;1 800 222 3333 or&lt;/P&gt;&lt;P&gt;1800 222 3333 or&lt;/P&gt;&lt;P&gt;800-222-3333   or&lt;/P&gt;&lt;P&gt;800 222 3333 or it can be of any other form. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i need that number in 8002223333. It should not contain any characters or spaces in between and also it should not contain '1' in front of the number. Is there any way we can do it?.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 22:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032021#M417127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T22:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Remove '-' from the value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032022#M417128</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;You can use TRANSLATE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TRANSLATE WA_PHONE USING '1 '.
TRANSLATE WA_PHONE USING '- '.
CONDENSE WA_PHONE NO-GAPS.
&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 22:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032022#M417128</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-03-07T22:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Remove '-' from the value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032023#M417129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace all occurrance of '-' in v_phone from ' '.&lt;/P&gt;&lt;P&gt;Condese v_phone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 23:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032023#M417129</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-03-07T23:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove '-' from the value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032024#M417130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: tot_digits TYPE i.

TRANSLATE phone_number USING '- '.
CONDENSE phone_number NO-GAPS.
tot_digits = strlen( phone_number).
IF tot_digits = 11 AND phone_number+0(1) = '1'.
  SHIFT phone_number LEFT.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 23:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032024#M417130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T23:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remove '-' from the value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032025#M417131</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;value = '1800-12-1233-00'.&lt;/P&gt;&lt;P&gt;if value+0(1) = '1'.&lt;/P&gt;&lt;P&gt;value+0(1) = space.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;translate value using '- '.&lt;/P&gt;&lt;P&gt;condense value no-gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Navneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 23:04:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032025#M417131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T23:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Remove '-' from the value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032026#M417132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just remember that if you are using this TRANSLATE WA_PHONE USING '1 ' statement will replace all 1s in the phone number in the string and you will get wrong results. If I have phone number 12133144111, the above statement after CONDENSE will give me 23344 and I am sure that is not what you want. You just want to replace the first 1 only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 21:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-from-the-value/m-p/2032026#M417132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T21:05:04Z</dc:date>
    </item>
  </channel>
</rss>

