<?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 inner join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988265#M705735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can any one tell me where i went wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not matnr is initial.&lt;/P&gt;&lt;P&gt;    wa_matnrrange-sign   =  'I'.&lt;/P&gt;&lt;P&gt;    wa_matnrrange-option =  'EQ'.&lt;/P&gt;&lt;P&gt;    wa_matnrrange-low    =  MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND  wa_matnrrange to r_matnrrange.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  if sales order number is the selection criteria&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not salesorder_no is initial.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        wa_daterange-high   =  date_to.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;vbeln a&lt;/SUB&gt;auart b&lt;SUB&gt;posnr c&lt;/SUB&gt;ettyp&lt;/P&gt;&lt;P&gt;    into table t_vbak&lt;/P&gt;&lt;P&gt;    from  vbak as a&lt;/P&gt;&lt;P&gt;    inner join vbap 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 vbep 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 a~vbeln = salesorder_no&lt;/P&gt;&lt;P&gt;    and   a~erdat in r_daterange&lt;/P&gt;&lt;P&gt;    and   a~kunnr = partner_number&lt;/P&gt;&lt;P&gt;    and   b~matnr in r_matnrrange&lt;/P&gt;&lt;P&gt;    and   b~abgru EQ ' '&lt;/P&gt;&lt;P&gt;    and   c~etenr = lv_etenr_0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no syntax error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i'm not passing any date,matnr..&lt;/P&gt;&lt;P&gt;there is data in vbak,vbap,vbep against vbeln...but when i debug i dont find any data in t_vbak..&lt;/P&gt;&lt;P&gt;please help me in resolving thhis...&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>Fri, 26 Oct 2007 14:54:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-26T14:54:18Z</dc:date>
    <item>
      <title>inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988265#M705735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can any one tell me where i went wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not matnr is initial.&lt;/P&gt;&lt;P&gt;    wa_matnrrange-sign   =  'I'.&lt;/P&gt;&lt;P&gt;    wa_matnrrange-option =  'EQ'.&lt;/P&gt;&lt;P&gt;    wa_matnrrange-low    =  MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND  wa_matnrrange to r_matnrrange.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  if sales order number is the selection criteria&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not salesorder_no is initial.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        wa_daterange-high   =  date_to.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;vbeln a&lt;/SUB&gt;auart b&lt;SUB&gt;posnr c&lt;/SUB&gt;ettyp&lt;/P&gt;&lt;P&gt;    into table t_vbak&lt;/P&gt;&lt;P&gt;    from  vbak as a&lt;/P&gt;&lt;P&gt;    inner join vbap 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 vbep 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 a~vbeln = salesorder_no&lt;/P&gt;&lt;P&gt;    and   a~erdat in r_daterange&lt;/P&gt;&lt;P&gt;    and   a~kunnr = partner_number&lt;/P&gt;&lt;P&gt;    and   b~matnr in r_matnrrange&lt;/P&gt;&lt;P&gt;    and   b~abgru EQ ' '&lt;/P&gt;&lt;P&gt;    and   c~etenr = lv_etenr_0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no syntax error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i'm not passing any date,matnr..&lt;/P&gt;&lt;P&gt;there is data in vbak,vbap,vbep against vbeln...but when i debug i dont find any data in t_vbak..&lt;/P&gt;&lt;P&gt;please help me in resolving thhis...&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>Fri, 26 Oct 2007 14:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988265#M705735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T14:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988266#M705736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked if partner_number got a value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 14:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988266#M705736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T14:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988267#M705737</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 gave the partner number too....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 15:02:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988267#M705737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T15:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988268#M705738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is &amp;lt;b&amp;gt;salesorder_no&amp;lt;/b&amp;gt; ? are you passing the value to salesorder_no ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so then use leading zero's to salesorder_no ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not paste your whole code here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not matnr is initial.&lt;/P&gt;&lt;P&gt;wa_matnrrange-sign = 'I'.&lt;/P&gt;&lt;P&gt;wa_matnrrange-option = 'EQ'.&lt;/P&gt;&lt;P&gt;wa_matnrrange-low = MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_matnrrange to r_matnrrange.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if sales order number is the selection criteria&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if not salesorder_no is initial.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;wa_daterange-high = date_to.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;vbeln a&lt;/SUB&gt;auart b&lt;SUB&gt;posnr c&lt;/SUB&gt;ettyp&lt;/P&gt;&lt;P&gt;into table t_vbak&lt;/P&gt;&lt;P&gt;from vbak as a&lt;/P&gt;&lt;P&gt;inner join vbap 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 vbep 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 a~vbeln = salesorder_no&lt;/P&gt;&lt;P&gt;and a~erdat in r_daterange&lt;/P&gt;&lt;P&gt;and a~kunnr = partner_number&lt;/P&gt;&lt;P&gt;and b~matnr in r_matnrrange&lt;/P&gt;&lt;P&gt;and b~abgru EQ ' '&lt;/P&gt;&lt;P&gt;and c~etenr = lv_etenr_0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 15:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988268#M705738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T15:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988269#M705739</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 am sure that data is not there in one of the parameter which you are passing in where condition.&lt;/P&gt;&lt;P&gt;Keep a break point on the select and check whether values are correctly coming into the parameters like daterange, materialrange and salesorder no which you are passing in the where condition. Sales order is Select-options or parameter if it is SO give IN in where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not matnr is initial.&lt;/P&gt;&lt;P&gt;wa_matnrrange-sign = 'I'.&lt;/P&gt;&lt;P&gt;wa_matnrrange-option = 'EQ'.&lt;/P&gt;&lt;P&gt;wa_matnrrange-low = MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_matnrrange to r_matnrrange.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if sales order number is the selection criteria&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if not salesorder_no is initial.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;wa_daterange-high = date_to.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;vbeln a&lt;/SUB&gt;auart b&lt;SUB&gt;posnr c&lt;/SUB&gt;ettyp&lt;/P&gt;&lt;P&gt;into table t_vbak&lt;/P&gt;&lt;P&gt;from vbak as a&lt;/P&gt;&lt;P&gt;inner join vbap 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 vbep as c&lt;/P&gt;&lt;P&gt;on b&lt;SUB&gt;vbeln = c&lt;/SUB&gt;vbeln and b&lt;SUB&gt;posnr = c&lt;/SUB&gt;posnr&lt;/P&gt;&lt;P&gt;where a~vbeln in salesorder_no&lt;/P&gt;&lt;P&gt;and a~erdat in r_daterange&lt;/P&gt;&lt;P&gt;and a~kunnr = partner_number&lt;/P&gt;&lt;P&gt;and b~matnr in r_matnrrange&lt;/P&gt;&lt;P&gt;and b~abgru EQ ' '&lt;/P&gt;&lt;P&gt;and c~etenr = lv_etenr_0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 15:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988269#M705739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T15:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988270#M705740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My SO number is 1020015701,&lt;/P&gt;&lt;P&gt; Patner number is  A00202120.&lt;/P&gt;&lt;P&gt;i'm not passing any date or material number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already pasted the whoe code..&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>Fri, 26 Oct 2007 15:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2988270#M705740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T15:22:25Z</dc:date>
    </item>
  </channel>
</rss>

