<?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: Select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641350#M285631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion Ravikumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to check for many different cases where Blart = RV, SA and so on...&lt;/P&gt;&lt;P&gt;Is this the only best possible solution or ...any more advice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2006 18:45:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-15T18:45:17Z</dc:date>
    <item>
      <title>Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641339#M285620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;I am trying to use this select statement and its giving me a syntax error.&lt;/P&gt;&lt;P&gt;Error- &lt;/P&gt;&lt;P&gt;Field it_bsis-blart is unknown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbrk~vbeln&lt;/P&gt;&lt;P&gt;         vbrp~matnr&lt;/P&gt;&lt;P&gt;         vbrk~kunag&lt;/P&gt;&lt;P&gt;         vbrp~aubel&lt;/P&gt;&lt;P&gt;         vbrp~fkimg&lt;/P&gt;&lt;P&gt;    INTO TABLE it_vbrp&lt;/P&gt;&lt;P&gt;    FROM vbrk&lt;/P&gt;&lt;P&gt;   INNER JOIN vbrp&lt;/P&gt;&lt;P&gt;      ON vbrk&lt;SUB&gt;vbeln EQ vbrp&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;     FOR ALL entries IN it_bsis&lt;/P&gt;&lt;P&gt;   WHERE vbrp~vbeln = it_bsis-belnr&lt;/P&gt;&lt;P&gt;     AND it_bsis-blart = 'RV'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data in blart field in it_bsis Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 18:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641339#M285620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641340#M285621</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;If you are using FOR ALL ENTRIES the source and the target field shoud have the same data type and length..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the error message you are getting..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also ..There is no field called IT_BSIS-BLART in the table VBRK and VBRP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR ALL entries IN it_bsis&lt;/P&gt;&lt;P&gt;WHERE vbrp~vbeln = it_bsis-belnr&lt;/P&gt;&lt;P&gt;AND &amp;lt;b&amp;gt;it_bsis-blart&amp;lt;/b&amp;gt; = 'RV'.&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>Wed, 15 Nov 2006 18:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641340#M285621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641341#M285622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are firing a SELECT statement with internal table field in the WHERE clause of the SELECT. You cannot do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_BSIS is a internal table BLART is field of the internal and not the database table VBRK or VBRP, so you cannot use that in the where clause&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 the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 18:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641341#M285622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641342#M285623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shejal ,&lt;/P&gt;&lt;P&gt;I have modified the select staement . Please use the below one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbrk~vbeln&lt;/P&gt;&lt;P&gt;vbrp~matnr&lt;/P&gt;&lt;P&gt;vbrk~kunag&lt;/P&gt;&lt;P&gt;vbrp~aubel&lt;/P&gt;&lt;P&gt;vbrp~fkimg&lt;/P&gt;&lt;P&gt;INTO TABLE it_vbrp&lt;/P&gt;&lt;P&gt;FROM vbrk&lt;/P&gt;&lt;P&gt;INNER JOIN vbrp&lt;/P&gt;&lt;P&gt;ON vbrk&lt;SUB&gt;vbeln EQ vbrp&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;FOR ALL entries IN it_bsis&lt;/P&gt;&lt;P&gt;WHERE vbrp~vbeln = it_bsis-belnr&lt;/P&gt;&lt;P&gt;AND vbrk~blart = 'RV'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;siva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 18:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641342#M285623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641343#M285624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shejal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are actually selecting data from vbrk, and while syntax check it checks whether all the fields listed in the &amp;lt;b&amp;gt;WHERE&amp;lt;/b&amp;gt; condition are present in vbrk so its showing an syntax error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 18:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641343#M285624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641344#M285625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you cannot use it_bsis-blart  on the left handside.. the fields on the left hand side should be available in the tables you are SELECTing from..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 18:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641344#M285625</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-11-15T18:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641345#M285626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shejal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is due to you didnt have any field with name 'it_bsis-blart' in it_vbrp.&lt;/P&gt;&lt;P&gt;When you are building an expression in where condition the left hand field should be in specified table. But in your case you didnt have  'it_bsis-blart' in it_vbrp, so this causes to syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just comment this line and check for syntax errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 18:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641345#M285626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641346#M285627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for the suggestions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how do I handle this problem without using the loop statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to access VBRK and VBRP table and get data into it_vbrp only for those records in it_bsid where blart = RV and comparing it_bsid-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinkin gof using the loop at it_bsid where blart = 'RV, and endloop. and write the code withing the loop for selecting.&lt;/P&gt;&lt;P&gt;But that is talking long time for extraction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 18:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641346#M285627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641347#M285628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;move the 'RV' entries into another itab &amp;amp; use that itab in the FOR ALL ENTRIES statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 18:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641347#M285628</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-11-15T18:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641348#M285629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IT_BSID_TEMP[] = IT_BSIS[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE IT_BSID_TEMP WHERE BLART &amp;lt;&amp;gt; 'RV'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use IT_BSID_TEMP in the for all entries clause.&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>Wed, 15 Nov 2006 18:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641348#M285629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641349#M285630</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;Move the records in the internal table IT_BSIS to temporary internal table IT_BSIS_TMP and remove the records that are not RV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_BSIS_TMP LIKE IT_BSIS OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_BSIS_TMP[] = IT_BSIS[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE IT_BSIS_TMP WHERE BLART &amp;lt;&amp;gt; 'RV'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbrk~vbeln&lt;/P&gt;&lt;P&gt;vbrp~matnr&lt;/P&gt;&lt;P&gt;vbrk~kunag&lt;/P&gt;&lt;P&gt;vbrp~aubel&lt;/P&gt;&lt;P&gt;vbrp~fkimg&lt;/P&gt;&lt;P&gt;INTO TABLE it_vbrp&lt;/P&gt;&lt;P&gt;FROM vbrk&lt;/P&gt;&lt;P&gt;INNER JOIN vbrp&lt;/P&gt;&lt;P&gt;ON vbrk&lt;SUB&gt;vbeln EQ vbrp&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;FOR ALL entries IN &amp;lt;b&amp;gt;it_bsis_tmp&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE vbrp~vbeln = &amp;lt;b&amp;gt;it_bsis_tmp&amp;lt;/b&amp;gt;-belnr.&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>Wed, 15 Nov 2006 18:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641349#M285630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641350#M285631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion Ravikumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to check for many different cases where Blart = RV, SA and so on...&lt;/P&gt;&lt;P&gt;Is this the only best possible solution or ...any more advice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 18:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641350#M285631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641351#M285632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from a performance perspective, this is the best solution.&lt;/P&gt;&lt;P&gt;Else you have to loop at the internal table, and you know the side effects of the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 18:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641351#M285632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641352#M285633</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;I don't think you have another solution other than delete ... &amp;lt;&amp;gt; ... and use that internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you have use LOOP AT..WHERE ..And use the select with in the loop..&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>Wed, 15 Nov 2006 18:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641352#M285633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641353#M285634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal Shetty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 18:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641353#M285634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T18:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641354#M285635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shejal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think we can specify itab-field = &amp;lt;cond&amp;gt; in WHERE clause of SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 19:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1641354#M285635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T19:01:04Z</dc:date>
    </item>
  </channel>
</rss>

