<?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: message  overwrite table within a LOOP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-overwrite-table-within-a-loop/m-p/3845972#M924636</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; If i have understood your question correctly .. do this way  ...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT IBSIS.
    LV_INDEX = SY-TABIX.  
      BSIS = IBSIS-BSIS.
*----- Zur Stornierung vorgemerkte Posten ausschließen, ----------------
*----- z.B. Abgrenzungsposten ------------------------------------------
        CHECK BSIS-XSTOV = SPACE.
        CLEAR: XBSIS, XBSISGR.
*----- Fuellen der Gruppierungstabelle xbsisgr -------------------------
*----- und der Tabelle xbsis -------------------------------------------
*----- Sonderbearbeitung für WE/RE-Konten ------------------------------
        PERFORM XBSIS_XBSISGR_FUELLEN.
*        DELETE IBSIS.
        IBSIS-FLAG = 'X'.
        IF X_EXIT = 'X'.
*          REFRESH IBSIS.
           CLEAR IBSIS.
          EXIT.
        ENDIF.
      MODIFY IBSIS INDEX LV_INDEX TRANSPORTING FLAG.
      ENDLOOP.

  DELETE IBSIS WHERE FLAG = 'X'. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 16:32:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T16:32:12Z</dc:date>
    <item>
      <title>message  overwrite table within a LOOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-overwrite-table-within-a-loop/m-p/3845969#M924633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I pass the verification I obtain the next message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You may not delete or overwrite table "IBSIS" within a LOOP through itself&lt;/STRONG&gt;	...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t understand, can you help me please,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IBSIS.
        BSIS = IBSIS-BSIS.
*----- Zur Stornierung vorgemerkte Posten ausschließen, ----------------
*----- z.B. Abgrenzungsposten ------------------------------------------
        CHECK BSIS-XSTOV = SPACE.
        CLEAR: XBSIS, XBSISGR.
*----- Fuellen der Gruppierungstabelle xbsisgr -------------------------
*----- und der Tabelle xbsis -------------------------------------------
*----- Sonderbearbeitung für WE/RE-Konten ------------------------------
        PERFORM XBSIS_XBSISGR_FUELLEN.
        DELETE IBSIS.
        IF X_EXIT = 'X'.
          REFRESH IBSIS.
          EXIT.
        ENDIF.
      ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cordial greetings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 16:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-overwrite-table-within-a-loop/m-p/3845969#M924633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T16:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: message  overwrite table within a LOOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-overwrite-table-within-a-loop/m-p/3845970#M924634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with deleting with help of INDEX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT IBSIS.
L_INDEX = SY-TABIX.
        BSIS = IBSIS-BSIS.
*----- Zur Stornierung vorgemerkte Posten ausschließen, ----------------
*----- z.B. Abgrenzungsposten ------------------------------------------
        CHECK BSIS-XSTOV = SPACE.
        CLEAR: XBSIS, XBSISGR.
*----- Fuellen der Gruppierungstabelle xbsisgr -------------------------
*----- und der Tabelle xbsis -------------------------------------------
*----- Sonderbearbeitung für WE/RE-Konten ------------------------------
        PERFORM XBSIS_XBSISGR_FUELLEN.
        DELETE IBSIS INDEX L_INDEX.
        IF X_EXIT = 'X'.
          REFRESH IBSIS.
          EXIT.
        ENDIF.
      ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 16:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-overwrite-table-within-a-loop/m-p/3845970#M924634</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-05-14T16:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: message  overwrite table within a LOOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-overwrite-table-within-a-loop/m-p/3845971#M924635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can't delete the entire table while you're looping through it. Is that what you're trying to do? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so, you need to exit the loop then delete the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are trying to delete just a row out of it, you need to specify that with the INDEX argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;robert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT - Naimesh gave a good hint.. but also, there's a REFRESH IBSIS in there that will trigger a short dump if executed in the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: robert phelan on May 14, 2008 6:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 16:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-overwrite-table-within-a-loop/m-p/3845971#M924635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T16:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: message  overwrite table within a LOOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-overwrite-table-within-a-loop/m-p/3845972#M924636</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; If i have understood your question correctly .. do this way  ...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT IBSIS.
    LV_INDEX = SY-TABIX.  
      BSIS = IBSIS-BSIS.
*----- Zur Stornierung vorgemerkte Posten ausschließen, ----------------
*----- z.B. Abgrenzungsposten ------------------------------------------
        CHECK BSIS-XSTOV = SPACE.
        CLEAR: XBSIS, XBSISGR.
*----- Fuellen der Gruppierungstabelle xbsisgr -------------------------
*----- und der Tabelle xbsis -------------------------------------------
*----- Sonderbearbeitung für WE/RE-Konten ------------------------------
        PERFORM XBSIS_XBSISGR_FUELLEN.
*        DELETE IBSIS.
        IBSIS-FLAG = 'X'.
        IF X_EXIT = 'X'.
*          REFRESH IBSIS.
           CLEAR IBSIS.
          EXIT.
        ENDIF.
      MODIFY IBSIS INDEX LV_INDEX TRANSPORTING FLAG.
      ENDLOOP.

  DELETE IBSIS WHERE FLAG = 'X'. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 16:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-overwrite-table-within-a-loop/m-p/3845972#M924636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T16:32:12Z</dc:date>
    </item>
  </channel>
</rss>

