<?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: problem is select/inner join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-is-select-inner-join/m-p/2988548#M705837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that if you use a "IN" in the where clause. You should do the same with the rest of the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the values of this variables just like u did&lt;/P&gt;&lt;P&gt;PARTNER_NUMBER&lt;/P&gt;&lt;P&gt;DELIVERY_NO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_daterange-sign = 'I'.&lt;/P&gt;&lt;P&gt;wa_daterange-option = 'EQ'.&lt;/P&gt;&lt;P&gt;wa_daterange-low = date_from.&lt;/P&gt;&lt;P&gt;APPEND wa_daterange TO r_daterange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a~vbeln&lt;/P&gt;&lt;P&gt;          b~posnr&lt;/P&gt;&lt;P&gt;    into table t_likp&lt;/P&gt;&lt;P&gt;    from likp as a inner join lips as b on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;    where a~vbeln IN s_delivery&lt;/P&gt;&lt;P&gt;       and a~erdat IN r_daterange&lt;/P&gt;&lt;P&gt;       and a~kunag IN s_partner&lt;/P&gt;&lt;P&gt;       and b~matnr IN r_matnrrange.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 18:59:18 GMT</pubDate>
    <dc:creator>Rodrigo-Giner</dc:creator>
    <dc:date>2007-10-29T18:59:18Z</dc:date>
    <item>
      <title>problem is select/inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-is-select-inner-join/m-p/2988546#M705835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have defined ranges table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  ( not date_from is initial and not date_to is initial ).&lt;/P&gt;&lt;P&gt;        wa_daterange-sign   =  'I'.&lt;/P&gt;&lt;P&gt;        wa_daterange-option =  'BT'.&lt;/P&gt;&lt;P&gt;        wa_daterange-low    =  date_from.&lt;/P&gt;&lt;P&gt;        wa_daterange-high   =  date_to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        APPEND wa_daterange TO r_daterange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      elseif ( not date_from is initial and date_to is initial ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        wa_daterange-sign   =  'I'.&lt;/P&gt;&lt;P&gt;        wa_daterange-option =  'EQ'.&lt;/P&gt;&lt;P&gt;        wa_daterange-low    =  date_from.&lt;/P&gt;&lt;P&gt;        APPEND wa_daterange TO r_daterange.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My select statement is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select a&lt;SUB&gt;vbeln b&lt;/SUB&gt;posnr&lt;/P&gt;&lt;P&gt;      into table t_likp&lt;/P&gt;&lt;P&gt;      from likp 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;      where a~vbeln = DELIVERY_NO.&lt;/P&gt;&lt;P&gt;       and  a~erdat in r_daterange&lt;/P&gt;&lt;P&gt;       and  a~kunag = PARTNER_NUMBER&lt;/P&gt;&lt;P&gt;       and  b~matnr in r_matnrrange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the debug mode, when i see table t_likp,it is initial..but there are values for the delivery number,vendor,and date....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any one please correct me where i went wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Challa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 16:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-is-select-inner-join/m-p/2988546#M705835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T16:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: problem is select/inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-is-select-inner-join/m-p/2988547#M705836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The query seems to be correct. &lt;/P&gt;&lt;P&gt;what you can do is, goto LIKP and select any entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get the VBELN, KUNAG and the ERDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check that for the selected VBELN, corresponding entry exists in the table LIPS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pass the same information to your program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data is coming in the internal table, then the query is fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing you can check is the Dealer Number might not be appended with Zero's in the start. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the CONVERSION ROUTINE To convert the dealer number and then you can check the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 17:38:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-is-select-inner-join/m-p/2988547#M705836</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-10-29T17:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem is select/inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-is-select-inner-join/m-p/2988548#M705837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that if you use a "IN" in the where clause. You should do the same with the rest of the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the values of this variables just like u did&lt;/P&gt;&lt;P&gt;PARTNER_NUMBER&lt;/P&gt;&lt;P&gt;DELIVERY_NO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_daterange-sign = 'I'.&lt;/P&gt;&lt;P&gt;wa_daterange-option = 'EQ'.&lt;/P&gt;&lt;P&gt;wa_daterange-low = date_from.&lt;/P&gt;&lt;P&gt;APPEND wa_daterange TO r_daterange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a~vbeln&lt;/P&gt;&lt;P&gt;          b~posnr&lt;/P&gt;&lt;P&gt;    into table t_likp&lt;/P&gt;&lt;P&gt;    from likp as a inner join lips as b on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;    where a~vbeln IN s_delivery&lt;/P&gt;&lt;P&gt;       and a~erdat IN r_daterange&lt;/P&gt;&lt;P&gt;       and a~kunag IN s_partner&lt;/P&gt;&lt;P&gt;       and b~matnr IN r_matnrrange.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 18:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-is-select-inner-join/m-p/2988548#M705837</guid>
      <dc:creator>Rodrigo-Giner</dc:creator>
      <dc:date>2007-10-29T18:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem is select/inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-is-select-inner-join/m-p/2988549#M705838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Challa - what's the period doing after DELIVERY_NO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 19:03:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-is-select-inner-join/m-p/2988549#M705838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T19:03:09Z</dc:date>
    </item>
  </channel>
</rss>

