<?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: help in join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-join/m-p/3568511#M858823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;Modify ur code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT pa0040&lt;SUB&gt;pernr pa0040&lt;/SUB&gt;lobnr t591s~stext&lt;/P&gt;&lt;P&gt;   FROM ( pa0040&lt;/P&gt;&lt;P&gt;   INNER JOIN t591s&lt;/P&gt;&lt;P&gt;     ON pa0040&lt;SUB&gt;subty = t591s&lt;/SUB&gt;subty&lt;/P&gt;&lt;P&gt;     INTO CORRESPONDING FIELDS OF TABLE it_p40&lt;/P&gt;&lt;P&gt;    WHERE pernr = per&lt;/P&gt;&lt;P&gt;     AND pa0040~begda LE to&lt;/P&gt;&lt;P&gt;     AND pa0040~endda GE to,&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;and pa0040~subty   IN  ('20',  '80',  '100')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     AND t591s~infty = '0070'&lt;/P&gt;&lt;P&gt;     AND t591s~sprsl = 'B' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put ur where clause fields in the proper order(As they appear in the data base table or in the INDEX)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar Vemuru on Mar 16, 2008 5:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Mar 2008 12:14:08 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-03-16T12:14:08Z</dc:date>
    <item>
      <title>help in join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-join/m-p/3568509#M858821</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 do this join and i wont to add &lt;/P&gt;&lt;P&gt;and pa0040~subty  &amp;lt;&amp;gt; '20' or '80' or '100'&lt;/P&gt;&lt;P&gt;how i can do it right because  when i move the asterisk i have error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT pa0040~pernr pa0040~lobnr t591s~stext
   FROM ( pa0040
   INNER JOIN t591s
     ON pa0040~subty = t591s~subty
*     and pa0040~subty  &amp;lt;&amp;gt; '20' or '80' or '100'
     AND t591s~infty = '0070'
     AND t591s~sprsl = 'B' )
     INTO CORRESPONDING FIELDS OF TABLE it_p40
    WHERE pernr = per
     AND pa0040~begda LE to
     AND pa0040~endda GE to.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2008 11:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-join/m-p/3568509#M858821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-16T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: help in join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-join/m-p/3568510#M858822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT pa0040-pernr pa0040-lobnr t591s-stext&lt;/P&gt;&lt;P&gt;   FROM pa0040 INNER JOIN t591s &lt;/P&gt;&lt;P&gt;   ON pa0040-subty = t591s-subty&lt;/P&gt;&lt;P&gt;   INTO CORRESPONDING FIELDS OF TABLE it_p40&lt;/P&gt;&lt;P&gt;   WHERE pernr = per AND pa0040~begda LE to&lt;/P&gt;&lt;P&gt;   AND pa0040-endda GE to AND pa0040-subty EQ '20' &lt;/P&gt;&lt;P&gt;   OR pa0040-subty EQ '80' OR pa0040-subty EQ '100'&lt;/P&gt;&lt;P&gt;   AND t591s-infty = '0070' AND t591s-sprsl = 'B' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this may work fine.&lt;/P&gt;&lt;P&gt;If u have any error reply me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2008 11:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-join/m-p/3568510#M858822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-16T11:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: help in join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-join/m-p/3568511#M858823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;Modify ur code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT pa0040&lt;SUB&gt;pernr pa0040&lt;/SUB&gt;lobnr t591s~stext&lt;/P&gt;&lt;P&gt;   FROM ( pa0040&lt;/P&gt;&lt;P&gt;   INNER JOIN t591s&lt;/P&gt;&lt;P&gt;     ON pa0040&lt;SUB&gt;subty = t591s&lt;/SUB&gt;subty&lt;/P&gt;&lt;P&gt;     INTO CORRESPONDING FIELDS OF TABLE it_p40&lt;/P&gt;&lt;P&gt;    WHERE pernr = per&lt;/P&gt;&lt;P&gt;     AND pa0040~begda LE to&lt;/P&gt;&lt;P&gt;     AND pa0040~endda GE to,&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;and pa0040~subty   IN  ('20',  '80',  '100')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     AND t591s~infty = '0070'&lt;/P&gt;&lt;P&gt;     AND t591s~sprsl = 'B' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put ur where clause fields in the proper order(As they appear in the data base table or in the INDEX)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar Vemuru on Mar 16, 2008 5:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2008 12:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-join/m-p/3568511#M858823</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-03-16T12:14:08Z</dc:date>
    </item>
  </channel>
</rss>

