<?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: using do varying in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-do-varying/m-p/4660504#M1096449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You get the the value and WT intself.&lt;/P&gt;&lt;P&gt;Look at below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: GWA_0008 TYPE PA0008,
LGART TYPE PA0008-LGA01,
BETRG TYPE PA0008-BET01.

SELECT SINGLE * FROM PA0008 INTO GWA_0008.

DO 40 TIMES
VARYING LGART FROM GWA_0008-LGA01 NEXT GWA_0008-LGA02
VARYING BETRG FROM GWA_0008-BET01 NEXT GWA_0008-BET02.
  if sy-index = 31.
  "here  LGART will store WT and BETRG corresponding value to it (for LGA31 and BET31)
  endif
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope now it is clear.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Oct 2008 11:43:23 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2008-10-24T11:43:23Z</dc:date>
    <item>
      <title>using do varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-do-varying/m-p/4660502#M1096447</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 am new to hr abap..in the infotype PA0008 we have the field wage type(LGA01) and the corresponding amount (BET01)...they are ranges from one to 40 for the wage types...for the particular wage type the wage amount is displayed..now if i want to check for the particualr value 1000 int he wage amount i need to get displayed the wage type...my doubt is if i use the do varyin condition do i get just only the positon of the range or the value???suppose the particular wage amount is in the lga31 type do i get the  value or just only the postion of the wage type??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 11:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-do-varying/m-p/4660502#M1096447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T11:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: using do varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-do-varying/m-p/4660503#M1096448</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;did you try F1 on varying? Have also a look into sy-index in the DO-Loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 11:17:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-do-varying/m-p/4660503#M1096448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T11:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: using do varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-do-varying/m-p/4660504#M1096449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You get the the value and WT intself.&lt;/P&gt;&lt;P&gt;Look at below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: GWA_0008 TYPE PA0008,
LGART TYPE PA0008-LGA01,
BETRG TYPE PA0008-BET01.

SELECT SINGLE * FROM PA0008 INTO GWA_0008.

DO 40 TIMES
VARYING LGART FROM GWA_0008-LGA01 NEXT GWA_0008-LGA02
VARYING BETRG FROM GWA_0008-BET01 NEXT GWA_0008-BET02.
  if sy-index = 31.
  "here  LGART will store WT and BETRG corresponding value to it (for LGA31 and BET31)
  endif
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope now it is clear.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 11:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-do-varying/m-p/4660504#M1096449</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2008-10-24T11:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: using do varying</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-do-varying/m-p/4660505#M1096450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 12:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-do-varying/m-p/4660505#M1096450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T12:46:20Z</dc:date>
    </item>
  </channel>
</rss>

