<?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 with inner join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763293#M1461983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 15, 2010 2:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Apr 2010 12:27:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-15T12:27:28Z</dc:date>
    <item>
      <title>problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763283#M1461973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select
        mara~matnr
        mara~mtart
        mara~matkl
        mara~bmatn
        mara~bismt
        mara~meins
        mara~mfrpn
        mara~mfrnr
        makt~maktx
        lfa1~lifnr
        lfa1~name1
   into table lt_output
        from mara
   inner join makt on mara~matnr = makt~matnr
   inner join lfa1 on mara~mfrnr = lfa1~lifnr
   where
        mara~matnr in s_matnr and
        mtart in s_mtart and
        matkl in s_matkl and
        bmatn in s_bmatn and
        bismt in s_bismt and
        meins in s_meins and
        mfrpn in s_mfrpn and
        mfrnr in s_mfrnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;when I inner join these three tables am getting 34 records in the output table but when I enter material number matnr and check it, no records was showing up....I think inner join was failed can any one help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Apr 14, 2010 4:21 PM -  tags added&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 13:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763283#M1461973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T13:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763284#M1461974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you intend to omit the table names in this part of WHERE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;mtart in s_mtart and
        matkl in s_matkl and
        bmatn in s_bmatn and
        bismt in s_bismt and
        meins in s_meins and
        mfrpn in s_mfrpn and
        mfrnr in s_mfrnr. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've never tried without supplying the mara~, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying deconstructing...see if you get values in SE11 from MARA only , with the where clause (that applies to MARA), then LFA1, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 17:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763284#M1461974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T17:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763285#M1461975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;select
&amp;gt;         mara~matnr
&amp;gt;         mara~mtart
&amp;gt;         mara~matkl
&amp;gt;         mara~bmatn
&amp;gt;         mara~bismt
&amp;gt;         mara~meins
&amp;gt;         mara~mfrpn
&amp;gt;         mara~mfrnr
&amp;gt;         makt~maktx
&amp;gt;         lfa1~lifnr
&amp;gt;         lfa1~name1
&amp;gt;    into table lt_output
&amp;gt;         from mara
&amp;gt;    inner join makt on mara~matnr = makt~matnr
&amp;gt;    inner join lfa1 on mara~mfrnr = lfa1~lifnr
&amp;gt;    where
&amp;gt;         mara~matnr in s_matnr and
&amp;gt;         mtart in s_mtart and
&amp;gt;         matkl in s_matkl and
&amp;gt;         bmatn in s_bmatn and
&amp;gt;         bismt in s_bismt and
&amp;gt;         meins in s_meins and
&amp;gt;         mfrpn in s_mfrpn and
&amp;gt;         mfrnr in s_mfrnr.&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; when I inner join these three tables am getting 34 records in the output table but when I enter material number matnr and check it, no records was showing up....I think inner join was failed can any one help me&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Edited by: Thomas Zloch on Apr 14, 2010 4:21 PM -  tags added&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please change your WHERE condition like this,(Give the Table Alias along with field name )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&amp;gt;         mara~matnr in s_matnr and&lt;/P&gt;&lt;P&gt;&amp;gt;         mara~mtart in s_mtart and&lt;/P&gt;&lt;P&gt;&amp;gt;         mara~matkl in s_matkl and&lt;/P&gt;&lt;P&gt;&amp;gt;         mara~bmatn in s_bmatn and&lt;/P&gt;&lt;P&gt;&amp;gt;         mara~bismt in s_bismt and&lt;/P&gt;&lt;P&gt;&amp;gt;         mara~meins in s_meins and&lt;/P&gt;&lt;P&gt;&amp;gt;         mara~mfrpn in s_mfrpn and&lt;/P&gt;&lt;P&gt;&amp;gt;         mara~mfrnr in s_mfrn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 01:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763285#M1461975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T01:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763286#M1461976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried with thata too same answer...if I give material no no record is printing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 04:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763286#M1461976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T04:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763287#M1461977</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;You have to pass the logon Language Key to MAKT~SPRAS =  sy-langu you can get correct output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nehruu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 05:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763287#M1461977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T05:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763288#M1461978</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 think you are not giving valid material so u r not getting the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with the Valid material range becaus eu r using all AND condtion .&lt;/P&gt;&lt;P&gt;Fot that particualer material what u have given in where condtions it should also satisfy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check wheather in where condtion it is AND or OR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ask for the valid Test data to functional consultant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pravin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 05:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763288#M1461978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T05:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763289#M1461979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's first of all get rid of the myth that the table names are required in the join when specifying field names: This is only necessary, when the given field/column appears in more than one of the join's database tables. In certain cases it is still good practice though, because if for some strange reason one of the tables would be changed and now you'd actually have duplicate field names across tables, the SQL statement would no longer be syntactically correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to your problem, which I'm not sure I understand, so let me rephrase. When you run the join without any restrictions you get 34 records, but when entering a condition on material number you get 0 records. If that's the case then most likely your problem is that you used the wrong reference for defining your select-option &amp;lt;em&amp;gt;s_matnr&amp;lt;/em&amp;gt;, which has to be of type &amp;lt;em&amp;gt;matnr&amp;lt;/em&amp;gt; (or similar) to ensure that the correct conversion exit &amp;lt;em&amp;gt;matn1&amp;lt;/em&amp;gt; gets applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise if your system is configured to store material numbers with leading zeros, you won't get any match if you search for material number 1, when you actually should have looked for 000000000001. By using the right type you ensure that this conversion happens as it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also quickly check this in SE16 or SE16N, just make sure to switch off the conversion exits in the settings for the transaction (that way you see the non-numeric data as it is stored on the database rather than how it's displayed for the user).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as Nehruu mentioned, either select the language or add a condition on language. Otherwise you'll end up with duplicate records if your system stores material descriptions in more than one language.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 05:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763289#M1461979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T05:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763290#M1461980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the complete code I've used to print this report....I tried tomake changes suggested by you guys but the same reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 15, 2010 2:54 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763290#M1461980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763291#M1461981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 15, 2010 2:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:24:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763291#M1461981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763292#M1461982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 15, 2010 2:56 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:26:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763292#M1461982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763293#M1461983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 15, 2010 2:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763293#M1461983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763294#M1461984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 15, 2010 2:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763294#M1461984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763295#M1461985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 15, 2010 2:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763295#M1461985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763296#M1461986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 15, 2010 2:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763296#M1461986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763297#M1461987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i AM REALLY SORRY GUYS I HAVE POSTED SO MANYMESSAGES....THAT IS THE CODE I USED TO PRINT THE OUTPUT. I HAVE ALSO TRIED UR SUGGESSIONS. PLEASE LET ME KNOW IF IHAVE TO MAKE ANY MODIFICATIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please do not try to get around the limit by making multiple posts. Much of what you posted was code that was commented out.

