<?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 inner join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437333#M208387</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;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select single vbfa~vbelv vbfa~posnv vbap~posex into (v1, v2, v3)
           from vbfa
               inner join vbap
                  on vbfa~vbelv = vbap~vbeln
                 and vbfa~posnv = vbap~posnr
                             where vbfa~vbeln = delivery_item-vbeln
                               and vbfa~posnn = delivery_item-posnr
                               and vbfa~vb_type_n = 'J'.
       

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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>Thu, 06 Jul 2006 19:29:12 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-07-06T19:29:12Z</dc:date>
    <item>
      <title>Using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437331#M208385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I write following using inner join instead of writing diffrently ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select VBELV POSNV from VBFA into V1 V2&lt;/P&gt;&lt;P&gt;       WHERE  VBELN = DELIVERY_ITEM-VBELN&lt;/P&gt;&lt;P&gt;       AND    POSNN = DELIVERY_ITEM-POSNR&lt;/P&gt;&lt;P&gt;       AND    VB_TYPE_N = 'J'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select POSEX from VBAP into V3.&lt;/P&gt;&lt;P&gt;where  VBELN =  V1&lt;/P&gt;&lt;P&gt;AND    POSNR =  V2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ V3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 19:24:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437331#M208385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T19:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437332#M208386</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;Check this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select VBELV POSNV POSEX &lt;/P&gt;&lt;P&gt; into v1 v2 v3&lt;/P&gt;&lt;P&gt;from &lt;/P&gt;&lt;P&gt;VBFA as a inner join VBAP as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;VBELN = b&lt;/SUB&gt;VBELN and&lt;/P&gt;&lt;P&gt;   a&lt;SUB&gt;POSNN = b&lt;/SUB&gt;POSNR&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt; a~POSNN = DELIVERY_ITEM-POSNR&lt;/P&gt;&lt;P&gt;AND a~VB_TYPE_N = 'J'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 19:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437332#M208386</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-06T19:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437333#M208387</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;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select single vbfa~vbelv vbfa~posnv vbap~posex into (v1, v2, v3)
           from vbfa
               inner join vbap
                  on vbfa~vbelv = vbap~vbeln
                 and vbfa~posnv = vbap~posnr
                             where vbfa~vbeln = delivery_item-vbeln
                               and vbfa~posnn = delivery_item-posnr
                               and vbfa~vb_type_n = 'J'.
       

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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>Thu, 06 Jul 2006 19:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437333#M208387</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-06T19:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437334#M208388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tushar,&lt;/P&gt;&lt;P&gt;try this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select VBFA~VBELV &lt;/P&gt;&lt;P&gt;       VBFA~POSNV &lt;/P&gt;&lt;P&gt;       VBAP~POSEX&lt;/P&gt;&lt;P&gt;  from VBFA &lt;/P&gt;&lt;P&gt;   INNER JOIN VBAP&lt;/P&gt;&lt;P&gt;   ON VBFA&lt;SUB&gt;VBELV = VBAP&lt;/SUB&gt;VBELN&lt;/P&gt;&lt;P&gt;      VBFA&lt;SUB&gt;POSNV = VBAP&lt;/SUB&gt;POSNR&lt;/P&gt;&lt;P&gt;   into V1 V2 V3&lt;/P&gt;&lt;P&gt;   WHERE VBFA~VBELN = DELIVERY_ITEM-VBELN&lt;/P&gt;&lt;P&gt;   AND VBFA~POSNN = DELIVERY_ITEM-POSNR&lt;/P&gt;&lt;P&gt;   AND VB_TYPE_N = 'J'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ V3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 19:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437334#M208388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T19:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437335#M208389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are going about this the hard way. You can get the data you need from LIPS. Going to VBFA without the first elements in the primary key will be very expensive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 19:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437335#M208389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T19:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437336#M208390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please close &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="174672"&gt;&lt;/A&gt; if answered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your current issue, I don't even go to VBFA. Don't you already have the sales order number and the item number in VGBEL, VGPOS fields of LIPS? If not check VBELV and POSNV fields. VBFA is known for perfomance issues. So try to avoid it as much as possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 19:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-inner-join/m-p/1437336#M208390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T19:48:53Z</dc:date>
    </item>
  </channel>
</rss>

