<?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: get a solution for the pg. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-a-solution-for-the-pg/m-p/3457933#M830809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;
Fristly when you are using CORRESPONDING FIELDS OF, it expects same field name in database table and internal table.

In your case MENGE is database table field whereas in internal table it is MENGE1, both do not match so MENGE1 will not be populated.

Remove CORRESPONDING FIELDS OF from your statement.

Next this statement will execute forever as you are retreiving with conditions andMSEG consists huge data. Try to optimize SELECT query for better performance.
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2008 07:57:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-22T07:57:40Z</dc:date>
    <item>
      <title>get a solution for the pg.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-a-solution-for-the-pg/m-p/3457931#M830807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       mblnr like mseg-mblnr,&lt;/P&gt;&lt;P&gt;       menge like mseg-menge,&lt;/P&gt;&lt;P&gt;       meng1 like ekpo-menge,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;mblnr a&lt;/SUB&gt;menge b~menge into corresponding fields of&lt;/P&gt;&lt;P&gt;table itab from mseg as a inner join ekpo as b on b&lt;SUB&gt;ebeln = a&lt;/SUB&gt;ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at itab.&lt;/P&gt;&lt;P&gt; write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab-mblnr,itab-menge,.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i cant get the value for the meng1 field, why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by &lt;/P&gt;&lt;P&gt;karthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 07:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-a-solution-for-the-pg/m-p/3457931#M830807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T07:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: get a solution for the pg.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-a-solution-for-the-pg/m-p/3457932#M830808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove corresponding fields of and give into table &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select a~mblnr a~menge b~menge into 
table itab from mseg as a inner join ekpo as b on b~ebeln = a~ebeln.

loop at itab.
write :/ itab-mblnr,itab-menge,.
endloop.

 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 07:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-a-solution-for-the-pg/m-p/3457932#M830808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T07:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: get a solution for the pg.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-a-solution-for-the-pg/m-p/3457933#M830809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;
Fristly when you are using CORRESPONDING FIELDS OF, it expects same field name in database table and internal table.

In your case MENGE is database table field whereas in internal table it is MENGE1, both do not match so MENGE1 will not be populated.

Remove CORRESPONDING FIELDS OF from your statement.

Next this statement will execute forever as you are retreiving with conditions andMSEG consists huge data. Try to optimize SELECT query for better performance.
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 07:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-a-solution-for-the-pg/m-p/3457933#M830809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T07:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: get a solution for the pg.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-a-solution-for-the-pg/m-p/3457934#M830810</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;Try like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  a~mblnr&lt;/P&gt;&lt;P&gt;           a~menge&lt;/P&gt;&lt;P&gt;           b~menge  AS menge1&lt;/P&gt;&lt;P&gt;into corresponding fields of&lt;/P&gt;&lt;P&gt;table itab &lt;/P&gt;&lt;P&gt;from mseg as a &lt;/P&gt;&lt;P&gt;inner join &lt;/P&gt;&lt;P&gt;        ekpo as b&lt;/P&gt;&lt;P&gt;      on a&lt;SUB&gt;ebeln = b&lt;/SUB&gt;ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know then..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks . Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 07:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-a-solution-for-the-pg/m-p/3457934#M830810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T07:59:39Z</dc:date>
    </item>
  </channel>
</rss>

