<?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: Function to get a value interval in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787780#M1309349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure there is an answer to your question except for integers range.&lt;/P&gt;&lt;P&gt;- for integer range, fill the table with a DO/ENDDo&lt;/P&gt;&lt;P&gt;- for char type, the order of values depends on the la,guage and char set, try to analyze your question in a Unicode system....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you need an integer range to perform a DO loop or an internal or database table where the order of char is significant to perform a LOOP/SELECT WHERE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2009 08:50:19 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2009-06-24T08:50:19Z</dc:date>
    <item>
      <title>Function to get a value interval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787777#M1309346</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;&lt;/P&gt;&lt;P&gt;anybody knows a functions which return a value interval. F.e I´ve a MinValue and a MaxValue. During runtime the MinValue could be 0 and the MaxValue 5. Now i´m lookiing for a method or a function module returning me an internal table with the rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same requirement i`ve for alphanumeric values. E.g. MinValue = A, MaxValue = E.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;E&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx, in advance for your tips...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 08:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787777#M1309346</guid>
      <dc:creator>andy_dingfelder3</dc:creator>
      <dc:date>2009-06-24T08:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Function to get a value interval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787778#M1309347</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 hope by operation on internal table you will get these minimum and maximum value.&lt;/P&gt;&lt;P&gt;Sort your internal table by that perticular field once as ascending and again descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 08:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787778#M1309347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T08:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Function to get a value interval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787779#M1309348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; HI,&lt;/P&gt;&lt;P&gt;&amp;gt;  &lt;/P&gt;&lt;P&gt;&amp;gt; I hope by operation on internal table you will get these minimum and maximum value.&lt;/P&gt;&lt;P&gt;&amp;gt; Sort your internal table by that perticular field once as ascending and again descending.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Vijay&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think you misunderstood my a little bit. I´ve no internal table to be sorted. I´m searching a function module or a mehtod which returns me an internal table with these values based on the parameters MinValue and MaxValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 08:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787779#M1309348</guid>
      <dc:creator>andy_dingfelder3</dc:creator>
      <dc:date>2009-06-24T08:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Function to get a value interval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787780#M1309349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure there is an answer to your question except for integers range.&lt;/P&gt;&lt;P&gt;- for integer range, fill the table with a DO/ENDDo&lt;/P&gt;&lt;P&gt;- for char type, the order of values depends on the la,guage and char set, try to analyze your question in a Unicode system....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you need an integer range to perform a DO loop or an internal or database table where the order of char is significant to perform a LOOP/SELECT WHERE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 08:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787780#M1309349</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-06-24T08:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Function to get a value interval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787781#M1309350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea about FM you are searching for.&lt;/P&gt;&lt;P&gt;But in this case if you have parameters and based on it you need to fix maximum and minimum value then you can build range at event AT Seletion-screen output and make internal table and then do the operation on that table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feel free to ask if you have any query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 08:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787781#M1309350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T08:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Function to get a value interval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787782#M1309351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this logic in your custom FM. String of values is used because character variable cannot be incremented just like integers. So you need to have a lookup table or string to store the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA list TYPE string VALUE 'abcdefghijklmnopqrstuvwxyz'.

DATA: itab TYPE TABLE OF c.

DATA low TYPE c VALUE 'd'.
DATA high TYPE c VALUE 'j'.
DATA temp TYPE string.

DATA num_low TYPE i.
DATA num_high TYPE i.

FIND low IN list MATCH OFFSET num_low.
FIND high IN list MATCH OFFSET num_high.

WHILE num_low LE num_high.
  WRITE:/ list+num_low(1).
  APPEND list+num_low(1) TO itab.

  num_low = num_low + 1.
ENDWHILE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manish Kumar on Jun 24, 2009 11:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 09:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787782#M1309351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T09:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Function to get a value interval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787783#M1309352</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;PARAMETERS: p_min TYPE i OBLIGATORY,&lt;/P&gt;&lt;P&gt;            p_max TYPE i OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab1 OCCURS 0,&lt;/P&gt;&lt;P&gt;        num TYPE i,&lt;/P&gt;&lt;P&gt;      END OF itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_min type i,&lt;/P&gt;&lt;P&gt;      v_max type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  v_min = p_min.&lt;/P&gt;&lt;P&gt;  v_max = p_max.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT v_max LT v_min.&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      IF v_min GT v_max.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        itab1-num = v_min.&lt;/P&gt;&lt;P&gt;        APPEND itab1.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      v_min = v_min + 1.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  LOOP AT itab1.&lt;/P&gt;&lt;P&gt;    WRITE:/ itab1-num.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar Bandanadham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 09:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787783#M1309352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T09:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Function to get a value interval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787784#M1309353</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;&lt;/P&gt;&lt;P&gt;thanks all for the replies. As I see I´ve do write my own method.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 07:42:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-a-value-interval/m-p/5787784#M1309353</guid>
      <dc:creator>andy_dingfelder3</dc:creator>
      <dc:date>2009-06-25T07:42:23Z</dc:date>
    </item>
  </channel>
</rss>

