<?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: using the IN statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775981#M334724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the problem is with the statement before / after the IF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2006 17:18:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-19T17:18:09Z</dc:date>
    <item>
      <title>using the IN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775976#M334719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can soembody send soem sample code using an IN statement?  I am using it but get errors.  Proble is the editor is in German and I don't know what it is saying!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF COMM_STRUCTURE-COSTELMNT  IN ('84300005','84300006').&lt;/P&gt;&lt;P&gt;  RESULT = 'PM_LABOR'.&lt;/P&gt;&lt;P&gt;  elseif COMM_STRUCTURE-COSTELMNT IN (61100950).&lt;/P&gt;&lt;P&gt;  RESULT = 'PM_NON_STOCK'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 17:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775976#M334719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T17:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: using the IN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775977#M334720</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;&lt;/P&gt;&lt;P&gt;For IF statement you cannot use fixed values..Instead create a ranges..and use it in your IN..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: R_MATNR FOR MARA-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R_MATNR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;R_MATNR-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;R_MATNR-LOW = 'ABCD'.&lt;/P&gt;&lt;P&gt;APPEND R_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R_MATNR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;R_MATNR-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;R_MATNR-LOW = 'ABCDADSF'.&lt;/P&gt;&lt;P&gt;APPEND R_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF MARA-MATNR IN R_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: / 'TRUE'.&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;  WRITE: / 'FALSE'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 17:07:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775977#M334720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T17:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: using the IN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775978#M334721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;IF COMM_STRUCTURE-COSTELMNT IN ( '84300005' , '84300006' ).
RESULT = 'PM_LABOR'.
elseif COMM_STRUCTURE-COSTELMNT IN ( '61100950' ).
RESULT = 'PM_NON_STOCK'.
endif. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you have space after and before ().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 17:07:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775978#M334721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T17:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: using the IN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775979#M334722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did that and now it says &lt;/P&gt;&lt;P&gt;E:Comma without preceding colon (after IF ?).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 17:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775979#M334722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T17:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: using the IN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775980#M334723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sample code I am looing at uses it.  I thought it was due to missing spaces.   I can't really use a range becuase in some cases it isn't a range of values so i quess I could use the equal to&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 17:17:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775980#M334723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T17:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: using the IN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775981#M334724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the problem is with the statement before / after the IF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 17:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775981#M334724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T17:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: using the IN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775982#M334725</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 single values also you can use the RANGES..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to give EQ  in the option..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: R_MATNR FOR MARA-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R_MATNR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;R_MATNR-OPTION = &amp;lt;b&amp;gt;'EQ'&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;R_MATNR-LOW = 'ABCD'.&lt;/P&gt;&lt;P&gt;APPEND R_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R_MATNR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;R_MATNR-OPTION = &amp;lt;b&amp;gt;'EQ'&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;R_MATNR-LOW = 'ABCDADSF'.&lt;/P&gt;&lt;P&gt;APPEND R_MATNR&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 17:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775982#M334725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T17:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: using the IN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775983#M334726</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;here is a suggestion for your statement. Instead of using IN Statement you can use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if COMM_STRUCTURE-COSTELMNT &amp;gt;= ''84300005' AND COMM_STRUCTURE-COSTELMNT &amp;lt;= '84300006'.&lt;/P&gt;&lt;P&gt;RESULT = 'PM_LABOR'.&lt;/P&gt;&lt;P&gt;elseif COMM_STRUCTURE-COSTELMNT = 61100950.&lt;/P&gt;&lt;P&gt;RESULT = 'PM_NON_STOCK'.&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it useful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 17:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775983#M334726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T17:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: using the IN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775984#M334727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


IF   ( COMM_STRUCTURE-COSTELMNT = '84300005'
    or COMM_STRUCTURE-COSTELMNT = '84300006' ).
   RESULT = 'PM_LABOR'.
elseif COMM_STRUCTURE-COSTELMNT = '61100950' .
   RESULT = 'PM_NON_STOCK'.
endif. 


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 17:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775984#M334727</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-19T17:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: using the IN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775985#M334728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHEN i DO WHAT Narendran suggests it works.  I think he is correct and I can't use constants with and IF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 17:24:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775985#M334728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T17:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: using the IN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775986#M334729</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 reward points for helpful answers..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 17:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-in-statement/m-p/1775986#M334729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T17:26:31Z</dc:date>
    </item>
  </channel>
</rss>

