<?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: Select based on select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436835#M825319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! Jay,&lt;/P&gt;&lt;P&gt;The period in FAGLFLEXT is always 16 in our case. So I have to get all the periods in internal table and then filter out based on selction-screen into another internal table and display. I cant use your solution but thank you for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi! Rob,&lt;/P&gt;&lt;P&gt;Thank You for your advise. I have tried do...varying.  &lt;/P&gt;&lt;P&gt;If the s_rpmax-low is 06 and I want from hsl01 to hsl06 then I can use do...varying ...from hsl01 next hsl02.&lt;/P&gt;&lt;P&gt;In my case, if s_rpmax-low is 06 then I should display only hsl06, if it is 06 - 09, then I should display hsl06, hsl07, hsl08, hsl09.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;-Priyanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2008 15:05:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-12T15:05:10Z</dc:date>
    <item>
      <title>Select based on select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436832#M825316</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;Based on the period entered on selection screen those hsl'nn' fields must be selected from faglflext table. That is, if period is 01 to 05 I need to display hsl01 to hsl05 fields, if it is period 11 then display hsl11 field. How do i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;-Priyanka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 11, 2008 5:49 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 22:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436832#M825316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T22:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select based on select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436833#M825317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yo can use DO ... VARYING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put your cursor on DO and press F1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 22:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436833#M825317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T22:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select based on select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436834#M825318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select-options: so_hsl type table-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at so_hsl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so_hsl-low you contain your lover limit..&lt;/P&gt;&lt;P&gt;so_hsl-high you contain the upper limit you entered in the select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 22:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436834#M825318</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-02-11T22:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select based on select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436835#M825319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! Jay,&lt;/P&gt;&lt;P&gt;The period in FAGLFLEXT is always 16 in our case. So I have to get all the periods in internal table and then filter out based on selction-screen into another internal table and display. I cant use your solution but thank you for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi! Rob,&lt;/P&gt;&lt;P&gt;Thank You for your advise. I have tried do...varying.  &lt;/P&gt;&lt;P&gt;If the s_rpmax-low is 06 and I want from hsl01 to hsl06 then I can use do...varying ...from hsl01 next hsl02.&lt;/P&gt;&lt;P&gt;In my case, if s_rpmax-low is 06 then I should display only hsl06, if it is 06 - 09, then I should display hsl06, hsl07, hsl08, hsl09.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;-Priyanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 15:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436835#M825319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T15:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select based on select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436836#M825320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DO VARYING amt FROM faglflext-hsl01 NEXT faglflext-hsl02.
  IF sy-index &amp;gt; period_sel. EXIT. ENDIF.
  CHECK NOT amt IS INITIAL.
  total = total + amt.
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 15:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436836#M825320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T15:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select based on select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436837#M825321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;If user selects 01 to 06 I dont have a problem, problem is when it is 03 to 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I move gt_tab1-hsl03 to gl_tab2-hsl03 and so on &lt;/P&gt;&lt;P&gt;                        ...............&lt;/P&gt;&lt;P&gt;                 till gt_tab1-hsl12 to gl_tab2-hsl12 dynamically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meaning if i use do...varying... &lt;STRONG&gt;hsl01&lt;/STRONG&gt; next hsl02, I will move from hsl01 to whatever the end condition is. But how to i dynamically change the starting point &lt;STRONG&gt;hsl01&lt;/STRONG&gt; in the do statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;-Priyanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 16:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436837#M825321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T16:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select based on select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436838#M825322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a minor change:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DO VARYING amt FROM faglflext-hsl01 NEXT faglflext-hsl02.
  IF sy-index &amp;lt; period_sel_low. CONTINUE. ENDIF.
  IF sy-index &amp;gt; period_sel_high. EXIT. ENDIF.
  CHECK NOT amt IS INITIAL.
  total = total + amt.
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 17:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436838#M825322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T17:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select based on select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436839#M825323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;I understand this part I am asking how to move gt_tab1-hslnn to gt_tab2-hslnn. Maybe I am confusing myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display not only the total but also the individual fields. So if user wants periods 03 - 06, at sy-index = 3, I should move the amonut to gt_tab2-hsl03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two similar structures &lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF tab1,&lt;/P&gt;&lt;P&gt;          racct       LIKE faglflext-racct,&lt;/P&gt;&lt;P&gt;          rbukrs      LIKE faglflext-rbukrs,&lt;/P&gt;&lt;P&gt;          prctr       LIKE faglflext-prctr,&lt;/P&gt;&lt;P&gt;           hsl01      LIKE faglflext-hsl01,&lt;/P&gt;&lt;P&gt;           hsl02      LIKE faglflext-hsl02,&lt;/P&gt;&lt;P&gt;           hsl03      LIKE faglflext-hsl03,&lt;/P&gt;&lt;P&gt;           hsl04      LIKE faglflext-hsl04,&lt;/P&gt;&lt;P&gt;           hsl05      LIKE faglflext-hsl05,&lt;/P&gt;&lt;P&gt;           hsl06      LIKE faglflext-hsl06,&lt;/P&gt;&lt;P&gt;           hsl07      LIKE faglflext-hsl07,&lt;/P&gt;&lt;P&gt;           hsl08      LIKE faglflext-hsl08,&lt;/P&gt;&lt;P&gt;           hsl09      LIKE faglflext-hsl09,&lt;/P&gt;&lt;P&gt;           hsl10      LIKE faglflext-hsl10,&lt;/P&gt;&lt;P&gt;           hsl11      LIKE faglflext-hsl11,&lt;/P&gt;&lt;P&gt;           hsl12      LIKE faglflext-hsl12,&lt;/P&gt;&lt;P&gt;           hsl13      LIKE faglflext-hsl13,&lt;/P&gt;&lt;P&gt;           hsl14      LIKE faglflext-hsl14,&lt;/P&gt;&lt;P&gt;           hsl15      LIKE faglflext-hsl15,&lt;/P&gt;&lt;P&gt;           hsl16      LIKE faglflext-hsl16,&lt;/P&gt;&lt;P&gt;          rtcur       LIKE faglflext-rtcur,&lt;/P&gt;&lt;P&gt;        END OF tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_tab1 has values for all the periods. I should only move the fields user wants (gt_tab1-hsl03 to gt_tab2-hsl03...) values to the the second table and display. meaning &lt;/P&gt;&lt;P&gt;if sy-index &amp;lt; s_rpmax-low. move blanks to?????????&lt;/P&gt;&lt;P&gt;if sy-index = s_rpmax-low. move gv_amount to ???????continue.&lt;/P&gt;&lt;P&gt;if sy-index &amp;gt; s_rpmax-high. exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i made myself understandable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 17:32:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436839#M825323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T17:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select based on select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436840#M825324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now it's probably better to use field symbols, but you might also try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: out_ndex TYPE sy-index,
      amt      TYPE hsl01,
      amt_n    TYPE hsl01.

