<?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: MOd and Div in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806265#M346058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;double == is not required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_var = n mod 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v_var eq 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Dec 2006 05:08:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-14T05:08:53Z</dc:date>
    <item>
      <title>MOd and Div</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806264#M346057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if ( ( n MOD 2 ) == 0 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i say this in my syntax, it throws an error saying that mod is not supported. Can anybody tell me why. As far as i knw, it is the right syntax.&lt;/P&gt;&lt;P&gt; please correct me if im wrong. &lt;/P&gt;&lt;P&gt; Same is the error even for Div operator too.&lt;/P&gt;&lt;P&gt;im trying to display only even numbers in this particular program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806264#M346057</guid>
      <dc:creator>rnb86</dc:creator>
      <dc:date>2006-12-14T05:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: MOd and Div</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806265#M346058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;double == is not required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_var = n mod 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v_var eq 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806265#M346058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T05:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: MOd and Div</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806266#M346059</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( ( n MOD 2 ) = 0 ).&lt;/P&gt;&lt;P&gt; ...&lt;/P&gt;&lt;P&gt;else.&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;&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>Thu, 14 Dec 2006 05:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806266#M346059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T05:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: MOd and Div</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806267#M346060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ferrry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thanx for your suggestion, but i trie with single "=" also, but i havnt got the output.&lt;/P&gt;&lt;P&gt;I got the answer to my question but what i need is that why the output is not displayed when i say  n mod 2 = 0 is my query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806267#M346060</guid>
      <dc:creator>rnb86</dc:creator>
      <dc:date>2006-12-14T05:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: MOd and Div</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806268#M346061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can  not use mathematical computation in If expression.&lt;/P&gt;&lt;P&gt;you may calculate the vaue first and then can compare to zero.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;var2 = var1 mod 2.&lt;/P&gt;&lt;P&gt;If var2 = 0.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;else&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;Pragya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:33:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806268#M346061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T05:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: MOd and Div</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806269#M346062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt; When u say mod it means that the remainder is zero for e.g 4 MOD 2 = 0 ,&lt;/P&gt;&lt;P&gt;  if this  condidtion is satisfied then only the output is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just Try out this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter : p_n1 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : g_result type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute g_result = p_n1 mod 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  g_result = 0.&lt;/P&gt;&lt;P&gt; write 'Remainder is zero'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; write 'Remainder is not zero'.&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt; Vaibhav B Gawali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806269#M346062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T05:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: MOd and Div</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806270#M346063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Pragya and Vaibhav. &lt;/P&gt;&lt;P&gt;       &amp;lt;b&amp;gt;I did not knw that the mod and div operatoions can't be performed within the if condition&amp;lt;/b&amp;gt;. Thank you Pragya for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as for Vaibhav, thank you for your answer too. I know the logic and i already finished this report. But i wanted to knw why the mod was not working in the IF condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to you all, my doubt has been clarified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mod-and-div/m-p/1806270#M346063</guid>
      <dc:creator>rnb86</dc:creator>
      <dc:date>2006-12-14T05:41:47Z</dc:date>
    </item>
  </channel>
</rss>

