<?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: Internal Table problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820334#M918826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a quick guess,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERNAM likely should be in UPPER case or you need to use a LIKE option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ERNAM LIKE 'ADEEL%'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2008 14:20:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-15T14:20:53Z</dc:date>
    <item>
      <title>Internal Table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820333#M918825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks!!!&lt;/P&gt;&lt;P&gt;I am having a small problem but can't find out why its happening. All I am trying to do is to get data in my internal table from table LFM1. I test the same code with MARA and it worked. Can anybody tell me why data is not coming in Internal from LFM1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my peice of code. &lt;/P&gt;&lt;P&gt;*******************************************************************************************************************&lt;/P&gt;&lt;P&gt;REPORT ZAD_POXKTEST .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of ilfm1 occurs 0.&lt;/P&gt;&lt;P&gt;include structure lfm1.&lt;/P&gt;&lt;P&gt;data: end of ilfm1.&lt;/P&gt;&lt;P&gt;select * from lfm1&lt;/P&gt;&lt;P&gt;into corresponding fields of table ilfm1&lt;/P&gt;&lt;P&gt;where ekorg = '3000'&lt;/P&gt;&lt;P&gt;and ernam = 'Adeel'.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;write:/ 'Error!!!'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of imara occurs 0.&lt;/P&gt;&lt;P&gt;include structure mara.&lt;/P&gt;&lt;P&gt;data: end of imara.&lt;/P&gt;&lt;P&gt;select * from mara&lt;/P&gt;&lt;P&gt;into corresponding fields of table imara&lt;/P&gt;&lt;P&gt;where ernam = 'RUDISILL'.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;write:/ 'Error!!!'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;***********************************************************************************************************&lt;/P&gt;&lt;P&gt;Thanks alot in Advnce.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 14:17:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820333#M918825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T14:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820334#M918826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a quick guess,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERNAM likely should be in UPPER case or you need to use a LIKE option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ERNAM LIKE 'ADEEL%'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 14:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820334#M918826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T14:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820335#M918827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check your case for ernam = 'Adeel'.&lt;/P&gt;&lt;P&gt;Try with ernam = 'ADEEL'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 14:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820335#M918827</guid>
      <dc:creator>former_member226999</dc:creator>
      <dc:date>2008-05-15T14:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820336#M918828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZAD_POXKTEST .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_lfm1 type standard table of lfm1 initial size 0.&lt;/P&gt;&lt;P&gt;data: it_mara type standard table of mara initial size 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from lfm1 into table it_lfm1&lt;/P&gt;&lt;P&gt;where ekorg = '3000'&lt;/P&gt;&lt;P&gt;and ernam = 'ADEEL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;write:/ 'Error!!!'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into table it_mara&lt;/P&gt;&lt;P&gt;where ernam = 'RUDISILL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;write:/ 'Error!!!'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Warren Clements on May 15, 2008 5:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 15:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820336#M918828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T15:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820337#M918829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you check the data in Database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to find out...whther the data related to your query is there or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If data is there, then try to give the name in CAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandeep Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 15:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820337#M918829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T15:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820338#M918830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have proposed another way of declaring your internal tables below. And also avoid using 'into corresponding fields of'. This requires more performance effort and is absolutely not necessary in your example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code: Select all&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;internal tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  it_lfm1 type standard table of lfm1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;work areas&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  wa_lfm1 type lfm1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select * from lfm1 into table it_lfm1&lt;/P&gt;&lt;P&gt;where .....&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  loop at table it_lfm1 into wa_lfm1.&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  write: / 'Error lfm1'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpfull...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Venkoji Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 15:42:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/3820338#M918830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T15:42:34Z</dc:date>
    </item>
  </channel>
</rss>

