<?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: Causing error in query using 3 tables? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474962#M1744096</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;Just to see where exactly your problem lies, why dont you first make an internal table with columns &lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;'YEMPMST-DIVID', 'YEMPMST-DPTID', 'YESHTMST-SFTCD',&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'YSHIFTM-FRMTM', 'YSHIFTM-TOTTM'&lt;/P&gt;&lt;P&gt;And if error persists you would know problem is in your condition else in 'into' statement. Most likely 1 of the column is not declared in the internal table or there is size/ data type mismatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2013 06:59:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-05-09T06:59:50Z</dc:date>
    <item>
      <title>Causing error in query using 3 tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474961#M1744095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With Respect Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem in a query using 3 table tables with inner join...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;SELECT&lt;/SPAN&gt; a~DIVID a~DPTID b~SFTCD &lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;~FRMTM &lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;~TOTTM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO&lt;/SPAN&gt; (YEMPMST-DIVID, YEMPMST-DPTID, YESHTMST-SFTCD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YSHIFTM-FRMTM, YSHIFTM-TOTTM)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FROM&lt;/SPAN&gt; yempmst &lt;SPAN class="L0S52"&gt;as&lt;/SPAN&gt; a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER &lt;SPAN class="L0S52"&gt;JOIN&lt;/SPAN&gt; YESHTMST &lt;SPAN class="L0S52"&gt;as&lt;/SPAN&gt; b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;on&lt;/SPAN&gt;&amp;nbsp; b~ADRNR = a~ADRNR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND&lt;/SPAN&gt; b~EMPCD = a~EMPCD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND&lt;/SPAN&gt; b~untno = a~untno&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND&lt;/SPAN&gt; b~FRMDT &amp;lt;= YATNDENT-PCHDT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND&lt;/SPAN&gt; b~TODAT &amp;gt;= YATNDENT-PCHDT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER &lt;SPAN class="L0S52"&gt;JOIN&lt;/SPAN&gt; YSHIFTM &lt;SPAN class="L0S52"&gt;as&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;on&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;~untno = b~untno&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;~sftcd = b~sftcd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE&lt;/SPAN&gt; a~EMPCD = YATNDENT-EMPCD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND&lt;/SPAN&gt; a~UNTNO = YEMPMST-UNTNO.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDSELECT&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The list "(YEMPMST-DIVID, YEMPMST-DPTID, YESHTMST-SFTCD,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YSHIFTM-FRMTM, YSHIFTM-TOTTM)" after "INTO" is not of the the form (f1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...,fn), or contains an undefined field. the form (f1, ...,fn), or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;contains an undefined field or contains an&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here all the fields are in correct order ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly give me suggestion...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks / Himanshu Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 06:50:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474961#M1744095</guid>
      <dc:creator>himanshu_gupta13</dc:creator>
      <dc:date>2013-05-09T06:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Causing error in query using 3 tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474962#M1744096</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;Just to see where exactly your problem lies, why dont you first make an internal table with columns &lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;'YEMPMST-DIVID', 'YEMPMST-DPTID', 'YESHTMST-SFTCD',&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'YSHIFTM-FRMTM', 'YSHIFTM-TOTTM'&lt;/P&gt;&lt;P&gt;And if error persists you would know problem is in your condition else in 'into' statement. Most likely 1 of the column is not declared in the internal table or there is size/ data type mismatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 06:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474962#M1744096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-09T06:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Causing error in query using 3 tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474963#M1744097</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;It generally comes when one the fields are not available in that work area. Cross check the field names if you have mapped to proper tables. If still not found, then check by keeping only variable and removing others. if it is correct, then keep addign one by one and check which is causing the issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Swarna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 06:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474963#M1744097</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2013-05-09T06:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Causing error in query using 3 tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474964#M1744098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;BR /&gt;Try to use FOR ALL ENTRIES and test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Danny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 07:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474964#M1744098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-09T07:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Causing error in query using 3 tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474965#M1744099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himanshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT&lt;/SPAN&gt; a~DIVID a~DPTID b~SFTCD &lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;~FRMTM &lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;~TOTTM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO&lt;/SPAN&gt; (YEMPMST-DIVID, YEMPMST-DPTID, YESHTMST-SFTCD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YSHIFTM-FRMTM, YSHIFTM-TOTTM)&lt;/P&gt;&lt;P&gt;you can make an internal table with these fields or you can make variables. Try once i guess this will resolve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 07:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474965#M1744099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-09T07:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Causing error in query using 3 tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474966#M1744100</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 cannot put the values directly to the columns of an internal table. You can use local variables such as lv_DIVID, lv_DPTID and then pass them on. Or you can also do into corresponding fields of and have a internal table defined with the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 07:06:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474966#M1744100</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-05-09T07:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Causing error in query using 3 tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474967#M1744101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himansh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably one or more of the destination fields are not well defined (or not defined at all). But you really should go to INTO TABLE instead of SELECT/ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Custodio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 07:10:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474967#M1744101</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2013-05-09T07:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Causing error in query using 3 tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474968#M1744102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very very thank you to all for your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it, sometimes some small things get skip of mind .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't defined that &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;YSHIFTM&lt;/SPAN&gt; uder &lt;STRONG&gt;TABLES&lt;/STRONG&gt; that's why it was causing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks / Himanshu Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 07:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/causing-error-in-query-using-3-tables/m-p/9474968#M1744102</guid>
      <dc:creator>himanshu_gupta13</dc:creator>
      <dc:date>2013-05-09T07:23:56Z</dc:date>
    </item>
  </channel>
</rss>

