<?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 Is there a better solution ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-better-solution/m-p/2775747#M646922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt; i have following code:&lt;/P&gt;&lt;P&gt;LOOP AT itab 1.&lt;/P&gt;&lt;P&gt;   LOOP AT itab2.&lt;/P&gt;&lt;P&gt;      CHECK itab1-object      EQ itab2-object.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name      NE itab2-name.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name(10) NE 'BCDE_BUKRS'.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name(10) NE 'BCDE_KRED_'.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name(10) NE 'BCDE_BLART'.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name(10) NE 'BCDE_DOKUA'.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name(10) NE 'BCDE_DEBI_'.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name(10) NE 'BCDE_SAKTO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it better and possible to use case instead of check? &lt;/P&gt;&lt;P&gt;Or is it better to use if´s ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2007 08:27:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-13T08:27:29Z</dc:date>
    <item>
      <title>Is there a better solution ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-better-solution/m-p/2775747#M646922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt; i have following code:&lt;/P&gt;&lt;P&gt;LOOP AT itab 1.&lt;/P&gt;&lt;P&gt;   LOOP AT itab2.&lt;/P&gt;&lt;P&gt;      CHECK itab1-object      EQ itab2-object.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name      NE itab2-name.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name(10) NE 'BCDE_BUKRS'.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name(10) NE 'BCDE_KRED_'.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name(10) NE 'BCDE_BLART'.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name(10) NE 'BCDE_DOKUA'.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name(10) NE 'BCDE_DEBI_'.&lt;/P&gt;&lt;P&gt;      CHECK itab1-name(10) NE 'BCDE_SAKTO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it better and possible to use case instead of check? &lt;/P&gt;&lt;P&gt;Or is it better to use if´s ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 08:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-better-solution/m-p/2775747#M646922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T08:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a better solution ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-better-solution/m-p/2775748#M646923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think.. it's better to use if..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ( itab1-object EQ itab2-object ) and ( itab1-name NE itab2-name ) and ( itab1-name(10) NE 'BCDE_BUKRS' ) and ( itab1-name(10) NE 'BCDE_KRED_' ) and ( itab1-name(10) NE'BCDE_BLART' ) and ( itab1-name(10) NE 'BCDE_DOKUA' ) and ( itab1-name(10) NE 'BCDE_DEBI_' ) and ( itab1-name(10) NE  'BCDE_SAKTO').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append something.&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;But using check it's okay also..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 08:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-better-solution/m-p/2775748#M646923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T08:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a better solution ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-better-solution/m-p/2775749#M646924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab2 
where itab1-object EQ itab2-object
and    itab1-name NE itab2-name
and    ...
and    itab1-name(10) NE 'BCDE_SAKTO'.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 08:41:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-better-solution/m-p/2775749#M646924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T08:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a better solution ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-better-solution/m-p/2775750#M646925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sascha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the nested loops are inevitable please do the following to improve performance&lt;/P&gt;&lt;P&gt;data : local1(10) type C value 'BCDE_BUKRS' ,&lt;/P&gt;&lt;P&gt;         local2(10) type C value 'BCDE_KRED_' ,&lt;/P&gt;&lt;P&gt;         local3(10) type C value 'BCDE_BLART' ,&lt;/P&gt;&lt;P&gt;         local4(10) type C value 'BCDE_DOKUA' ,&lt;/P&gt;&lt;P&gt;         local5(10) type C value 'BCDE_DEBI_' ,&lt;/P&gt;&lt;P&gt;         local6(10) type C value 'BCDE_SAKTO'.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab1 where &lt;/P&gt;&lt;P&gt;itab1-name(10) NE  local1 and&lt;/P&gt;&lt;P&gt;itab1-name(10) NE  local2 and&lt;/P&gt;&lt;P&gt;itab1-name(10) NE  local3 and&lt;/P&gt;&lt;P&gt;itab1-name(10) NE  local4 and&lt;/P&gt;&lt;P&gt;itab1-name(10) NE  local5 and&lt;/P&gt;&lt;P&gt;itab1-name(10) NE  local6 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2 where&lt;/P&gt;&lt;P&gt;itab1-object  =  itab2-object and&lt;/P&gt;&lt;P&gt;itab1-name &amp;lt;&amp;gt; itab2-name .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append *.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&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;Please check and revert..reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 08:45:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-better-solution/m-p/2775750#M646925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T08:45:24Z</dc:date>
    </item>
  </channel>
</rss>

