<?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-options: in inner join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609533#M598456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you didn't have any relationship statements among the LIPS and VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try as follows.&lt;/P&gt;&lt;P&gt;select-options: enter for vbap-vbeln.&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;a~vbeln&lt;/P&gt;&lt;P&gt;a~matnr&lt;/P&gt;&lt;P&gt;b~werks&lt;/P&gt;&lt;P&gt;c~route&lt;/P&gt;&lt;P&gt;into table first&lt;/P&gt;&lt;P&gt;from vbap as a&lt;/P&gt;&lt;P&gt;inner join lips as b&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vgbel and a&lt;SUB&gt;posnr = b&lt;/SUB&gt;vgpos&lt;/P&gt;&lt;P&gt;where a~vbeln in enter&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;inner join likp as c&lt;/P&gt;&lt;P&gt;on b&lt;SUB&gt;vbeln = c&lt;/SUB&gt;vbeln.&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>Sat, 04 Aug 2007 10:48:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-04T10:48:20Z</dc:date>
    <item>
      <title>select-options: in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609526#M598449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in this peace of code i got error message like:&lt;/P&gt;&lt;P&gt;The column name "VBELN" has two meanings..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to resolve this &amp;lt;b&amp;gt;select-options:&amp;lt;/b&amp;gt; problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:vbap,lips,likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of first occurs 0,&lt;/P&gt;&lt;P&gt;      vbeln1 like vbap-vbeln,&lt;/P&gt;&lt;P&gt;      matnr2 like vbap-matnr,&lt;/P&gt;&lt;P&gt;      werks3 like lips-werks,&lt;/P&gt;&lt;P&gt;      route4 like likp-route,&lt;/P&gt;&lt;P&gt;      end of first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: enter for vbap-vbeln.&lt;/P&gt;&lt;P&gt;      select&lt;/P&gt;&lt;P&gt;            a~vbeln&lt;/P&gt;&lt;P&gt;            a~matnr&lt;/P&gt;&lt;P&gt;            b~werks&lt;/P&gt;&lt;P&gt;            c~route&lt;/P&gt;&lt;P&gt;            into table first&lt;/P&gt;&lt;P&gt;            from vbap as a&lt;/P&gt;&lt;P&gt;            inner join lips as b&lt;/P&gt;&lt;P&gt;          on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;          inner join likp as c&lt;/P&gt;&lt;P&gt;          on b&lt;SUB&gt;vbeln = c&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;         &amp;lt;b&amp;gt; where vbeln in enter.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      loop at first.&lt;/P&gt;&lt;P&gt;          write:/2 sy-vline, first-vbeln1, &lt;/P&gt;&lt;P&gt;                   sy-vline,first-matnr2, &lt;/P&gt;&lt;P&gt;                    sy-vline,first-werks3,&lt;/P&gt;&lt;P&gt;                     sy-vline,first-route4.&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;Thanks In advance&lt;/P&gt;&lt;P&gt;~~&lt;SUB&gt;SANDY&lt;/SUB&gt;~~~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 10:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609526#M598449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T10:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: select-options: in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609527#M598450</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;Give like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:vbap,lips,likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of first occurs 0,&lt;/P&gt;&lt;P&gt;vbeln1 like vbap-vbeln,&lt;/P&gt;&lt;P&gt;matnr2 like vbap-matnr,&lt;/P&gt;&lt;P&gt;werks3 like lips-werks,&lt;/P&gt;&lt;P&gt;route4 like likp-route,&lt;/P&gt;&lt;P&gt;end of first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: enter for vbap-vbeln.&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;a~vbeln&lt;/P&gt;&lt;P&gt;a~matnr&lt;/P&gt;&lt;P&gt;b~werks&lt;/P&gt;&lt;P&gt;c~route&lt;/P&gt;&lt;P&gt;into table first&lt;/P&gt;&lt;P&gt;from vbap as a&lt;/P&gt;&lt;P&gt;inner join lips as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;inner join likp as c&lt;/P&gt;&lt;P&gt;on b&lt;SUB&gt;vbeln = c&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;where&amp;lt;b&amp;gt; a~vbeln&amp;lt;/b&amp;gt; in enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at first.&lt;/P&gt;&lt;P&gt;write:/2 sy-vline, first-vbeln1, &lt;/P&gt;&lt;P&gt;sy-vline,first-matnr2, &lt;/P&gt;&lt;P&gt;sy-vline,first-werks3,&lt;/P&gt;&lt;P&gt;sy-vline,first-route4.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 10:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609527#M598450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T10:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: select-options: in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609528#M598451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error has occurred due to ambiguity of vbeln from which table it needs to be consider. Speicy vbeln as a~vbeln to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change code as in BOLD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: enter for vbap-vbeln.&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;a~vbeln&lt;/P&gt;&lt;P&gt;a~matnr&lt;/P&gt;&lt;P&gt;b~werks&lt;/P&gt;&lt;P&gt;c~route&lt;/P&gt;&lt;P&gt;into table first&lt;/P&gt;&lt;P&gt;from vbap as a&lt;/P&gt;&lt;P&gt;inner join lips as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;inner join likp as c&lt;/P&gt;&lt;P&gt;on b&lt;SUB&gt;vbeln = c&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;where a~vbeln in enter.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use INNER JOINS for more than 2 levels as it will have great impact on performance and use FOR ALL ENTRIES instead of INNER JOINS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vinaykumar G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 10:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609528#M598451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T10:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: select-options: in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609529#M598452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the condition in where clause&lt;/P&gt;&lt;P&gt;Where a~VBELN IN ENTER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 10:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609529#M598452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T10:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: select-options: in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609530#M598453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya &lt;/P&gt;&lt;P&gt;Padmam &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but also it not showing out put Please hepl me in this regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 10:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609530#M598453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T10:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: select-options: in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609531#M598454</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;   check the tables you are using for the vbeln,because it is having two different meanings in the data base tables because vbeln is used for the sales order as well as delivery number depending upon the database table.&lt;/P&gt;&lt;P&gt;please check this once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please donot forget to reward points if it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 10:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609531#M598454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T10:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: select-options: in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609532#M598455</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;after using &amp;lt;b&amp;gt;a~&amp;lt;/b&amp;gt; also out put is not coming&lt;/P&gt;&lt;P&gt;When i debugged it it is not fetching any data &lt;/P&gt;&lt;P&gt;what to do?????????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;~~~&lt;SUB&gt;sandy&lt;/SUB&gt;~~~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 10:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609532#M598455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T10:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: select-options: in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609533#M598456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you didn't have any relationship statements among the LIPS and VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try as follows.&lt;/P&gt;&lt;P&gt;select-options: enter for vbap-vbeln.&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;a~vbeln&lt;/P&gt;&lt;P&gt;a~matnr&lt;/P&gt;&lt;P&gt;b~werks&lt;/P&gt;&lt;P&gt;c~route&lt;/P&gt;&lt;P&gt;into table first&lt;/P&gt;&lt;P&gt;from vbap as a&lt;/P&gt;&lt;P&gt;inner join lips as b&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vgbel and a&lt;SUB&gt;posnr = b&lt;/SUB&gt;vgpos&lt;/P&gt;&lt;P&gt;where a~vbeln in enter&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;inner join likp as c&lt;/P&gt;&lt;P&gt;on b&lt;SUB&gt;vbeln = c&lt;/SUB&gt;vbeln.&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>Sat, 04 Aug 2007 10:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609533#M598456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T10:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: select-options: in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609534#M598457</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;Try this one,it is working fine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:vbap,lips,likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of first occurs 0,&lt;/P&gt;&lt;P&gt;vbeln like vbap-vbeln,&lt;/P&gt;&lt;P&gt;matnr like vbap-matnr,&lt;/P&gt;&lt;P&gt;werks like lips-werks,&lt;/P&gt;&lt;P&gt;route like likp-route,&lt;/P&gt;&lt;P&gt;end of first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: enter for vbap-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select a&lt;SUB&gt;vbeln a&lt;/SUB&gt;matnr b&lt;SUB&gt;werks c&lt;/SUB&gt;route into corresponding fields of table first &lt;/P&gt;&lt;P&gt;       from vbap as a inner join lips as b on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vgbel &lt;/P&gt;&lt;P&gt;       inner join likp as c on b&lt;SUB&gt;vbeln = c&lt;/SUB&gt;vbeln &lt;/P&gt;&lt;P&gt;       where a~vbeln in enter.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at first.&lt;/P&gt;&lt;P&gt;write:/2 sy-vline, first-vbeln,&lt;/P&gt;&lt;P&gt;sy-vline,first-matnr,&lt;/P&gt;&lt;P&gt;sy-vline,first-werks,&lt;/P&gt;&lt;P&gt;sy-vline,first-route.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 12:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-inner-join/m-p/2609534#M598457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T12:24:42Z</dc:date>
    </item>
  </channel>
</rss>

