<?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: Logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/4147283#M991683</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;Let your field of input be  p_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have to set validation condition on this field in AT SELECTION-SCREEN ON p_input event. follow the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameters:
    p_input type i.
 
Data: 
   w_rem type i.
 
 
AT SELECTION-SCREEN on p_input.
 
w_rem  = p_input MOD 10.
 
 
If w_num NE 0.        " that is not a multiple of 10

 Message 'Enter only multiple of 10'Type 'E'.
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;then go with your logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Jul 2008 06:12:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-26T06:12:20Z</dc:date>
    <item>
      <title>Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/4147281#M991681</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;I have a requirement such that the user has to enter only the multiples of 10....like 10,20,30,40,50...If he enters 1,2,3,5,6, or anything that is not a multiple of 10.I need to give a error message.I wud be happy if u can write logic below.Please let me know.How to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 05:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/4147281#M991681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-26T05:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/4147282#M991682</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;Write this way-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Parameters:
    p_num type i.

Data: w_num type i.


At SELECTION-SCREEN.

w_num = p_num MOD 10.


If w_num NE 0.  "Error
 Message 'Wrong Entry' Type 'E'.
Endif.

START-OF-SELECTION.

Write: P_num.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 05:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/4147282#M991682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-26T05:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/4147283#M991683</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;Let your field of input be  p_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have to set validation condition on this field in AT SELECTION-SCREEN ON p_input event. follow the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameters:
    p_input type i.
 
Data: 
   w_rem type i.
 
 
AT SELECTION-SCREEN on p_input.
 
w_rem  = p_input MOD 10.
 
 
If w_num NE 0.        " that is not a multiple of 10

 Message 'Enter only multiple of 10'Type 'E'.
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;then go with your logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 06:12:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/4147283#M991683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-26T06:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/4147284#M991684</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;do it this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameters: field type i.

data:
  w_field type i.

w_field = p_field mod 10.

at selection-screen on field.
 if w_field &amp;lt;&amp;gt; 0.
  
   message..........'enter mutiply og 10'.
 endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 06:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/4147284#M991684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-26T06:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/4147285#M991685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please stop double-posting between ABAP General and ABAP Dictionary!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is against [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rules&lt;EM&gt;of&lt;/EM&gt;Engagement].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 20:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/4147285#M991685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T20:08:50Z</dc:date>
    </item>
  </channel>
</rss>

