<?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: LOOPING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477236#M557722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT T_KONP.&lt;/P&gt;&lt;P&gt;if ( t_konp-KSCHL = 'JMOP' OR KSCHL = 'JMIP'&lt;/P&gt;&lt;P&gt;OR KSCHL = 'JVRD' OR KSCHL = 'JIPC').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RATE = T_KONP-KBETR.&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>Thu, 21 Jun 2007 05:08:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-21T05:08:39Z</dc:date>
    <item>
      <title>LOOPING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477235#M557721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI experts!,&lt;/P&gt;&lt;P&gt;                I want to fetch the rate(KBETR) for particular condition(KSCHL). I plan to use the following syntex. Plz check if it is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_KONP.&lt;/P&gt;&lt;P&gt;READ TABLE T_KONP WITH KEY KSCHL = 'JMOP' OR KSCHL = 'JMIP'&lt;/P&gt;&lt;P&gt;                                             OR  KSCHL = 'JVRD' OR KSCHL = 'JIPC'.&lt;/P&gt;&lt;P&gt;RATE = T_KONP-KBETR.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS.&lt;/P&gt;&lt;P&gt;kHAN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 05:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477235#M557721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T05:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: LOOPING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477236#M557722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT T_KONP.&lt;/P&gt;&lt;P&gt;if ( t_konp-KSCHL = 'JMOP' OR KSCHL = 'JMIP'&lt;/P&gt;&lt;P&gt;OR KSCHL = 'JVRD' OR KSCHL = 'JIPC').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RATE = T_KONP-KBETR.&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>Thu, 21 Jun 2007 05:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477236#M557722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T05:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: LOOPING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477237#M557723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First create a Range for the KSCHL, then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_KONP where KSCHL in R_KSCHL.&lt;/P&gt;&lt;P&gt;Rate = T_konp_kbetr.&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;But what you want to do with rate. If you want to add it then use&lt;/P&gt;&lt;P&gt;Rate = T_konp_kbetr + rate. in the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 05:08:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477237#M557723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T05:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: LOOPING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477238#M557724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in read table you cant give or ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_KONP.&lt;/P&gt;&lt;P&gt;if  (T_KONP-KSCHL = 'JMOP' OR T_KONP-KSCHL = 'JMIP'&lt;/P&gt;&lt;P&gt;OR T_KONP-KSCHL = 'JVRD' OR T_KONP-KSCHL = 'JIPC').&lt;/P&gt;&lt;P&gt;RATE = T_KONP-KBETR.&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;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 05:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477238#M557724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T05:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: LOOPING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477239#M557725</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;change the code like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_KONP.&lt;/P&gt;&lt;P&gt;If T_KONP-KSCHL = 'JMOP' OR T_KONP-KSCHL = 'JMIP'&lt;/P&gt;&lt;P&gt;OR T_KONP-KSCHL = 'JVRD' OR T_KONP-KSCHL = 'JIPC'.&lt;/P&gt;&lt;P&gt;RATE = T_KONP-KBETR.&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;regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 05:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477239#M557725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T05:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: LOOPING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477240#M557726</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;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_KONP.&lt;/P&gt;&lt;P&gt;READ TABLE T_KONP WITH KEY KSCHL in ( 'JMOP','JMIP','JVRD' ,'JIPC').&lt;/P&gt;&lt;P&gt;RATE = T_KONP-KBETR.&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;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS.&lt;/P&gt;&lt;P&gt;suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 05:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477240#M557726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T05:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: LOOPING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477241#M557727</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;instead of READ TABLE ..use LOOP AT ...EXIT ENDLOOP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the modified code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT T_KONP.
  LOOP AT  T_KONP WHERE KSCHL = 'JMOP' OR KSCHL = 'JMIP'
                                 OR KSCHL = 'JVRD' OR KSCHL = 'JIPC'.
    EXIT.
  ENDLOOP.

  RATE = T_KONP-KBETR.


ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 05:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477241#M557727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T05:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: LOOPING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477242#M557728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT T_KONP  where&lt;/P&gt;&lt;P&gt;KSCHL = 'JMOP' OR KSCHL = 'JMIP'&lt;/P&gt;&lt;P&gt;OR KSCHL = 'JVRD' OR KSCHL = 'JIPC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RATE = T_KONP-KBETR.&lt;/P&gt;&lt;P&gt;clear t_konp.&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;sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 05:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477242#M557728</guid>
      <dc:creator>S0025444845</dc:creator>
      <dc:date>2007-06-21T05:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: LOOPING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477243#M557729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;self done&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 05:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping/m-p/2477243#M557729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T05:34:32Z</dc:date>
    </item>
  </channel>
</rss>

