<?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: Going to dump in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507335#M234262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make the highlighted change.&lt;/P&gt;&lt;P&gt;LOOP AT gt_temp_bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gt_fxentries WITH KEY belnr = gt_fxentries-belnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bukrs = gt_fxentries-bukrs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gjahr = gt_fxentries-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE gt_fxentries &amp;lt;b&amp;gt;index sy-tabix&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR gt_fxentries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2006 14:35:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-23T14:35:10Z</dc:date>
    <item>
      <title>Going to dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507332#M234259</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;Below is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_temp_bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE gt_fxentries WITH KEY belnr = gt_fxentries-belnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                bukrs = gt_fxentries-bukrs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                gjahr = gt_fxentries-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DELETE gt_fxentries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR  gt_fxentries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&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;It is going to dump at delete statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 14:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507332#M234259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T14:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Going to dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507333#M234260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to pass some where condition because system is not knowing which line you want to delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 14:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507333#M234260</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-08-23T14:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Going to dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507334#M234261</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;first of all, you can delete from gt_fxentries if sy-subrc 0 0, if it doesn´t exist you can´t delete it, and second, you have to put the index condition(for example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE gt_fxentries index sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 14:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507334#M234261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T14:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Going to dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507335#M234262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make the highlighted change.&lt;/P&gt;&lt;P&gt;LOOP AT gt_temp_bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gt_fxentries WITH KEY belnr = gt_fxentries-belnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bukrs = gt_fxentries-bukrs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gjahr = gt_fxentries-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE gt_fxentries &amp;lt;b&amp;gt;index sy-tabix&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR gt_fxentries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 14:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507335#M234262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T14:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Going to dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507336#M234263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code doesn't really make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


LOOP AT gt_temp_bkpf.

READ TABLE &amp;lt;b&amp;gt;gt_fxentries&amp;lt;/b&amp;gt; 
    WITH KEY belnr = &amp;lt;b&amp;gt;gt_fxentries&amp;lt;/b&amp;gt;-belnr
             bukrs = &amp;lt;b&amp;gt;gt_fxentries&amp;lt;/b&amp;gt;-bukrs
             gjahr = &amp;lt;b&amp;gt;gt_fxentries&amp;lt;/b&amp;gt;-gjahr.

IF sy-subrc &amp;lt;b&amp;gt;NE&amp;lt;/b&amp;gt; 0.
DELETE gt_fxentries.
CLEAR gt_fxentries.
ENDIF.

ENDLOOP.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what you have here is it looks like you are trying to read the GT_FXENTRIES table with values from the GT_FXENTRIES table.  This does not make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you are saying that you want to delete GT_FXENTRIES when sy-subrc &amp;lt;&amp;gt; 0,  this means that you are trying delete a line that doesn't exist.  Again this doesn't make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 14:36:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507336#M234263</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-23T14:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Going to dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507337#M234264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT gt_temp_bkpf.&lt;/P&gt;&lt;P&gt;READ TABLE gt_fxentries WITH KEY belnr = gt_fxentries-belnr&lt;/P&gt;&lt;P&gt;bukrs = gt_fxentries-bukrs&lt;/P&gt;&lt;P&gt;gjahr = gt_fxentries-gjahr.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;DELETE gt_fxentries.&lt;/P&gt;&lt;P&gt;CLEAR gt_fxentries.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;--The above code does not make sense as you are trying to read the table gt_fxentries with its values and if not found deleting it ...I think you need is the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_temp_bkpf.&lt;/P&gt;&lt;P&gt;READ TABLE gt_fxentries WITH KEY belnr = gt_temp_bkpf-belnr.&lt;/P&gt;&lt;P&gt;bukrs = gt_fxentries-bukrs&lt;/P&gt;&lt;P&gt;gjahr = gt_fxentries-gjahr.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;   DELETE gt_temp_bkpf.&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;the above code would read through the table gt_temp_bkpf and check if the corresponding entry exists for the particular belnr in gt_fxentries, If yes than initialise the bukrs and gjahr fields otherwise delete the record from gt_temp_bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 14:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507337#M234264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T14:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Going to dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507338#M234265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;use  DELETE gt_fxentries index sy-tabix that too when sy-subrc = 0. &lt;/P&gt;&lt;P&gt;i.e. if there is some record in gt_fxentries then only u r going to delete that record.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0 that means there is no record with ur belnr so how can you delete some record which is not existing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Anu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 14:44:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507338#M234265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T14:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Going to dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507339#M234266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;As a good practice never delete a internal table inside a  loop try to put a flag and mark the flag for deletion after loop apply delete command on the internal table where the flag = X , in this way you can delete all your required records which are marked for deletion. You can improve your performance also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 14:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507339#M234266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T14:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Going to dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507340#M234267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are trying to delete entries from gt_fxentries if they do not have a match in gt_temp_bkpf.&lt;/P&gt;&lt;P&gt;check this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_temp_bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gt_fxentries WITH KEY belnr = gt_temp_bkpf-belnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bukrs = gt_temp_bkpf-bukrs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gjahr = gt_temp_bkpf-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE gt_fxentries index sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 14:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-dump/m-p/1507340#M234267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T14:54:05Z</dc:date>
    </item>
  </channel>
</rss>

