<?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: ABAP problem in BW in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-problem-in-bw/m-p/3500970#M842095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You've got an internal table with your original records.  Create another table of the same type to hold your generated records, then append them to your original table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab_original.
  ... generate record into itab_new
  APPEND itab_new.
ENDLOOP

APPEND LINES OF itab_new TO itab_original.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2008 21:13:18 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2008-03-06T21:13:18Z</dc:date>
    <item>
      <title>ABAP problem in BW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-problem-in-bw/m-p/3500969#M842094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing this ABAP problem in enhancing a standard Datasource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go thru this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Present standard Internal table ITAB :&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PO number | PO item |G/L account | PO quan | PO quan1(new)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------" /&gt;&lt;P&gt;123            |   10         |   blank           |      100        |     blank &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I need to enhance this standard internal table for fields (G/L account &amp;amp;  (New field) (PO quantity)&lt;/P&gt;&lt;P&gt;)    in user exit from othe table EKKN.&lt;/P&gt;&lt;P&gt; I need to make use of PO number &amp;amp; PO item as the keys and select the data from EKKN and append into the same standard Internal table ITAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I cannot append in the LOOP as it goes for infinite loop. &lt;/P&gt;&lt;P&gt;But how to take the key and select the data and append .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my result to be something like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;After change&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PO number | PO item | G/L account |PO quan | PO quan1(new)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;123            |   10         |       blank        |    100         |  blank&lt;/P&gt;&lt;P&gt;123            |   10         |       G1            |    0             |   60&lt;/P&gt;&lt;P&gt;123            |   10         |       G2           |     0             |   40 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out with the ABAP code for this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 20:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-problem-in-bw/m-p/3500969#M842094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T20:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP problem in BW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-problem-in-bw/m-p/3500970#M842095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You've got an internal table with your original records.  Create another table of the same type to hold your generated records, then append them to your original table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab_original.
  ... generate record into itab_new
  APPEND itab_new.
ENDLOOP

APPEND LINES OF itab_new TO itab_original.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 21:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-problem-in-bw/m-p/3500970#M842095</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-03-06T21:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP problem in BW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-problem-in-bw/m-p/3500971#M842096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 15:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-problem-in-bw/m-p/3500971#M842096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-19T15:16:34Z</dc:date>
    </item>
  </channel>
</rss>

