<?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: Error in Modify statement and getting dump while running in background. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759025#M904376</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 are trying to modify a different table in the loop. if you want to modify a different table other than the table which you are looping try reading the internal table first basing on the loop table and then use modify statement with index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravind M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2008 07:29:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-29T07:29:45Z</dc:date>
    <item>
      <title>Error in Modify statement and getting dump while running in background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759019#M904370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;While executing a program in background i am getting the dump with the error 'TABLE_ILLEGAL_STATEMENT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the dump it is showing the error line as the modify statement.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;Error code:-&lt;/P&gt;&lt;P&gt;  LOOP AT gt_order_sub_data.&lt;/P&gt;&lt;P&gt;    gt_list_subs-sel_flag = 'X'.&lt;/P&gt;&lt;P&gt;   -&amp;gt; &lt;STRONG&gt;MODIFY gt_list_subs TRANSPORTING sel_flag.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any issue with the modify statement?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neslin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759019#M904370</guid>
      <dc:creator>Neslinn</dc:creator>
      <dc:date>2008-04-29T07:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Modify statement and getting dump while running in background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759020#M904371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Refer&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=11254604&amp;amp;messageID=4375381" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=11254604&amp;amp;messageID=4375381&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=11254604&amp;amp;messageID=4914863" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=11254604&amp;amp;messageID=4914863&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759020#M904371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Modify statement and getting dump while running in background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759021#M904372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neslin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_order_sub_data.&lt;/P&gt;&lt;P&gt;gt_list_subs-sel_flag = 'X'.&lt;/P&gt;&lt;P&gt;MODIFY gt_list_subs index sy-tabix TRANSPORTING sel_flag .&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would solved.&lt;/P&gt;&lt;P&gt;please do reward if solved.&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759021#M904372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Modify statement and getting dump while running in background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759022#M904373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Error code:-&lt;/P&gt;&lt;P&gt;LOOP AT gt_order_sub_data.&lt;/P&gt;&lt;P&gt;gt_list_subs-sel_flag = 'X'.&lt;/P&gt;&lt;P&gt;-&amp;gt; MODIFY gt_list_subs TRANSPORTING sel_flag.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the below code shud work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_order_sub_data.&lt;/P&gt;&lt;P&gt; Read table gt_list_subs with key &amp;lt; specify the fields &amp;gt;&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0&lt;/P&gt;&lt;P&gt;gt_list_subs-sel_flag = 'X'.&lt;/P&gt;&lt;P&gt;MODIFY gt_list_subs TRANSPORTING sel_flag.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of Read table you can use LOOP AT gt_list_subs also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt; only MODIFY gt_list_subs index sy-tabix TRANSPORTING sel_flag .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759022#M904373</guid>
      <dc:creator>former_member609120</dc:creator>
      <dc:date>2008-04-29T07:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Modify statement and getting dump while running in background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759023#M904374</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;The thing is you are looping on another table and modifying another table. If you have to modify another table then either loop on it or use MODIFY TABLE ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if usefull.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759023#M904374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Modify statement and getting dump while running in background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759024#M904375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Khusro Habib,&lt;/P&gt;&lt;P&gt;Thanks for pointing out tht. I have to be more attentive before posting the qns.:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neslin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:29:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759024#M904375</guid>
      <dc:creator>Neslinn</dc:creator>
      <dc:date>2008-04-29T07:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Modify statement and getting dump while running in background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759025#M904376</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 are trying to modify a different table in the loop. if you want to modify a different table other than the table which you are looping try reading the internal table first basing on the loop table and then use modify statement with index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravind M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-modify-statement-and-getting-dump-while-running-in-background/m-p/3759025#M904376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:29:45Z</dc:date>
    </item>
  </channel>
</rss>

