<?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 Problem with if statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035554#M1171144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a if statement like&lt;/P&gt;&lt;P&gt; if n = 'times'&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="exp"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="exp"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;N is a parameter defined on screen..Now if the user enters TIMES (caps lock on) ideally it should pass the condition ( Upper case doesnt make any difference in my program ) But it is failing because of IF statement being case sensitive.&lt;/P&gt;&lt;P&gt;How should I make my IF statement case insensitive... ie whether user enters 'times' or 'TIMES' it should pass the condition??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2009 11:56:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-15T11:56:48Z</dc:date>
    <item>
      <title>Problem with if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035554#M1171144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a if statement like&lt;/P&gt;&lt;P&gt; if n = 'times'&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="exp"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="exp"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;N is a parameter defined on screen..Now if the user enters TIMES (caps lock on) ideally it should pass the condition ( Upper case doesnt make any difference in my program ) But it is failing because of IF statement being case sensitive.&lt;/P&gt;&lt;P&gt;How should I make my IF statement case insensitive... ie whether user enters 'times' or 'TIMES' it should pass the condition??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 11:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035554#M1171144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T11:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035555#M1171145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have already hardcoded the condition with small letters, then simply translate the N value with small letters &amp;amp; then pass to if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;translate N lowercase.

if n = 'times'
{ exp}
else.
{ exp }
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 11:59:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035555#M1171145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T11:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035556#M1171146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead of n = 'times'&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;n eq 'times'&lt;/P&gt;&lt;P&gt;nd what did u declare n as &lt;/P&gt;&lt;P&gt;is n a character or string&lt;/P&gt;&lt;P&gt;if u declared n as string&lt;/P&gt;&lt;P&gt;then use n eq times&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 11:59:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035556#M1171146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T11:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035557#M1171147</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 your select-parameter give lower-case,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what ever the user enters TIMES ot times it accepts lin lower case and you can pass the if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: p_file(255) type c lower case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 12:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035557#M1171147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T12:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035558#M1171148</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;opps.. posted tiwce..&lt;/P&gt;&lt;P&gt;ignore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to your select-parameter give lower-case,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what ever the user enters TIMES ot times it accepts lin lower case and you can pass the if condition/&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;nazeer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: N a z e e r on Jan 15, 2009 5:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 12:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035558#M1171148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T12:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035559#M1171149</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;PARAMETER: n type string LOWER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If n = 'TIMES'.&lt;/P&gt;&lt;P&gt; WRITE:/ 'hi'.&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;   WRITE:/ 'wrong'.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code will work for ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 12:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035559#M1171149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T12:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035560#M1171150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Translate the value in upper case before passing it to if condition.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 12:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035560#M1171150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T12:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035561#M1171151</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 Hard coded value in Capital Letter.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETER: n type string .
 
If n  EQ 'TIMES'.

EXP.

else.

WRITE:/ EXP.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope it will work for your requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arun Kayal.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 12:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/5035561#M1171151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T12:11:10Z</dc:date>
    </item>
  </channel>
</rss>

