<?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: Setting IF condition for random values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-if-condition-for-random-values/m-p/1466249#M219591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shital,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should you generate the random number also? or do you need to check the value obtained already....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use RANDOM_I4 or RANDOM_I2 for getting 4 digit/2digit numbers....(give the range between which you want to get the random values)....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can take these values into a range and check if your required value is in the range.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2006 12:51:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-04T12:51:05Z</dc:date>
    <item>
      <title>Setting IF condition for random values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-if-condition-for-random-values/m-p/1466246#M219588</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;for IF statement i want to check one variable value with a set of random values say e.g ( 10, 23, 234, 3, 45, ...) &lt;/P&gt;&lt;P&gt;What is the optimized way to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz LMK your comments.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 12:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-if-condition-for-random-values/m-p/1466246#M219588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T12:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Setting IF condition for random values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-if-condition-for-random-values/m-p/1466247#M219589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the RANGES..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF your value is in the range&lt;/P&gt;&lt;P&gt;YOUR CODE&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 12:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-if-condition-for-random-values/m-p/1466247#M219589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T12:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting IF condition for random values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-if-condition-for-random-values/m-p/1466248#M219590</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;As Sachin wrote , you can use declare a Range type and &lt;/P&gt;&lt;P&gt;populate it with all the possible values. Then check if you variable lies in that range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: w_val type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges: r_val for &amp;lt;field type&amp;gt;.&lt;/P&gt;&lt;P&gt;clear: r_val, r_val[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_val-option = 'I'.&lt;/P&gt;&lt;P&gt;r_val-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_val-low = 10.&lt;/P&gt;&lt;P&gt;append r_val. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_val-low = 23.&lt;/P&gt;&lt;P&gt;append r_val. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_val-low = 234.&lt;/P&gt;&lt;P&gt;append r_val. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If w_val not in r_val.&lt;/P&gt;&lt;P&gt;message 'Incorrect value' type 'E'..&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to do some processing at diffent values, u can use a Case statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case w_val.&lt;/P&gt;&lt;P&gt;when '10'.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;when '23'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when other..&lt;/P&gt;&lt;P&gt;Encase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 12:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-if-condition-for-random-values/m-p/1466248#M219590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T12:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Setting IF condition for random values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-if-condition-for-random-values/m-p/1466249#M219591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shital,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should you generate the random number also? or do you need to check the value obtained already....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use RANDOM_I4 or RANDOM_I2 for getting 4 digit/2digit numbers....(give the range between which you want to get the random values)....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can take these values into a range and check if your required value is in the range.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 12:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-if-condition-for-random-values/m-p/1466249#M219591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T12:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting IF condition for random values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-if-condition-for-random-values/m-p/1466250#M219592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot friends,&lt;/P&gt;&lt;P&gt;I already used RANGES but as I have many Values to compare I am not preferring Ranges.&lt;/P&gt;&lt;P&gt;Do tell if any other solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 13:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-if-condition-for-random-values/m-p/1466250#M219592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T13:44:32Z</dc:date>
    </item>
  </channel>
</rss>

