<?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 solution for a small syntactical error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342324#M516441</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 wrote a statement as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     if itab_vkorg-vkorg IN ( 'ARO','SRO','WRO','NRO','ERO','SROB' ).&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;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its giving error  -- &amp;gt;Comma without preceding colon (after IF ?).		&lt;/P&gt;&lt;P&gt;Can anyone tell whats the correct suntax  for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2007 06:02:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-14T06:02:16Z</dc:date>
    <item>
      <title>solution for a small syntactical error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342324#M516441</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 wrote a statement as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     if itab_vkorg-vkorg IN ( 'ARO','SRO','WRO','NRO','ERO','SROB' ).&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;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its giving error  -- &amp;gt;Comma without preceding colon (after IF ?).		&lt;/P&gt;&lt;P&gt;Can anyone tell whats the correct suntax  for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 06:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342324#M516441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T06:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: solution for a small syntactical error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342325#M516442</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;You cannot use IN operator for the IF statement..Instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a ranges and then use otherwise use OR condition..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ITAB_VKORG-VKORG = 'ARO' OR&lt;/P&gt;&lt;P&gt;    ITAB_VKORG-VKORG = 'SRO' OR &lt;/P&gt;&lt;P&gt;    ITAB_VKORG-VKORG = 'WRO' OR &lt;/P&gt;&lt;P&gt;    ITAB_VKORG-VKORG = 'NRO' OR &lt;/P&gt;&lt;P&gt;    ITAB_VKORG-VKORG = 'ERO' OR&lt;/P&gt;&lt;P&gt;    ITAB_VKORG-VKORG ='SROB'.&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;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 06:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342325#M516442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T06:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: solution for a small syntactical error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342326#M516443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: itab like LFA1 OCCURS 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from LFA1 into table ITAB up to 3 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab.&lt;/P&gt;&lt;P&gt;    if itab-LIFNR = 'AB45'&lt;/P&gt;&lt;P&gt;      OR ITAB-LIFNR = 'AB46'&lt;/P&gt;&lt;P&gt;      OR ITAB-LIFNR = 'AB47'.&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;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 06:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342326#M516443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T06:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: solution for a small syntactical error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342327#M516444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren&lt;/P&gt;&lt;P&gt; Thanks a lot......In  WHERE  condition  only we can use the IN stmt..right.&lt;/P&gt;&lt;P&gt;Anyway thank u very much   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 06:07:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342327#M516444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T06:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: solution for a small syntactical error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342328#M516445</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;Yes..If you are giving fixed values in the IN...&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>Thu, 14 Jun 2007 06:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342328#M516445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T06:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: solution for a small syntactical error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342329#M516446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use IN paramter for a Range or select-options or in Where condn of select statement&lt;/P&gt;&lt;P&gt;Better put all these values 'ARO','SRO','WRO','NRO','ERO','SROB'  in Ranges table  and use the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  itab_vkorg-vkorg IN r_vkorg&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;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 06:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution-for-a-small-syntactical-error/m-p/2342329#M516446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T06:10:05Z</dc:date>
    </item>
  </channel>
</rss>

