<?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 inner join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inner-join/m-p/7330557#M1538161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cant use select * from mseg&lt;/P&gt;&lt;P&gt;every field must me defined mseg&lt;SUB&gt;.... mseg&lt;/SUB&gt;....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Sep 2010 10:14:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-10T10:14:56Z</dc:date>
    <item>
      <title>problem inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inner-join/m-p/7330556#M1538160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i have join but some field are not populated in internal table lt_mseg  (WERKS) .Here is join. Table MSEG contain value for werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; SELECT * FROM mseg
INNER JOIN mkpf ON mkpf~mblnr EQ mseg~mblnr AND mseg~mjahr EQ mkpf~mjahr
INNER JOIN mara ON mara~matnr EQ mseg~matnr
INNER JOIN lfa1 ON lfa1~lifnr EQ mseg~lifnr
INTO CORRESPONDING FIELDS OF TABLE lt_mseg
WHERE mkpf~budat IN datum
AND mseg~lifnr IN lifnr
AND mseg~bukrs IN bukrs
AND mseg~werks IN werks
AND mseg~matnr IN matnr
AND mara~mtart IN mtart
AND lfa1~land1 IN land1
AND ( bwart = '101' OR bwart = '105' ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 08:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inner-join/m-p/7330556#M1538160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-10T08:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inner-join/m-p/7330557#M1538161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cant use select * from mseg&lt;/P&gt;&lt;P&gt;every field must me defined mseg&lt;SUB&gt;.... mseg&lt;/SUB&gt;....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 10:14:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inner-join/m-p/7330557#M1538161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-10T10:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inner-join/m-p/7330558#M1538162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right. If you have a join all the fields must be listed explicitly. If there's no join select * will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 12:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inner-join/m-p/7330558#M1538162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-10T12:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inner-join/m-p/7330559#M1538163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not always, if the field names are unique across the joined tables OR always contain identical information anyway (like the fields used for the join conditions), then * will do.&lt;/P&gt;&lt;P&gt;OP had the problem because WERKS appears in both MSEG and LFA1, with probably different content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 13:08:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inner-join/m-p/7330559#M1538163</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-09-10T13:08:52Z</dc:date>
    </item>
  </channel>
</rss>

