<?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: type incompatible in do ---varying in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705542#M626822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same problem but changed the code as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Old&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;DO len TIMES VARYING C FROM int_objec-ausp1+0 NEXT&lt;/P&gt;&lt;P&gt;int_objec-ausp1+1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;New&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;DO len TIMES VARYING C FROM int_objec-ausp1(1) NEXT&lt;/P&gt;&lt;P&gt;int_objec-ausp1+1(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagraj Dhillon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2007 21:36:27 GMT</pubDate>
    <dc:creator>former_member185931</dc:creator>
    <dc:date>2007-08-29T21:36:27Z</dc:date>
    <item>
      <title>type incompatible in do ---varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705537#M626817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I had a statement like&lt;/P&gt;&lt;P&gt;DO len TIMES VARYING C FROM int_objec-ausp1+0 NEXT&lt;/P&gt;&lt;P&gt;                                int_objec-ausp1+1.&lt;/P&gt;&lt;P&gt; c length 30 char type,&lt;/P&gt;&lt;P&gt;ausp1 also char type,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bu I am getting error - the above two are type incompatible. &lt;/P&gt;&lt;P&gt;Please give me the solution.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 08:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705537#M626817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T08:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: type incompatible in do ---varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705538#M626818</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've found it in the help of the DO statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... VARYING f FROM f1 NEXT f2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This addition is useful if you have a series of fieldsof the same type and the same distance from each other. &lt;/P&gt;&lt;P&gt;f is a variable which you define in a DATA statement. Oneach loop pass, f contains a new value. The field f1after "FROM" specifies the first value of the variable f,while the field f2 after "NEXT" specifies the value to beassigned to the variable f in the second pass. For eachsubsequent pass, the variable f contains the next value in thesequence determined by the distance between the fields f, f1 and f2 in memory. &lt;/P&gt;&lt;P&gt;The fields f1 and f2 should be type-compatible andconvertible to f. &lt;/P&gt;&lt;P&gt;If the value of f changes during the loop pass, the new value isthen placed in the appropriate field fn assigned to f(transfer type: pass by value and result). If the loop pass terminatesbecause of a dialog message, the new value is not passed back if f changes. &lt;/P&gt;&lt;P&gt;The addition ... VARYING f FROM f1 NEXT f2 can be used severaltimes in a DO statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF WORD, &lt;/P&gt;&lt;P&gt;        ONE   VALUE 'E', &lt;/P&gt;&lt;P&gt;        TWO   VALUE 'x', &lt;/P&gt;&lt;P&gt;        THREE VALUE 'a', &lt;/P&gt;&lt;P&gt;        FOUR  VALUE 'm', &lt;/P&gt;&lt;P&gt;        FIVE  VALUE 'p', &lt;/P&gt;&lt;P&gt;        SIX   VALUE 'l', &lt;/P&gt;&lt;P&gt;        SEVEN VALUE 'e', &lt;/P&gt;&lt;P&gt;        EIGHT VALUE '!', &lt;/P&gt;&lt;P&gt;      END   OF WORD, &lt;/P&gt;&lt;P&gt;      LETTER1, LETTER2. &lt;/P&gt;&lt;P&gt;DO VARYING LETTER1 FROM WORD-ONE NEXT WORD-THREE &lt;/P&gt;&lt;P&gt;   VARYING LETTER2 FROM WORD-TWO NEXT WORD-FOUR. &lt;/P&gt;&lt;P&gt;  WRITE: LETTER1, LETTER2. &lt;/P&gt;&lt;P&gt;  IF LETTER2 = '!'. &lt;/P&gt;&lt;P&gt;    EXIT. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting output is the character string &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"E x a m p l e !". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;When using this addition, ensure that the DO loopterminates at the "right" time, in order to avoid assigning meaninglessvalues that happen to be in memory after this sequence of fields. Thiscould result in a runtime error. &lt;/P&gt;&lt;P&gt;&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;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 08:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705538#M626818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T08:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: type incompatible in do ---varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705539#M626819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanku still i am getting syntax error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 08:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705539#M626819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T08:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: type incompatible in do ---varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705540#M626820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;help me,&lt;/P&gt;&lt;P&gt;Here unicode checks are active,&lt;/P&gt;&lt;P&gt;Thanks  in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 08:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705540#M626820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T08:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: type incompatible in do ---varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705541#M626821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If there is a repeat structure, then we should use do varying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If u have&lt;/P&gt;&lt;P&gt;int_objec-ausp1&lt;/P&gt;&lt;P&gt;int_objec-ausp2&lt;/P&gt;&lt;P&gt;int_objec-ausp3&lt;/P&gt;&lt;P&gt;int_objec-ausp4... and so on,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and u need to loop at such fields, then use do varying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. More over, i m not sure, wheterh +0 , +1 (offset concept)&lt;/P&gt;&lt;P&gt;   is allowed here or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. &lt;/P&gt;&lt;P&gt;It should be ideally like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO len TIMES VARYING C &amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;FROM int_objec-ausp1 NEXT int_objec-ausp2&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where c is of type int_objec-ausp1 &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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 09:06:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705541#M626821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T09:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: type incompatible in do ---varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705542#M626822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same problem but changed the code as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Old&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;DO len TIMES VARYING C FROM int_objec-ausp1+0 NEXT&lt;/P&gt;&lt;P&gt;int_objec-ausp1+1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;New&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;DO len TIMES VARYING C FROM int_objec-ausp1(1) NEXT&lt;/P&gt;&lt;P&gt;int_objec-ausp1+1(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagraj Dhillon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 21:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705542#M626822</guid>
      <dc:creator>former_member185931</dc:creator>
      <dc:date>2007-08-29T21:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: type incompatible in do ---varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705543#M626823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANKU BUT MY REQUIREMNT IS LIKE BELOW,&lt;/P&gt;&lt;P&gt;INT_OBJEC-AUSP1+0		100.00 kg&lt;/P&gt;&lt;P&gt;INT_OBJEC-AUSP1+1		00.00 kg&lt;/P&gt;&lt;P&gt;INT_OBJEC-AUSP1+2		0.00 kg&lt;/P&gt;&lt;P&gt;INT_OBJEC-AUSP1+3		.00 kg&lt;/P&gt;&lt;P&gt;INT_OBJEC-AUSP1+4		00 kg&lt;/P&gt;&lt;P&gt;INT_OBJEC-AUSP1+5		0 kg&lt;/P&gt;&lt;P&gt;INT_OBJEC-AUSP1+6		 kg&lt;/P&gt;&lt;P&gt;INT_OBJEC-AUSP1+7		kg&lt;/P&gt;&lt;P&gt;INT_OBJEC-AUSP1+8		g&lt;/P&gt;&lt;P&gt;INT_OBJEC-AUSP1+9&lt;/P&gt;&lt;P&gt;Please help me,&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2007 06:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-incompatible-in-do-varying/m-p/2705543#M626823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-02T06:12:03Z</dc:date>
    </item>
  </channel>
</rss>

