<?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: Not getting data in Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009466#M1345703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_mseg[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select zzlcno zzlcdt&lt;/P&gt;&lt;P&gt;into table i_ekpo from ekpo&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;where ebeln = '0020002943'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;for all entries in i_mseg&lt;/P&gt;&lt;P&gt;where ebeln = i_mseg-ebeln and&lt;/P&gt;&lt;P&gt;ebelp = i_mseg-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2009 07:02:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-24T07:02:43Z</dc:date>
    <item>
      <title>Not getting data in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009456#M1345693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m not getting data in my internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_mseg[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select zzlcno zzlcdt&lt;/P&gt;&lt;P&gt; into i_ekpo from  ekpo&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;where ebeln = '0020002943'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;for all entries in i_mseg&lt;/P&gt;&lt;P&gt;where ebeln = i_mseg-ebeln and&lt;/P&gt;&lt;P&gt;      ebelp = i_mseg-ebelp.&lt;/P&gt;&lt;P&gt;      append i_ekpo.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz suggest where I  wrong.&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Aug 2009 11:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009456#M1345693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-22T11:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009457#M1345694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since we do not see the definitions of your itab's it is difficult (but not impossible) to answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the fields zzlcno zzlcdt appended to EKPO? What is the line type of I_EKPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that the two z-fields are appended to EKPO and I_EKPO has line type EKPO you may succeed with::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select zzlcno zzlcdt
into CORRESPONDING FIELDS OF i_ekpo from ekpo
* where ebeln = '0020002943'.
for all entries in i_mseg
where ebeln = i_mseg-ebeln and
ebelp = i_mseg-ebelp.
append i_ekpo.
endselect.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Aug 2009 12:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009457#M1345694</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-08-22T12:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009458#M1345695</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 try with the code given below... hope that helps you out....&lt;/P&gt;&lt;P&gt;also write a break-point statement just before the if statement and check in the debugging mode if it i_mseg table has some values or not...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if i_mseg[] is not initial.

select zzlcno zzlcdt
into i_ekpo from ekpo
for all entries in i_mseg
where ebeln = i_mseg-ebeln.

    append i_ekpo.
endselect.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if i_mseg[] is not initial.

select zzlcno zzlcdt
into corresponding fields of  i_ekpo from ekpo
for all entries in i_mseg
where ebeln = i_mseg-ebeln.

    append i_ekpo.
endselect.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Aug 2009 12:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009458#M1345695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-22T12:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009459#M1345696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ravi...Avoid Endselect and use Into table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paste your itab declaration part ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Aug 2009 15:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009459#M1345696</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-08-22T15:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009460#M1345697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. avoid select endselect.&lt;/P&gt;&lt;P&gt;       use.. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select x y z from tt into TABLE i_ekpo where...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. check the structure declarations&lt;/P&gt;&lt;P&gt;3. keep a break point on the select statement and when execute. when debugger starts check values in i_mseg.&lt;/P&gt;&lt;P&gt;4.if values are there in i_mseg. take those values, goto se16-&amp;gt;ekpo table. pass those i_mseg entries in to it and check data is available or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Aug 2009 18:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009460#M1345697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-22T18:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009461#M1345698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;My table declaration part and i_mseg has data in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_ekpo occurs 0,&lt;/P&gt;&lt;P&gt;     zzlcno like ekpo-zzlcno,&lt;/P&gt;&lt;P&gt;     zzlcdt like ekpo-zzlcdt,&lt;/P&gt;&lt;P&gt;      end of i_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 04:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009461#M1345698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T04:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009462#M1345699</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;Firstly in the debugging mode check if you are getting entries in i_mseg table... whether it goes to that select queries or not....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then from SE11 check in the ekpo table if there are any values for the fields you have mentioned in the select query...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 06:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009462#M1345699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T06:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009463#M1345700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please confirm if there is data in ekpo table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 06:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009463#M1345700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T06:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009464#M1345701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1.  Directly populate the itab using 'INTO TABLE' addition.&lt;/P&gt;&lt;P&gt;2. Check whether you have data in I_MSEG[].&lt;/P&gt;&lt;P&gt;3. Avoid using 'SELECT...ENDSELECT'.&lt;/P&gt;&lt;P&gt;4. Also pls check whether you have data in EKPO corresponding to I_MSEG condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Pradipta K Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 06:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009464#M1345701</guid>
      <dc:creator>pradiptakumar_mishra</dc:creator>
      <dc:date>2009-08-24T06:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009465#M1345702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Always check sy-subrc after a select. In case of update and delete, check sy-dbcnt, too. If you ask in SDn, post all necessary information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 06:55:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009465#M1345702</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-08-24T06:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009466#M1345703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_mseg[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select zzlcno zzlcdt&lt;/P&gt;&lt;P&gt;into table i_ekpo from ekpo&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;where ebeln = '0020002943'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;for all entries in i_mseg&lt;/P&gt;&lt;P&gt;where ebeln = i_mseg-ebeln and&lt;/P&gt;&lt;P&gt;ebelp = i_mseg-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 07:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-in-internal-table/m-p/6009466#M1345703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T07:02:43Z</dc:date>
    </item>
  </channel>
</rss>