Please alo do not use all caps.

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 15, 2010 2:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 12:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763297#M1461987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T12:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763298#M1461988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I think you need a slight modification to your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;        mara~matnr&lt;/P&gt;&lt;P&gt;        mara~mtart&lt;/P&gt;&lt;P&gt;        mara~matkl&lt;/P&gt;&lt;P&gt;        mara~bmatn&lt;/P&gt;&lt;P&gt;        mara~bismt&lt;/P&gt;&lt;P&gt;        mara~meins&lt;/P&gt;&lt;P&gt;        mara~mfrpn&lt;/P&gt;&lt;P&gt;        mara~mfrnr&lt;/P&gt;&lt;P&gt;        makt~maktx&lt;/P&gt;&lt;P&gt;        lfa1~lifnr&lt;/P&gt;&lt;P&gt;        lfa1~name1&lt;/P&gt;&lt;P&gt;   into table lt_output&lt;/P&gt;&lt;P&gt;        from mara&lt;/P&gt;&lt;P&gt;   inner join makt on mara&lt;SUB&gt;matnr = makt&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;   inner join lfa1 on mara&lt;SUB&gt;mfrnr = lfa1&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;   where&lt;/P&gt;&lt;P&gt;    mara&lt;SUB&gt;matnr = makt&lt;/SUB&gt;matnr and&lt;/P&gt;&lt;P&gt;    mara&lt;SUB&gt;mfrnr = lfa1&lt;/SUB&gt;lifnr and&lt;/P&gt;&lt;P&gt;        mara~matnr in s_matnr and&lt;/P&gt;&lt;P&gt;        mtart in s_mtart and&lt;/P&gt;&lt;P&gt;        matkl in s_matkl and&lt;/P&gt;&lt;P&gt;        bmatn in s_bmatn and&lt;/P&gt;&lt;P&gt;        bismt in s_bismt and&lt;/P&gt;&lt;P&gt;        meins in s_meins and&lt;/P&gt;&lt;P&gt;        mfrpn in s_mfrpn and&lt;/P&gt;&lt;P&gt;        mfrnr in s_mfrnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will solve your problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert back in case of any issues..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 14:05:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763298#M1461988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T14:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763299#M1461989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with JOIN instead of INNER JOIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you must check MAKT-SPRAS value. Remember there is a description for every language that you've been installed. Maybe the output will result on several records of the same material.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 18:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763299#M1461989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T18:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763300#M1461990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to run your SQL statement without joining the lfa1 table and check the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yasin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 19:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763300#M1461990</guid>
      <dc:creator>Yasin</dc:creator>
      <dc:date>2010-04-15T19:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763301#M1461991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried to remove join for lfa1 and retrived the data from different sql statement...same result.....and where should i pass the spars language key&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 04:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-inner-join/m-p/6763301#M1461991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T04:30:58Z</dc:date>
    </item>
  </channel>
</rss>

