<?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: append before endloop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411952#M819407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;before endloop use append&lt;/P&gt;&lt;P&gt;append &amp;lt;workarea&amp;gt; to &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 06:55:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-20T06:55:56Z</dc:date>
    <item>
      <title>append before endloop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411950#M819405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT IT_PO WHERE CHECK = 'X'.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING IT_PO TO OUTPUT-MT_PURCHASE_DATA-HEADER.&lt;/P&gt;&lt;P&gt;    MOVE 'R'                 TO OUTPUT-MT_PURCHASE_DATA-HEADER-FLAG.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING IT_PO TO L_ITEM.&lt;/P&gt;&lt;P&gt;    L_ITEM-DMBTR = IT_PO-MENGE * IT_PO-NETPR.&lt;/P&gt;&lt;P&gt;    INSERT L_ITEM INTO TABLE OUTPUT-MT_PURCHASE_DATA-ITEM.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we need to add append before endloop ...If so ..How&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 06:50:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411950#M819405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T06:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: append before endloop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411951#M819406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;            You need to use append before endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append OUTPUT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Niyaz Ahamed on Feb 20, 2008 12:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 06:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411951#M819406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T06:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: append before endloop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411952#M819407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;before endloop use append&lt;/P&gt;&lt;P&gt;append &amp;lt;workarea&amp;gt; to &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 06:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411952#M819407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T06:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: append before endloop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411953#M819408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;u need to append before endloop.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 06:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411953#M819408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T06:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: append before endloop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411954#M819409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_PO WHERE CHECK = 'X'.

MOVE-CORRESPONDING IT_PO TO OUTPUT-MT_PURCHASE_DATA-HEADER.
MOVE 'R' TO OUTPUT-MT_PURCHASE_DATA-HEADER-FLAG.
MOVE-CORRESPONDING IT_PO TO L_ITEM.
L_ITEM-DMBTR = IT_PO-MENGE * IT_PO-NETPR.
INSERT L_ITEM INTO TABLE
                          OUTPUT-MT_PURCHASE_DATA-ITEM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;CODE&gt;APPEND it_po.
         CLEAR     it_po.&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ENDLOOP&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doenot work can you revert back with the declaration for it_po, l_item and output structures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 07:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411954#M819409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T07:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: append before endloop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411955#M819410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmmm sorry Judith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_PO is the internal table he is looping, appending that again can get into a recursive loop. Append should be for MT_PURCHASE_DATA if it is internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 07:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411955#M819410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T07:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: append before endloop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411956#M819411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dear,&lt;/P&gt;&lt;P&gt;            You need to append the contents to&lt;/P&gt;&lt;P&gt;             internal table before endloop.&lt;/P&gt;&lt;P&gt;             If you the append statement in loop it will append all &lt;/P&gt;&lt;P&gt;             the records.&lt;/P&gt;&lt;P&gt;             If you put it outside of the loop it will append the last  &lt;/P&gt;&lt;P&gt;             record to an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it helps Reward me points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-before-endloop/m-p/3411956#M819411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T08:33:15Z</dc:date>
    </item>
  </channel>
</rss>