DO VARYING amt FROM gt_tab1-hsl01 NEXT gt_tab1-hsl02.
  IF sy-index &amp;lt; period_sel_low. CONTINUE. ENDIF.
  IF sy-index &amp;gt; period_sel_high. EXIT. ENDIF.
  CHECK NOT amt IS INITIAL.
  out_ndex = sy-index.
  DO VARYING amt_n FROM tab1-hsl01 NEXT tab1-hsl02.
    CHECK sy-index = out_ndex.
    amt_n = amt.
  ENDDO.
ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 17:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436840#M825324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T17:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select based on select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436841#M825325</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;  Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 data : v_period(2) type n.

  v_temp = s_period-low.

  v_period = s_period-high  -  s_period-low.
 v_period = v_period + 1.

   Loop at itab.
       
       DO  v_period times.
        concatenate  'ITAB-HSL'  v_temp into v_value.
         write : / (v_value).                 
        v_temp = v_temp + 1.
       ENDDO.

   Endloop.

The output will be the values from HSL03  to  HSL12
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 17:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436841#M825325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T17:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select based on select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436842#M825326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You very much for your responses.&lt;/P&gt;&lt;P&gt;I used  the following logic and it worked well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 16 TIMES.&lt;/P&gt;&lt;P&gt;      IF lv_count IN s_rpmax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Find the field we are interested in&lt;/P&gt;&lt;P&gt;        CONCATENATE 'GL_EXTRACT-HSL' lv_count+1(2) INTO lv_name.&lt;/P&gt;&lt;P&gt;        ASSIGN (lv_name) TO &amp;lt;rqfield&amp;gt;.&lt;/P&gt;&lt;P&gt;        gl_out_entries-hsltot = gl_out_entries-hsltot + &amp;lt;rqfield&amp;gt;.&lt;/P&gt;&lt;P&gt;        CONCATENATE 'HSL' lv_count+1(2) INTO gl_out_entries-fieldname.&lt;/P&gt;&lt;P&gt;        gl_out_entries-fieldvalue = &amp;lt;rqfield&amp;gt;.&lt;/P&gt;&lt;P&gt;        if lv_count = 16.&lt;/P&gt;&lt;P&gt;        APPEND gl_entries TO gt_entries.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      lv_count = lv_count + 1.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 20:09:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-based-on-select-options/m-p/3436842#M825326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T20:09:12Z</dc:date>
    </item>
  </channel>
</rss>

