<?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: LOOP PROCESSING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794402#M341465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wa (work area) is like a tempoary row (header for the itab).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so u cant use loop for a row of data.&lt;/P&gt;&lt;P&gt;u can use loop for internal table... &amp;amp; if u declare your itab with header line, u may not need to use wa at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2006 08:39:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-07T08:39:18Z</dc:date>
    <item>
      <title>LOOP PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794396#M341459</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 have one query regarding loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose i have fields like f1,f2,f3,..f5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now all the data's are stored in wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to make the loop like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at wa-f1 to wa-f5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;processing.&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;Is it process for wa-f1, wa-f2, wa-f3, wa-f4, wa-f5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not possible then pls suggest me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 05:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794396#M341459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T05:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794397#M341460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes that is not possible to looping a work area as you have mentioned you can directly write as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT WA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 06:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794397#M341460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T06:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794398#M341461</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;you have to assign the wa like&lt;/P&gt;&lt;P&gt;data: wa like t_wa occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_wa.&lt;/P&gt;&lt;P&gt;    processing.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If exactly know ur requirement, then find the right solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 06:04:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794398#M341461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T06:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794399#M341462</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;It's not possible as the way you told.But you can access all the fields of the internal table inside the loop.&lt;/P&gt;&lt;P&gt;data : itab type standard table of mara,"Internal table &lt;/P&gt;&lt;P&gt;         wa type mara."work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into table itab.&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;write : / wa-matnr."here matnr is a field.similarly all the fields of internal table and workarea are available inside loop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 06:09:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794399#M341462</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-12-07T06:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794400#M341463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i think u have all of ur data in a internal table. you can just loop at that internal table into a work and do the processing on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type table of mara,&lt;/P&gt;&lt;P&gt;        wa type mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;processing. &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;or u can just use same work area again and again for the loop. but it is necessary to clear its contents at the end of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 06:35:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794400#M341463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T06:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794401#M341464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Salil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand you right, your fields are different fields with different names within the same structure like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa,&lt;/P&gt;&lt;P&gt;  f1 type p,&lt;/P&gt;&lt;P&gt;  f2 type p,&lt;/P&gt;&lt;P&gt;  f3 type p,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;  f12 type p,&lt;/P&gt;&lt;P&gt;end of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is so, then LOOP is not a way to attack your problem. Instead have a look at this construct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 12 TIMES VARYING f FROM wa-f1 NEXT wa-f2.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;processing. Here just sum up the values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tot_f = tot_f + f.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to make sure all fn fields are of same type and are separated from each other with the same distance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 08:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794401#M341464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T08:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794402#M341465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wa (work area) is like a tempoary row (header for the itab).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so u cant use loop for a row of data.&lt;/P&gt;&lt;P&gt;u can use loop for internal table... &amp;amp; if u declare your itab with header line, u may not need to use wa at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 08:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-processing/m-p/1794402#M341465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T08:39:18Z</dc:date>
    </item>
  </channel>
</rss>

