<?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 join / explicit field declaration does not work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-explicit-field-declaration-does-not-work/m-p/7563376#M1564634</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;Please check the link.&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec77446011d189700000e8322d00/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jan 2011 11:05:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-21T11:05:17Z</dc:date>
    <item>
      <title>Problem with join / explicit field declaration does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-explicit-field-declaration-does-not-work/m-p/7563375#M1564633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is something I do not understand about the join. I have a join over two tables (see below). The field AENAM exists in both tables but I want to have it coming from ZDPP_VERBRAUCEFF.&lt;/P&gt;&lt;P&gt;BUT the system gives me the values from MARA although I define the source ZDPP_VERBRAUCEFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT zdpp_verbrauceff~mandt&lt;/P&gt;&lt;P&gt;         zdpp_verbrauceff~matnr&lt;/P&gt;&lt;P&gt;         zdpp_verbrauceff~zzmdv01&lt;/P&gt;&lt;P&gt;         zdpp_verbrauceff~begda&lt;/P&gt;&lt;P&gt;         zdpp_verbrauceff~endda&lt;/P&gt;&lt;P&gt;         zdpp_verbrauceff~vmeng&lt;/P&gt;&lt;P&gt;         zdpp_verbrauceff~vmeng_m&lt;/P&gt;&lt;P&gt;         zdpp_verbrauceff~aenam     "Problem&lt;/P&gt;&lt;P&gt;         zdpp_verbrauceff~aedat&lt;/P&gt;&lt;P&gt;         zdpp_verbrauceff~aezet&lt;/P&gt;&lt;P&gt;         zdpp_verbrauceff~prfdt&lt;/P&gt;&lt;P&gt;         zdpp_verbrauceff~prfzt&lt;/P&gt;&lt;P&gt;    FROM zdpp_verbrauceff&lt;/P&gt;&lt;P&gt;    INNER JOIN mara&lt;/P&gt;&lt;P&gt;    ON zdpp_verbrauceff&lt;SUB&gt;matnr = mara&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;    INTO TABLE lt_ver_db&lt;/P&gt;&lt;P&gt;    WHERE zdpp_verbrauceff~zzmdv01 IN s_mdv01&lt;/P&gt;&lt;P&gt;      AND zdpp_verbrauceff~begda   &amp;lt;= s_datum-high&lt;/P&gt;&lt;P&gt;      AND zdpp_verbrauceff~endda   &amp;gt;= s_datum-low&lt;/P&gt;&lt;P&gt;      AND mara~mtart               IN s_mtart&lt;/P&gt;&lt;P&gt;      AND mara~matnr               IN s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me what I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 10:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-explicit-field-declaration-does-not-work/m-p/7563375#M1564633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-21T10:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with join / explicit field declaration does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-explicit-field-declaration-does-not-work/m-p/7563376#M1564634</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;Please check the link.&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec77446011d189700000e8322d00/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 11:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-explicit-field-declaration-does-not-work/m-p/7563376#M1564634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-21T11:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with join / explicit field declaration does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-explicit-field-declaration-does-not-work/m-p/7563377#M1564635</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;    Add this below in where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  zdpp_verbrauceff~mandt&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;ON zdpp_verbrauceff&lt;SUB&gt;matnr = mara&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;INTO TABLE lt_ver_db&lt;/P&gt;&lt;P&gt;WHERE  &lt;STRONG&gt;zdpp_verbrauceff~matnr IN s_matnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;AND zdpp_verbrauceff~zzmdv01 IN s_mdv01&lt;/P&gt;&lt;P&gt;AND zdpp_verbrauceff~begda &amp;lt;= s_datum-high&lt;/P&gt;&lt;P&gt;AND zdpp_verbrauceff~endda &amp;gt;= s_datum-low&lt;/P&gt;&lt;P&gt;AND mara~matnr IN s_matnr&lt;/P&gt;&lt;P&gt;AND mara~mtart IN s_mtart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 11:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-explicit-field-declaration-does-not-work/m-p/7563377#M1564635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-21T11:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with join / explicit field declaration does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-explicit-field-declaration-does-not-work/m-p/7563378#M1564636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try change the statment sequence as I have below and see if this works i.e:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT zdpp_verbrauceff~mandt&lt;/P&gt;&lt;P&gt;zdpp_verbrauceff~matnr&lt;/P&gt;&lt;P&gt;zdpp_verbrauceff~zzmdv01&lt;/P&gt;&lt;P&gt;zdpp_verbrauceff~begda&lt;/P&gt;&lt;P&gt;zdpp_verbrauceff~endda&lt;/P&gt;&lt;P&gt;zdpp_verbrauceff~vmeng&lt;/P&gt;&lt;P&gt;zdpp_verbrauceff~vmeng_m&lt;/P&gt;&lt;P&gt;zdpp_verbrauceff~aenam "Problem&lt;/P&gt;&lt;P&gt;zdpp_verbrauceff~aedat&lt;/P&gt;&lt;P&gt;zdpp_verbrauceff~aezet&lt;/P&gt;&lt;P&gt;zdpp_verbrauceff~prfdt&lt;/P&gt;&lt;P&gt;zdpp_verbrauceff~prfzt&lt;/P&gt;&lt;P&gt;FROM zdpp_verbrauceff&lt;/P&gt;&lt;P&gt;INTO TABLE lt_ver_db   "LINE MOVED to here&lt;/P&gt;&lt;P&gt;INNER JOIN mara&lt;/P&gt;&lt;P&gt;ON zdpp_verbrauceff&lt;SUB&gt;matnr = mara&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;WHERE zdpp_verbrauceff~zzmdv01 IN s_mdv01&lt;/P&gt;&lt;P&gt;AND zdpp_verbrauceff~begda &amp;lt;= s_datum-high&lt;/P&gt;&lt;P&gt;AND zdpp_verbrauceff~endda &amp;gt;= s_datum-low&lt;/P&gt;&lt;P&gt;AND mara~mtart IN s_mtart&lt;/P&gt;&lt;P&gt;AND mara~matnr IN s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Warren.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 11:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-join-explicit-field-declaration-does-not-work/m-p/7563378#M1564636</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2011-01-21T11:32:02Z</dc:date>
    </item>
  </channel>
</rss>

