<?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: Range value restriction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519260#M1068508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just make it simple c i just want to restrict the user for entering the value which ic, val&amp;gt;=1 and val &amp;lt;=12.&lt;/P&gt;&lt;P&gt;i.e. 1 to 12. in that variable which is there in the selection-screen and its length is 2.&lt;/P&gt;&lt;P&gt;thanx...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Sep 2008 06:17:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-20T06:17:56Z</dc:date>
    <item>
      <title>Range value restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519258#M1068506</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 want to disply a field for PERIOD which will have months value 1 to 12. i want to restrict the user for those values 1 to 12 in the event AT SELECTION-SCREEN on VAR.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me for that....&lt;/P&gt;&lt;P&gt;thanx...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 05:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519258#M1068506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-20T05:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Range value restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519259#M1068507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF values OCCURS 10,&lt;/P&gt;&lt;P&gt;          period(6),&lt;/P&gt;&lt;P&gt;       END OF values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:values_tab LIKE values OCCURS 10 WITH HEADER LINE. &lt;/P&gt;&lt;P&gt;data : period1(2) type c default c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR matnr.&lt;/P&gt;&lt;P&gt;  REFRESH values_tab.&lt;/P&gt;&lt;P&gt; Do 12 times.&lt;/P&gt;&lt;P&gt;  period1 = period1 + 1.&lt;/P&gt;&lt;P&gt;  concatenate period1 sy-datum+0(4) into values_tab-period. "this for "012008"&lt;/P&gt;&lt;P&gt;  append values_tab.&lt;/P&gt;&lt;P&gt; ENDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note : im just giving u idea do it urself must me above code is not correctbut u try like this and append that values in values_tab table using DO.ENDDO. loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is for F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;      retfield               = 'PERIOD'&lt;/P&gt;&lt;P&gt;      dynpprog               = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr                 = sy-dynnr&lt;/P&gt;&lt;P&gt;      dynprofield            = 'PERIOD'&lt;/P&gt;&lt;P&gt;      value_org              = 'S'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       value_tab             = values_tab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then here u can restrict that filed aslo by&lt;/P&gt;&lt;P&gt;READ TABLE values_tab WITH KEY period = var. " this var is ur parameter on selction screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; '0'.&lt;/P&gt;&lt;P&gt; message 'Error' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by this u can restrict the user to enter correct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanket.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 06:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519259#M1068507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-20T06:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Range value restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519260#M1068508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just make it simple c i just want to restrict the user for entering the value which ic, val&amp;gt;=1 and val &amp;lt;=12.&lt;/P&gt;&lt;P&gt;i.e. 1 to 12. in that variable which is there in the selection-screen and its length is 2.&lt;/P&gt;&lt;P&gt;thanx...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 06:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519260#M1068508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-20T06:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Range value restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519261#M1068509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try somthing like this.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN on VAR&lt;/P&gt;&lt;P&gt;if value gt 12.&lt;/P&gt;&lt;P&gt;error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 06:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519261#M1068509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-20T06:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Range value restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519262#M1068510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nilesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better you can create a new &lt;STRONG&gt;Domain&lt;/STRONG&gt; with Values 1 to 12 (even you can enter January to December) and include that Domain in a new &lt;STRONG&gt;Data Element&lt;/STRONG&gt; and then create the screen &lt;STRONG&gt;parameter/select-options&lt;/STRONG&gt; using that data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The advantage here is you will be provided with a search help automatically without coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For validation. in &lt;STRONG&gt;PAI/ At Selection Screen&lt;/STRONG&gt; write the following code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF Period LT 1 Or Period GT 12.
Message 'Error in Period Input !' Type 'E'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 06:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519262#M1068510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-20T06:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Range value restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519263#M1068511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NOT BUT I HAVE TO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 11:38:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-value-restriction/m-p/4519263#M1068511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T11:38:10Z</dc:date>
    </item>
  </channel>
</rss>

