<?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: about error occured in program by using inner joins in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-error-occured-in-program-by-using-inner-joins/m-p/11932410#M1964792</link>
    <description>&lt;P&gt;I also see that there's a typo error: wa_t00l &amp;lt;&amp;gt; wa_t001 (l versus 1)&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2019 14:49:43 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2019-05-31T14:49:43Z</dc:date>
    <item>
      <title>about error occured in program by using inner joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-error-occured-in-program-by-using-inner-joins/m-p/11932408#M1964790</link>
      <description>&lt;P&gt;Hello AbapExperts,&lt;/P&gt;
  &lt;P&gt; data : begin of wa_final,&lt;BR /&gt; bukrs type t001-bukrs,&lt;BR /&gt; butxt type t001-butxt,&lt;BR /&gt; lifnr type lfb1-lifnr,&lt;BR /&gt; end of wa_final.&lt;BR /&gt; data it_final like table of wa_final.&lt;BR /&gt; select t001~bukrs t001~butxt lfb1~lifnr into table it_final&lt;BR /&gt; from t001 inner join lfb1 on t001~bukrs = lfb1~bukrs.&lt;BR /&gt; sort it_final by bukrs.&lt;BR /&gt; loop at it_final into wa_final.&lt;BR /&gt; write : / wa_t00l-bukrs,&lt;BR /&gt; wa_t001-butxt,&lt;BR /&gt; wa_lfb1-lifnr,&lt;BR /&gt; endloop.&lt;/P&gt;
  &lt;P&gt;when i compile the above program i got error msg like " field "wa_t001-bukrs" is unknown.It is neither in one of specified tables nor defined by "data" statement". Can you please help me find out the error.&lt;/P&gt;
  &lt;P&gt;suggestions apreciated.&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 13:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-error-occured-in-program-by-using-inner-joins/m-p/11932408#M1964790</guid>
      <dc:creator>former_member612655</dc:creator>
      <dc:date>2019-05-31T13:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: about error occured in program by using inner joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-error-occured-in-program-by-using-inner-joins/m-p/11932409#M1964791</link>
      <description>&lt;P&gt;HI &lt;A href="https://answers.sap.com/users/796930/bhavani123.html"&gt;Bhavani &lt;/A&gt;,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_final into wa_final.
write : / wa_t00l-bukrs,wa_t001-butxt,wa_lfb1-lifnr.
endloop.

In the above code you are looping into one workarea and you are displaying some other workarea data which you didnt even declared.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 May 2019 13:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-error-occured-in-program-by-using-inner-joins/m-p/11932409#M1964791</guid>
      <dc:creator>former_member596005</dc:creator>
      <dc:date>2019-05-31T13:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: about error occured in program by using inner joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-error-occured-in-program-by-using-inner-joins/m-p/11932410#M1964792</link>
      <description>&lt;P&gt;I also see that there's a typo error: wa_t00l &amp;lt;&amp;gt; wa_t001 (l versus 1)&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 14:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-error-occured-in-program-by-using-inner-joins/m-p/11932410#M1964792</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-05-31T14:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: about error occured in program by using inner joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-error-occured-in-program-by-using-inner-joins/m-p/11932411#M1964793</link>
      <description>&lt;P&gt;In future, use the "code" button. It makes your code easier to read if it's formatted nicely.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : 
  begin of wa_final,
    bukrs type t001-bukrs,
    butxt type t001-butxt,
    lifnr type lfb1-lifnr,
  end of wa_final.
data it_final like table of wa_final.

select t001~bukrs t001~butxt lfb1~lifnr into table it_final
    from t001
    inner join lfb1
            on t001~bukrs = lfb1~bukrs.

sort it_final by bukrs.
loop at it_final into wa_final.
  write : / wa_t00l-bukrs,wa_t001-butxt,wa_lfb1-lifnr.
endloop.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now, why would you expect it to work, if you've not declared wa_t001?&lt;BR /&gt;Also, don't select from the database and then sort. Put ORDER BY in your select.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 15:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-error-occured-in-program-by-using-inner-joins/m-p/11932411#M1964793</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-05-31T15:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: about error occured in program by using inner joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-error-occured-in-program-by-using-inner-joins/m-p/11932412#M1964794</link>
      <description>&lt;P&gt;And a comma before the endloop.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 15:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-error-occured-in-program-by-using-inner-joins/m-p/11932412#M1964794</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-05-31T15:25:49Z</dc:date>
    </item>
  </channel>
</rss>

