<?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: logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/3242054#M773805</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;Index1 = 1.&lt;/P&gt;&lt;P&gt;index2 = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 10 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab into wa1 index index1.&lt;/P&gt;&lt;P&gt;read table itab into wa2 index index2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from above reads u will get 1st and 10th record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call the function module andpass the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;index1 = index1 + 10.&lt;/P&gt;&lt;P&gt;index2 = index2 + 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : wa,wa1,wa2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2008 08:04:49 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2008-01-09T08:04:49Z</dc:date>
    <item>
      <title>logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/3242052#M773803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some 100 values in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From that 100 values first i have to pass the 1 st value and 10th value to another Functional module&lt;/P&gt;&lt;P&gt;then again 11th value and 20th value and again  21st value and 30th value so on upto 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 07:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/3242052#M773803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T07:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/3242053#M773804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Senthil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lv_index TYPE i VALUE 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 10 TIMES.&lt;/P&gt;&lt;P&gt;READ TABLE itab INDEX i.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call FM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i = i + 9.&lt;/P&gt;&lt;P&gt;READ TABLE itab INDEX i.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call FM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i = i + 1.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 07:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/3242053#M773804</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-01-09T07:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/3242054#M773805</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;Index1 = 1.&lt;/P&gt;&lt;P&gt;index2 = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 10 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab into wa1 index index1.&lt;/P&gt;&lt;P&gt;read table itab into wa2 index index2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from above reads u will get 1st and 10th record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call the function module andpass the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;index1 = index1 + 10.&lt;/P&gt;&lt;P&gt;index2 = index2 + 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : wa,wa1,wa2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 08:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/3242054#M773805</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2008-01-09T08:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/3242055#M773806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senthil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below logic might give you some idea on handling your scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: add type i,
      ind type tabix.

do.

  if add = 1.
     add = 9.
  else.
     add = 1.
  endif.
  ind = ind + add.
  read table itab into wa index ind.
  if sy-subrc ne 0.
     exit.
  endif.

enddo.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 08:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/3242055#M773806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T08:20:28Z</dc:date>
    </item>
  </channel>
</rss>

