<?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: Validate the range values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759011#M328662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear aRs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to validate --&amp;gt; Event :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the Internal Table IT_TAB with the values (01,10), (25,35) ....&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validate whether the Selection Screen field (P_FIELD) contains any values in&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      the IT_TAB.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;     LOOP AT IT_TAB INTO WA_TAB.&lt;/P&gt;&lt;P&gt;        IF P_FIELD GE WA_TAB-VAL_LOW   AND&lt;/P&gt;&lt;P&gt;            P_FIELD LE  WA_TAB-VAL_HIGH.&lt;/P&gt;&lt;P&gt;           Message ---&amp;gt; "Present".&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;           Message --&amp;gt; " Not Present ".&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;     ENDLO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t;</description>
    <pubDate>Tue, 02 Jan 2007 15:33:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-02T15:33:58Z</dc:date>
    <item>
      <title>Validate the range values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759009#M328660</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;I have a internal table with the following fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VAL_LOW , VAL_HIGH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and contains the following values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01   10&lt;/P&gt;&lt;P&gt;25    35&lt;/P&gt;&lt;P&gt;A1   A10&lt;/P&gt;&lt;P&gt;A25 A35&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have selection screen field with value 09 I need to validate this value with above the internal table that the value 09 is in VAL_LOW and VAL_HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 15:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759009#M328660</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-01-02T15:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the range values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759010#M328661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.
 if  p_field ge itab-val_low and
    p_field ge itab-val_high.

  * field is within range
   exit.
 endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 15:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759010#M328661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T15:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the range values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759011#M328662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear aRs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to validate --&amp;gt; Event :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the Internal Table IT_TAB with the values (01,10), (25,35) ....&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validate whether the Selection Screen field (P_FIELD) contains any values in&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      the IT_TAB.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;     LOOP AT IT_TAB INTO WA_TAB.&lt;/P&gt;&lt;P&gt;        IF P_FIELD GE WA_TAB-VAL_LOW   AND&lt;/P&gt;&lt;P&gt;            P_FIELD LE  WA_TAB-VAL_HIGH.&lt;/P&gt;&lt;P&gt;           Message ---&amp;gt; "Present".&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;           Message --&amp;gt; " Not Present ".&lt;/P&gt;&lt;P&gt;        ENDIF.&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;&lt;/P&gt;&lt;P&gt;Abir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Don't forget to award Points *&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="36" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 15:33:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759011#M328662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T15:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the range values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759012#M328663</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;Thanks for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table contains 1.7 million reocrds . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel by using loop will have impact in the performance.Is there any way to validate this by not using LOOP statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 15:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759012#M328663</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-01-02T15:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the range values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759013#M328664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPES: BEGIN OF ty_range,&lt;/P&gt;&lt;P&gt;             val_low type  i,&lt;/P&gt;&lt;P&gt;             val_high type i,&lt;/P&gt;&lt;P&gt;             END OF ty_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_range type table of ty_range,&lt;/P&gt;&lt;P&gt;          wa_range type ty_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_num TYPE &amp;lt;....&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT-SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_range INTO wa_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_num GT wa_range-val_low AND p_num LT wa_range-val_high.&lt;/P&gt;&lt;P&gt;     WRITE: 'Present in Range'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;     WRITE: 'Not Present in Range'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reward Points if HELPFUL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 16:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759013#M328664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T16:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the range values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759014#M328665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to bulk volume of data in the internal table I could not able to use LOOP statement for validation purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 16:12:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-the-range-values/m-p/1759014#M328665</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-01-02T16:12:32Z</dc:date>
    </item>
  </channel>
</rss>

