<?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: Multiple loop in one loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-loop-in-one-loop/m-p/4972488#M1158815</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;How did you declare L_S_RANGE  ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see three different values passed to the L_S_RANGE-LOW but only one append statment and thus it is overwritten and only the third value will be passed to L_S_RANGE-LOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared Vtype i,fisper i and fisyear i,is this ok?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But you have only one range (E_T_RANGE). You need 3 different ranges to handle three different types of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So depending on the VNAM, you will pass the low, high, sign and option to the work area and append to its respective range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jan 2009 09:48:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-07T09:48:33Z</dc:date>
    <item>
      <title>Multiple loop in one loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-loop-in-one-loop/m-p/4972484#M1158811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the code below.This is text variable customer exit.Can u ple help me to put these multiple loops into one loop.Do u suggest this code is ok?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'ZSTXTPE01AA'or 'ZSTXT0FISCPER305AA'or 'ZSTXT0FISCYEAR01AA'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE Z_VARIABLES_TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: vtype i,&lt;/P&gt;&lt;P&gt;      fisper i,&lt;/P&gt;&lt;P&gt;      fisyear i &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF I_STEP=2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_T_VAR_RANGE INTO loc_var_range WHERE VNAM='ZS0VTYPE01AA'&lt;/P&gt;&lt;P&gt;vtype=LOC_VAR_RANGE-LOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CLEAR L_S_RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_S_RANGE-LOW= vtype.&lt;/P&gt;&lt;P&gt;L_S_RANGE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;L_S_RANGE-OPT = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_T_VAR_RANGE INTO loc_var_range WHERE VNAM='ZS0FISCPER305AA'&lt;/P&gt;&lt;P&gt;fisper=LOC_VAR_RANGE-LOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CLEAR L_S_RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_S_RANGE-LOW= fisper.&lt;/P&gt;&lt;P&gt;L_S_RANGE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;L_S_RANGE-OPT = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_T_VAR_RANGE INTO loc_var_range WHERE VNAM='ZS0FISCYEAR01AB'&lt;/P&gt;&lt;P&gt;fisyear=LOC_VAR_RANGE-LOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CLEAR L_S_RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_S_RANGE-LOW= fisyear.&lt;/P&gt;&lt;P&gt;L_S_RANGE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;L_S_RANGE-OPT = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND L_S_RANGE TO E_T_RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;ACE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 17:25:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-loop-in-one-loop/m-p/4972484#M1158811</guid>
      <dc:creator>ace_bw</dc:creator>
      <dc:date>2009-01-06T17:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple loop in one loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-loop-in-one-loop/m-p/4972485#M1158812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use Case endcase inside the loop to check for the name of the vnam and append to the appropriate ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT I_T_VAR_RANGE INTO loc_var_range.
case VNAM.
when 'ZS0VTYPE01AA'.
 " Your code for ZS0VTYPE01AA
when ''...
endcase.
Endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 17:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-loop-in-one-loop/m-p/4972485#M1158812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T17:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple loop in one loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-loop-in-one-loop/m-p/4972486#M1158813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT I_T_VAR_RANGE INTO loc_var_range &lt;/P&gt;&lt;P&gt;WHERE VNAM IN('ZS0VTYPE01AA', 'ZS0FISCPER305AA','ZS0FISCYEAR01AB')&lt;/P&gt;&lt;P&gt; vtype=LOC_VAR_RANGE-LOW.&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;L_S_RANGE-LOW= vtype.&lt;/P&gt;&lt;P&gt;L_S_RANGE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;L_S_RANGE-OPT = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_S_RANGE-LOW= fisper.&lt;/P&gt;&lt;P&gt;L_S_RANGE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;L_S_RANGE-OPT = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_S_RANGE-LOW= fisyear.&lt;/P&gt;&lt;P&gt;L_S_RANGE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;L_S_RANGE-OPT = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND L_S_RANGE TO E_T_RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the above code&lt;/P&gt;&lt;P&gt;also&lt;/P&gt;&lt;P&gt;What u r doing inside ur loop endloop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 18:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-loop-in-one-loop/m-p/4972486#M1158813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T18:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple loop in one loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-loop-in-one-loop/m-p/4972487#M1158814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot.Well am trying to get the text of the base variable(with processing type customer exit) i. e ZS0VTYPE01AA.My text variable is ZSTXTPE01AA.Same case for fisccal period and fiscal year.I have declared Vtype i,fisper i and fisyear i,is this ok?.I will use your approach to make one loop.As you said i will explore about case statement given above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;ACE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-loop-in-one-loop/m-p/4972487#M1158814</guid>
      <dc:creator>ace_bw</dc:creator>
      <dc:date>2009-01-07T09:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple loop in one loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-loop-in-one-loop/m-p/4972488#M1158815</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;How did you declare L_S_RANGE  ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see three different values passed to the L_S_RANGE-LOW but only one append statment and thus it is overwritten and only the third value will be passed to L_S_RANGE-LOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared Vtype i,fisper i and fisyear i,is this ok?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But you have only one range (E_T_RANGE). You need 3 different ranges to handle three different types of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So depending on the VNAM, you will pass the low, high, sign and option to the work area and append to its respective range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:48:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-loop-in-one-loop/m-p/4972488#M1158815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T09:48:33Z</dc:date>
    </item>
  </channel>
</rss>

