<?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: COMPARING AMOUNT WITH STRING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044082#M420628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are checking PO Item price is greater than 1000 or not, you can do it directly. Why do you need to convert it into string?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2007 04:33:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-28T04:33:30Z</dc:date>
    <item>
      <title>COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044076#M420622</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;&lt;/P&gt;&lt;P&gt;I am having a string which contains a numeric value . I want to check whether that value is greater than 1000 or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actully I am having a problem like in our server , whenever the amount value is in currency EURO, the ',' in the amount gets replaced by ' . ' and ' . ' gets replaced by ' , '. Now I am trying to replace that ' , ' by ' . '  and ' . ' by  ' , ' . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried like this&lt;/P&gt;&lt;P&gt;IF STRING GE '1000'.&lt;/P&gt;&lt;P&gt;But its not working.&lt;/P&gt;&lt;P&gt;Now I have to check if the amount value is greater that 1000 or not .&lt;/P&gt;&lt;P&gt;Please suggest the way to do it.&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>Wed, 28 Mar 2007 03:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044076#M420622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T03:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044077#M420623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;WRITE &amp;lt;source&amp;gt; TO &amp;lt;target&amp;gt; CURRENCY &amp;lt;Currency&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 03:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044077#M420623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T03:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044078#M420624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;  IF STRING GE '1000'. it is wrong statement,&lt;/P&gt;&lt;P&gt;Try this INT = STRLEN(&amp;lt;string name&amp;gt;).&lt;/P&gt;&lt;P&gt;IF INT &amp;gt; 1000.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Hope this helps you, reply for queries, Shall post you the updates.&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;Kumar. .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 03:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044078#M420624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T03:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044079#M420625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: value type p.&lt;/P&gt;&lt;P&gt;write string to value.&lt;/P&gt;&lt;P&gt;if value &amp;gt; 1000.&lt;/P&gt;&lt;P&gt;****&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 03:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044079#M420625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T03:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044080#M420626</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;  try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_amt(4) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_amt = string. * which is havng amt..&lt;/P&gt;&lt;P&gt; (numc will not take characters )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now..compare &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if w_amt &amp;gt; 1000. &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it works...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 04:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044080#M420626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T04:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044081#M420627</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;Thanks for all your replies but nothing is working , I am posting the code now &lt;/P&gt;&lt;P&gt;Please tell what can be done to remove the error.&lt;/P&gt;&lt;P&gt;The code which is giving error is in bold.&lt;/P&gt;&lt;P&gt;FORM zfun_con18 TABLES in_tab STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;output_tab STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;  DATA : sub1 TYPE string,&lt;/P&gt;&lt;P&gt;         sub2 TYPE ebelp,&lt;/P&gt;&lt;P&gt;         sub3 TYPE ebeln,&lt;/P&gt;&lt;P&gt;         amount4 TYPE netpr.&lt;/P&gt;&lt;P&gt;  DATA : it_ekko LIKE ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : curr TYPE string.&lt;/P&gt;&lt;P&gt;  DATA: value type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE in_tab WITH KEY 'EKKO-EBELN'.&lt;/P&gt;&lt;P&gt;  sub3 = in_tab-value.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM ekko INTO it_ekko WHERE ebeln = sub3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE in_tab WITH KEY 'EKPO-NETPR'.&lt;/P&gt;&lt;P&gt;  sub1 = in_tab-value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE sub1 TO value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;IF it_ekko-waers EQ 'EUR'.&lt;/P&gt;&lt;P&gt;    IF value GT 1000.&lt;/P&gt;&lt;P&gt;      REPLACE ',' IN sub1 WITH '.' .&lt;/P&gt;&lt;P&gt;      REPLACE '.' IN sub1 WITH ',' .&lt;/P&gt;&lt;P&gt;      CONDENSE sub1.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;    replace ',' in sub1 with '.' .&lt;/P&gt;&lt;P&gt;    CONDENSE sub1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 04:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044081#M420627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T04:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044082#M420628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are checking PO Item price is greater than 1000 or not, you can do it directly. Why do you need to convert it into string?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 04:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044082#M420628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T04:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044083#M420629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Coz I am passing the values from  the script to the program and I dont think we can compare the values passed from the script to the program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls correct if I am wrong.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 04:36:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044083#M420629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T04:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044084#M420630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not clear with your requirement. We always extract values in driver program and pass these values to script to display in the layout.&lt;/P&gt;&lt;P&gt;What is your requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW REPLACE syntax is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ','  WITH '.'  INTO sub1. instead of  REPLACE ',' IN sub1 WITH '.' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashish Gundawar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 04:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044084#M420630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T04:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044085#M420631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use value type p instead of n.&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;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 04:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044085#M420631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T04:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044086#M420632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actully my requirement is to pass the amount value to the program from the script , check whether this value is greater than 1000, if yes then replace , with .  and . with , otherwise keep the value as it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 04:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044086#M420632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T04:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044087#M420633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW REPLACE syntax is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ',' WITH '.' INTO sub1. instead of REPLACE ',' IN sub1 WITH '.' .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 04:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044087#M420633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T04:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: COMPARING AMOUNT WITH STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044088#M420634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just check this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : text(10) type c value '1,000,200'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace all occurrences of ',' in text with ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if text gt '1000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : / 'hi'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 05:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-amount-with-string/m-p/2044088#M420634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T05:07:48Z</dc:date>
    </item>
  </channel>
</rss>

