<?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 how to feach data from database table  to internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-feach-data-from-database-table-to-internal-table/m-p/12445824#M1999047</link>
    <description>&lt;P&gt;Hi Experts&lt;/P&gt;
  &lt;P&gt;The code is following. There are some data in the item2. But I hope feach lgort from mseg to item2. &lt;/P&gt;
  &lt;P&gt;But the result is not right .Can you help me ? &lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;SELECT  MSEG~LGORT
    INTO CORRESPONDING FIELDS OF TABLE ITEM2
    FROM MSEG
     FOR ALL ENTRIES IN ITEM2
    WHERE  MBLNR = ITEM2-BELNR AND matnr = ITEM2-matnr .&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 13 Apr 2021 03:08:28 GMT</pubDate>
    <dc:creator>1190_5939_439</dc:creator>
    <dc:date>2021-04-13T03:08:28Z</dc:date>
    <item>
      <title>how to feach data from database table  to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-feach-data-from-database-table-to-internal-table/m-p/12445824#M1999047</link>
      <description>&lt;P&gt;Hi Experts&lt;/P&gt;
  &lt;P&gt;The code is following. There are some data in the item2. But I hope feach lgort from mseg to item2. &lt;/P&gt;
  &lt;P&gt;But the result is not right .Can you help me ? &lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;SELECT  MSEG~LGORT
    INTO CORRESPONDING FIELDS OF TABLE ITEM2
    FROM MSEG
     FOR ALL ENTRIES IN ITEM2
    WHERE  MBLNR = ITEM2-BELNR AND matnr = ITEM2-matnr .&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Apr 2021 03:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-feach-data-from-database-table-to-internal-table/m-p/12445824#M1999047</guid>
      <dc:creator>1190_5939_439</dc:creator>
      <dc:date>2021-04-13T03:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to feach data from database table  to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-feach-data-from-database-table-to-internal-table/m-p/12445825#M1999048</link>
      <description>&lt;P&gt;没有图啊，不确定什么问题。估计跟列名有关系。你试试别名。&lt;/P&gt;&lt;P&gt;起的别名要跟ITEM2里你想存LGORT的列同名&lt;/P&gt;&lt;P&gt;SELECT  MSEG~LGORT as &amp;lt;&lt;STRONG&gt;XXXXX&lt;/STRONG&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;
    INTO CORRESPONDING FIELDS OF TABLE ITEM2&lt;/P&gt;&lt;P&gt;
    FROM MSEG &lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN ITEM2 &lt;/P&gt;&lt;P&gt;    WHERE  MBLNR = ITEM2-BELNR AND matnr = ITEM2-matnr .&lt;/P&gt;&lt;P&gt;然后这里怎么ITEM2又在FAE里又在INTO里，感觉怪怪的(是不是不太好 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; )&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 03:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-feach-data-from-database-table-to-internal-table/m-p/12445825#M1999048</guid>
      <dc:creator>tom_wan</dc:creator>
      <dc:date>2021-04-13T03:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to feach data from database table  to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-feach-data-from-database-table-to-internal-table/m-p/12445826#M1999049</link>
      <description>&lt;P&gt;Better answer in English if the question is asked in English, so that future visitors can understand the answer if they have the same question &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 08:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-feach-data-from-database-table-to-internal-table/m-p/12445826#M1999049</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-04-13T08:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to feach data from database table  to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-feach-data-from-database-table-to-internal-table/m-p/12445827#M1999050</link>
      <description>&lt;P&gt;Thanks for your advice.&lt;/P&gt;&lt;P&gt;I think the cause is the "MSEG~LGORT" doesn't exist in ITEM2.&lt;/P&gt;&lt;P&gt;I suggest use alias:&lt;/P&gt;&lt;P&gt;SELECT MSEG~LGORT as &amp;lt;&lt;STRONG&gt;XXXXX&lt;/STRONG&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE ITEM2&lt;/P&gt;&lt;P&gt;FROM MSEG&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN ITEM2&lt;/P&gt;&lt;P&gt;WHERE MBLNR = ITEM2-BELNR AND matnr = ITEM2-matnr .&lt;/P&gt;&lt;P&gt;&amp;lt;XXXXX&amp;gt; must equals to the column name of LGORT in ITEM2&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 00:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-feach-data-from-database-table-to-internal-table/m-p/12445827#M1999050</guid>
      <dc:creator>tom_wan</dc:creator>
      <dc:date>2021-04-14T00:06:51Z</dc:date>
    </item>
  </channel>
</rss>

