<?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: DO_WHILE_VARY_NOT_IN_RANGE, run time error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-while-vary-not-in-range-run-time-error/m-p/5456741#M1250392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DO VARYING is obsolete in ECC 6.0 , Alternate logic will be with the field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_fname(30), lv_index(2) type n.
field-symbols: &amp;lt;fs&amp;gt; type any.

loop at it_cosp into ls_cosp.
lv_index = 1.
DO.

CONCATENATE 'WTG0' lv_index into lv_fname.
assign component lv_fname of structure ls_cosp to &amp;lt;fs&amp;gt;.
if sy-subrc eq 0.
 " &amp;lt;fs&amp;gt; hold the value 
else.
 exit.
endif.
lv_index = lv_index + 1.
ENDDO.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;Don't use ASAP here, if it is really argent log a OSS message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2009 05:14:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-23T05:14:55Z</dc:date>
    <item>
      <title>DO_WHILE_VARY_NOT_IN_RANGE, run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-while-vary-not-in-range-run-time-error/m-p/5456740#M1250391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;  Thank you for viewing this post. I am working for an upgrade project (4.6 C  to ECC. 6).&lt;/P&gt;&lt;P&gt;I am facing a run time error in the following statement. As a part of upgrade I have changed the statement to the following.&lt;/P&gt;&lt;P&gt;        DO 12 TIMES VARYING lv_wog FROM &amp;lt;fs1&amp;gt; NEXT &amp;lt;fs2&amp;gt; range i_cosp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : i_cosp         TYPE STANDARD TABLE OF t_cosp   WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;fs1&amp;gt; TYPE ANY,&lt;/P&gt;&lt;P&gt;                 &amp;lt;fs2&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously, the statement was :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DO 12 TIMES VARYING lv_wog FROM &amp;lt;fs1&amp;gt; NEXT &amp;lt;fs2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you pls give me suggestion regarding this post as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 04:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-while-vary-not-in-range-run-time-error/m-p/5456740#M1250391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T04:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: DO_WHILE_VARY_NOT_IN_RANGE, run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-while-vary-not-in-range-run-time-error/m-p/5456741#M1250392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DO VARYING is obsolete in ECC 6.0 , Alternate logic will be with the field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_fname(30), lv_index(2) type n.
field-symbols: &amp;lt;fs&amp;gt; type any.

loop at it_cosp into ls_cosp.
lv_index = 1.
DO.

CONCATENATE 'WTG0' lv_index into lv_fname.
assign component lv_fname of structure ls_cosp to &amp;lt;fs&amp;gt;.
if sy-subrc eq 0.
 " &amp;lt;fs&amp;gt; hold the value 
else.
 exit.
endif.
lv_index = lv_index + 1.
ENDDO.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;Don't use ASAP here, if it is really argent log a OSS message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 05:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-while-vary-not-in-range-run-time-error/m-p/5456741#M1250392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T05:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: DO_WHILE_VARY_NOT_IN_RANGE, run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-while-vary-not-in-range-run-time-error/m-p/5456742#M1250393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;     Thanks for the quick reply. I am little weak in field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs1 and fs2 are two different field symbols which are defined as type any.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In debugging mode I found that fs1 has value of 55.06- and fs2 has 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and lv_ctr has value of 12, and lv_wog has value of 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lv_ctr(2)     TYPE n VALUE 0,&lt;/P&gt;&lt;P&gt;        lv_wog        LIKE i_cosp-wog001&lt;/P&gt;&lt;P&gt;DATA : i_cosp         TYPE STANDARD TABLE OF t_cosp   WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF t_cosp,&lt;/P&gt;&lt;P&gt;        objnr	 LIKE cosp-objnr,&lt;/P&gt;&lt;P&gt;        gjahr	 LIKE cosp-gjahr,&lt;/P&gt;&lt;P&gt;        wrttp	 LIKE cosp-wrttp,&lt;/P&gt;&lt;P&gt;        versn	 LIKE cosp-versn,&lt;/P&gt;&lt;P&gt;        kstar	 LIKE cosp-kstar,&lt;/P&gt;&lt;P&gt;        beknz	 LIKE cosp-beknz,&lt;/P&gt;&lt;P&gt;        perbl	 LIKE cosp-perbl,&lt;/P&gt;&lt;P&gt;        twaer	 LIKE cosp-twaer,&lt;/P&gt;&lt;P&gt;        wog001 LIKE cosp-wog001,&lt;/P&gt;&lt;P&gt;        wog002 LIKE cosp-wog002,&lt;/P&gt;&lt;P&gt;        wog003 LIKE cosp-wog003,&lt;/P&gt;&lt;P&gt;        wog004 LIKE cosp-wog004,&lt;/P&gt;&lt;P&gt;        wog005 LIKE cosp-wog005,&lt;/P&gt;&lt;P&gt;        wog006 LIKE cosp-wog006,&lt;/P&gt;&lt;P&gt;        wog007 LIKE cosp-wog007,&lt;/P&gt;&lt;P&gt;        wog008 LIKE cosp-wog008,&lt;/P&gt;&lt;P&gt;        wog009 LIKE cosp-wog009,&lt;/P&gt;&lt;P&gt;        wog010 LIKE cosp-wog010,&lt;/P&gt;&lt;P&gt;        wog011 LIKE cosp-wog011,&lt;/P&gt;&lt;P&gt;        wog012 LIKE cosp-wog012,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        timestmp LIKE cosp-timestmp.&lt;/P&gt;&lt;P&gt;TYPES : END OF t_cosp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_cosp is having 0 value in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem lies with this i_cosp as it no value in it.&lt;/P&gt;&lt;P&gt; Please suggest.&lt;/P&gt;&lt;P&gt;I used ASAP as this is high priority issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 08:23:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-while-vary-not-in-range-run-time-error/m-p/5456742#M1250393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T08:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: DO_WHILE_VARY_NOT_IN_RANGE, run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-while-vary-not-in-range-run-time-error/m-p/5456743#M1250394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But not able to understand your problem..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is no value in i_cosp then you will see all zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where is your data population logic..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 08:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-while-vary-not-in-range-run-time-error/m-p/5456743#M1250394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T08:28:35Z</dc:date>
    </item>
  </channel>
</rss>

