<?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 sql in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql/m-p/3398925#M816075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT vbelv posnv vbeln posnn vbtyp_n rfmng meins plmin erdat bwart&lt;/P&gt;&lt;P&gt;FROM vbfa&lt;/P&gt;&lt;P&gt;INTO TABLE it_vbfa&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_ekbe_del&lt;/P&gt;&lt;P&gt;WHERE vbelv = it_ekbe_del-belnr&lt;/P&gt;&lt;P&gt;AND vbeln IN pr_vbel2&lt;/P&gt;&lt;P&gt;AND posnn = it_ekbe_del-ebelp&lt;/P&gt;&lt;P&gt;AND VBTYP_N IN ( '5' , 'i' ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this query.i think it helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sastry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2008 11:04:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-15T11:04:11Z</dc:date>
    <item>
      <title>select sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql/m-p/3398921#M816071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT  vbelv posnv vbeln  posnn vbtyp_n rfmng meins plmin erdat bwart&lt;/P&gt;&lt;P&gt;        FROM vbfa&lt;/P&gt;&lt;P&gt;        INTO TABLE it_vbfa&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN it_ekbe_del&lt;/P&gt;&lt;P&gt;        WHERE vbelv   = it_ekbe_del-belnr&lt;/P&gt;&lt;P&gt;        AND   vbeln   IN pr_vbel2&lt;/P&gt;&lt;P&gt;        AND   posnn   = it_ekbe_del-ebelp&lt;/P&gt;&lt;P&gt;        AND  ( vbtyp_n = '5' OR vbtyp_n = 'i' ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what wrong with this sql stametment vbtyp_n = 'i' is not comming only '5' is comming &lt;/P&gt;&lt;P&gt;if i remove breaket then it going to display both for i, and 5 but all the 'i' from table near about 2000 of 'i' its fetching...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 10:26:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql/m-p/3398921#M816071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T10:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: select sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql/m-p/3398922#M816072</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;it seems the query is correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND ( vbtyp_n = '5' OR vbtyp_n = 'I' ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;small I is for goods receipt and big I is for order w/o change..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 10:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql/m-p/3398922#M816072</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2008-02-15T10:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: select sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql/m-p/3398923#M816073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try if u r getting any result for the below query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if no there is no data in ur table with vbtyp_n = 'i'  which satisfies other conditions also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT vbelv posnv vbeln posnn vbtyp_n rfmng meins plmin erdat bwart
FROM vbfa
INTO TABLE it_vbfa
FOR ALL ENTRIES IN it_ekbe_del
WHERE vbelv = it_ekbe_del-belnr
AND vbeln IN pr_vbel2
AND posnn = it_ekbe_del-ebelp
AND vbtyp_n = 'i' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 10:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql/m-p/3398923#M816073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T10:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: select sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql/m-p/3398924#M816074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no its right small  'i'  for Good Receipt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 10:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql/m-p/3398924#M816074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T10:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: select sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql/m-p/3398925#M816075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT vbelv posnv vbeln posnn vbtyp_n rfmng meins plmin erdat bwart&lt;/P&gt;&lt;P&gt;FROM vbfa&lt;/P&gt;&lt;P&gt;INTO TABLE it_vbfa&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_ekbe_del&lt;/P&gt;&lt;P&gt;WHERE vbelv = it_ekbe_del-belnr&lt;/P&gt;&lt;P&gt;AND vbeln IN pr_vbel2&lt;/P&gt;&lt;P&gt;AND posnn = it_ekbe_del-ebelp&lt;/P&gt;&lt;P&gt;AND VBTYP_N IN ( '5' , 'i' ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this query.i think it helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sastry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 11:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-sql/m-p/3398925#M816075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T11:04:11Z</dc:date>
    </item>
  </channel>
</rss>

