<?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 report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311039#M793033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to validate the selection screen like this :&lt;/P&gt;&lt;P&gt;select-option: s_matnr have lower range and higher range.&lt;/P&gt;&lt;P&gt;the logic developed by me is :&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON  s_matnr.&lt;/P&gt;&lt;P&gt; SELECT matnr&lt;/P&gt;&lt;P&gt;         FROM mara&lt;/P&gt;&lt;P&gt;         INTO TABLE itab&lt;/P&gt;&lt;P&gt;         WHERE matnr IN s_matnr.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE exxx.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;but this is validating only the lower value, plse help me how validata upper (high) value.&lt;/P&gt;&lt;P&gt;it is allowing any kind of value in the upper range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;aaryaa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2008 08:28:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-05T08:28:20Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311039#M793033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to validate the selection screen like this :&lt;/P&gt;&lt;P&gt;select-option: s_matnr have lower range and higher range.&lt;/P&gt;&lt;P&gt;the logic developed by me is :&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON  s_matnr.&lt;/P&gt;&lt;P&gt; SELECT matnr&lt;/P&gt;&lt;P&gt;         FROM mara&lt;/P&gt;&lt;P&gt;         INTO TABLE itab&lt;/P&gt;&lt;P&gt;         WHERE matnr IN s_matnr.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE exxx.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;but this is validating only the lower value, plse help me how validata upper (high) value.&lt;/P&gt;&lt;P&gt;it is allowing any kind of value in the upper range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;aaryaa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 08:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311039#M793033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T08:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311040#M793034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to validate a range, first of all it is not advisable, because purpose of a range would be lost. What if you have valid number 2 and 5.&lt;/P&gt;&lt;P&gt;Then user might enter S_MATNR as between 1 and 10.&lt;/P&gt;&lt;P&gt;The output should show 2 and 5, but since your program validates 1 and 10, it would not proceed &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, if you still want to validate both then do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at s_matnr.
select single matnr from mara into v_matnr
where matnr eq s_matnr-low.
if sy-subrc ne 0. return error. endif.
check s_matnr-high is not initial.
select single matnr from mara into v_matnr
where matnr eq s_matnr-high.
if sy-subrc ne 0. return error. endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 08:34:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311040#M793034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T08:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311041#M793035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare itab with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also a variable say flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data flag.

AT SELECTION SCREEN ON s_matnr.
SELECT matnr
FROM mara
INTO  itab
WHERE matnr IN s_matnr.
endselect.
IF sy-subrc &amp;lt;&amp;gt; 0.
move 'X' to flag.
ENDIF.
if flag is not initial.
message
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Will.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 08:36:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311041#M793035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T08:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311042#M793036</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;P&gt;AT SELECTION SCREEN ON s_matnr.&lt;/P&gt;&lt;P&gt;SELECT matnr&lt;/P&gt;&lt;P&gt;FROM mara&lt;/P&gt;&lt;P&gt;INTO TABLE itab&lt;/P&gt;&lt;P&gt;WHERE matnr in(  s_matnr-low  s_matnr-high )&lt;/P&gt;&lt;P&gt;or matnr between s_matnr-low and s_matnr-high .&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE exxx.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 08:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311042#M793036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T08:52:48Z</dc:date>
    </item>
  </channel>
</rss>

