<?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: Inner Join Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/2848305#M667316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select s&lt;SUB&gt;mblnr s&lt;/SUB&gt;mjahr s&lt;SUB&gt;bwart s&lt;/SUB&gt;matnr s&lt;SUB&gt;werks s&lt;/SUB&gt;menge &lt;/P&gt;&lt;P&gt;appending corresponding fields of table t_mseg &lt;/P&gt;&lt;P&gt;from mseg as s inner join mkpf as k &lt;/P&gt;&lt;P&gt;on s&lt;SUB&gt;mblnr = k&lt;/SUB&gt;mblnr and &lt;/P&gt;&lt;P&gt;s&lt;SUB&gt;mjahr = k&lt;/SUB&gt;mjahr &lt;/P&gt;&lt;P&gt;where s~matnr in s_matnr &lt;/P&gt;&lt;P&gt;and s~werks in s_werks_full &lt;/P&gt;&lt;P&gt;and ( s&lt;SUB&gt;bwart eq lit_101 or s&lt;/SUB&gt;bwart eq lit_102 ) &lt;/P&gt;&lt;P&gt;and k~budat between s_budat-low and s_budat-high &lt;/P&gt;&lt;P&gt;and s~bukrs = p_bukrs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or u can also use view WB2_V_MKPF_MSEG2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2007 02:52:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-27T02:52:41Z</dc:date>
    <item>
      <title>Inner Join Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/2848304#M667315</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 having some problem with my inner join, trying to link two tables MSEG and MKPF.&lt;/P&gt;&lt;P&gt;The problem is that I don't know what to link the Tables with,&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;       t_Sloc TYPE MSEG-LGORT,&lt;/P&gt;&lt;P&gt;       t_MvT TYPE MSEG-BWART,&lt;/P&gt;&lt;P&gt;       t_MatD TYPE MKPF-MBLNR,&lt;/P&gt;&lt;P&gt;       t_Item TYPE MSEG-ZEILE,&lt;/P&gt;&lt;P&gt;       t_Post TYPE MKPF-BUDAT,&lt;/P&gt;&lt;P&gt;       t_Q TYPE MSEG-MENGE,&lt;/P&gt;&lt;P&gt;       t_Bun TYPE MSEG-MEINS,&lt;/P&gt;&lt;P&gt;       TotalQ TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MSEG&lt;SUB&gt;LGORT MSEG&lt;/SUB&gt;BWART MSEG&lt;SUB&gt;ZEILE MSEG&lt;/SUB&gt;MENGE MSEG~MEINS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM     MSEG&lt;/P&gt;&lt;P&gt;INNER JOIN   MKPF ON MSEG&lt;SUB&gt;BWART = MKPF&lt;/SUB&gt;BUDAT&lt;/P&gt;&lt;P&gt;INTO           (t_Sloc, t_MvT, t_Item, t_Q, t_Bun)&lt;/P&gt;&lt;P&gt;WHERE             MSEG~MATNR = INPUT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 02:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/2848304#M667315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T02:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/2848305#M667316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select s&lt;SUB&gt;mblnr s&lt;/SUB&gt;mjahr s&lt;SUB&gt;bwart s&lt;/SUB&gt;matnr s&lt;SUB&gt;werks s&lt;/SUB&gt;menge &lt;/P&gt;&lt;P&gt;appending corresponding fields of table t_mseg &lt;/P&gt;&lt;P&gt;from mseg as s inner join mkpf as k &lt;/P&gt;&lt;P&gt;on s&lt;SUB&gt;mblnr = k&lt;/SUB&gt;mblnr and &lt;/P&gt;&lt;P&gt;s&lt;SUB&gt;mjahr = k&lt;/SUB&gt;mjahr &lt;/P&gt;&lt;P&gt;where s~matnr in s_matnr &lt;/P&gt;&lt;P&gt;and s~werks in s_werks_full &lt;/P&gt;&lt;P&gt;and ( s&lt;SUB&gt;bwart eq lit_101 or s&lt;/SUB&gt;bwart eq lit_102 ) &lt;/P&gt;&lt;P&gt;and k~budat between s_budat-low and s_budat-high &lt;/P&gt;&lt;P&gt;and s~bukrs = p_bukrs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or u can also use view WB2_V_MKPF_MSEG2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 02:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/2848305#M667316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T02:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/2848306#M667317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use tha MBLNR as the key field to join both the table,bcz this is the key field which i present in both the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 03:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/2848306#M667317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T03:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/2848307#M667318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much I can now join MSEG and MKPF you made my day/night&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Sri,&lt;/P&gt;&lt;P&gt;what does this do in you answer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and s~werks in s_werks_full&lt;/P&gt;&lt;P&gt;and ( s&lt;SUB&gt;bwart eq lit_101 or s&lt;/SUB&gt;bwart eq lit_102 )&lt;/P&gt;&lt;P&gt;and k~budat between s_budat-low and s_budat-high&lt;/P&gt;&lt;P&gt;and s~bukrs = p_bukrs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 03:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/2848307#M667318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T03:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/2848308#M667319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi john,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is better change ur code as following ..    it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_itab,&lt;/P&gt;&lt;P&gt;            lgort TYPE lgort_d,&lt;/P&gt;&lt;P&gt;            bwart TYPE bwart,&lt;/P&gt;&lt;P&gt;            mblnr TYPE mblnr,&lt;/P&gt;&lt;P&gt;            zeile TYPE mblpo,&lt;/P&gt;&lt;P&gt;            budat TYPE budat,&lt;/P&gt;&lt;P&gt;            menge TYPE menge_d,&lt;/P&gt;&lt;P&gt;            meins TYPE meins,&lt;/P&gt;&lt;P&gt;            totalq TYPE i,&lt;/P&gt;&lt;P&gt;       END OF ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_itab TYPE ty_itab,&lt;/P&gt;&lt;P&gt;      it_itab TYPE STANDARD TABLE OF ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT mseg&lt;SUB&gt;lgort mseg&lt;/SUB&gt;bwart mseg&lt;SUB&gt;zeile mseg&lt;/SUB&gt;menge mseg~meins&lt;/P&gt;&lt;P&gt;  FROM mseg&lt;/P&gt;&lt;P&gt;  INNER JOIN mkpf ON mseg&lt;SUB&gt;bwart = mkpf&lt;/SUB&gt;budat&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE IT_ITAB.&lt;/P&gt;&lt;P&gt;  WHERE mseg~matnr = input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if useful&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;sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 05:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/2848308#M667319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T05:47:27Z</dc:date>
    </item>
  </channel>
</rss>

