<?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: Code inspector error message please help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025921#M1169199</link>
    <description>&lt;P&gt;There's 2 more and I'd really appreciate your inputs.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 1.) LOOP AT lt_plaf
    ASSIGNING FIELD-SYMBOL(&amp;lt;fs_plaf&amp;gt;).


    READ TABLE lt_zmrp
      INTO DATA(ls_zmrp)
      WITH KEY cno_order = &amp;lt;fs_plaf&amp;gt;-plnum+3(7).


    IF sy-subrc NE 0.
      MOVE abap_true TO &amp;lt;fs_plaf&amp;gt;-xdel .
    ENDIF.


  ENDLOOP.


  DELETE lt_plaf
    WHERE xdel EQ abap_true.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;2.)   SELECT ordid
    FROM /bmw/ts_1143_log AS a
   WHERE ordid IN @s_ordid
     AND order_comp_flag EQ @space
     AND
  EXISTS ( SELECT *
             FROM zmrp
            WHERE cno_order  EQ a~ordid
              AND cid_status IN @s_status
              AND cno_assyl  IN @s_assyl )
    INTO TABLE @gt_log.


  IF sy-subrc EQ 0.


    SORT gt_log
      BY ordid.


    DELETE ADJACENT DUPLICATES FROM gt_log
      COMPARING ordid ##CI_SORTED.


  ENDIF.


&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 09 Mar 2020 15:17:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-03-09T15:17:22Z</dc:date>
    <item>
      <title>Code inspector error message please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025916#M1169194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All i have used delete statement as shown below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE t_output WHERE  remain_invoice  NOT IN s_invo[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_output is my internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message in code inspector is :Sequential read access for a standard table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should i do ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 09:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025916#M1169194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T09:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Code inspector error message please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025917#M1169195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you deleting data from internal table or database table?&lt;/P&gt;&lt;P&gt;For internal table use addition DELETE TABLE....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 09:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025917#M1169195</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-01-15T09:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Code inspector error message please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025918#M1169196</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;i think you should not do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try .&lt;/P&gt;&lt;P&gt;loop at t_output.&lt;/P&gt;&lt;P&gt;vtabix = sy-tabix.&lt;/P&gt;&lt;P&gt;read table s_invo with key low = t_output-remain_invoice .&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt; delete t_output index vtabix.&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;this wont lead any performance issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 09:55:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025918#M1169196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T09:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Code inspector error message please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025919#M1169197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think its better to avoid delete statements inside the loop&lt;/P&gt;&lt;P&gt;instead of using delete statement inside the loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete table itab where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have to use loop at any cost&lt;/P&gt;&lt;P&gt;modify internal table with flag=X &lt;/P&gt;&lt;P&gt;and then delete all records from the itab at one shot using above statement&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;Vikas C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 10:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025919#M1169197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T10:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code inspector error message please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025920#M1169198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manisha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We should not do delete inside loop.&lt;/P&gt;&lt;P&gt;It will degrade performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandipan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 10:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025920#M1169198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T10:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Code inspector error message please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025921#M1169199</link>
      <description>&lt;P&gt;There's 2 more and I'd really appreciate your inputs.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 1.) LOOP AT lt_plaf
    ASSIGNING FIELD-SYMBOL(&amp;lt;fs_plaf&amp;gt;).


    READ TABLE lt_zmrp
      INTO DATA(ls_zmrp)
      WITH KEY cno_order = &amp;lt;fs_plaf&amp;gt;-plnum+3(7).


    IF sy-subrc NE 0.
      MOVE abap_true TO &amp;lt;fs_plaf&amp;gt;-xdel .
    ENDIF.


  ENDLOOP.


  DELETE lt_plaf
    WHERE xdel EQ abap_true.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;2.)   SELECT ordid
    FROM /bmw/ts_1143_log AS a
   WHERE ordid IN @s_ordid
     AND order_comp_flag EQ @space
     AND
  EXISTS ( SELECT *
             FROM zmrp
            WHERE cno_order  EQ a~ordid
              AND cid_status IN @s_status
              AND cno_assyl  IN @s_assyl )
    INTO TABLE @gt_log.


  IF sy-subrc EQ 0.


    SORT gt_log
      BY ordid.


    DELETE ADJACENT DUPLICATES FROM gt_log
      COMPARING ordid ##CI_SORTED.


  ENDIF.


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Mar 2020 15:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error-message-please-help/m-p/5025921#M1169199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-03-09T15:17:22Z</dc:date>
    </item>
  </channel>
</rss>

