<?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: restriction in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105195#M1361149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code. It will match ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_hkont FOR  bseg-hkont OBLIGATORY .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON so_hkont.&lt;/P&gt;&lt;P&gt;  IF so_hkont-low IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    IF so_hkont-low+9(1) NE '0'.&lt;/P&gt;&lt;P&gt;      MESSAGE 'Enter House Bank G/L' TYPE 'I'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF so_hkont-high IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    IF so_hkont-high+9(1) NE '0'.&lt;/P&gt;&lt;P&gt;      MESSAGE 'Enter House Bank G/L' TYPE 'I'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2009 07:33:33 GMT</pubDate>
    <dc:creator>awin_prabhu</dc:creator>
    <dc:date>2009-09-17T07:33:33Z</dc:date>
    <item>
      <title>restriction in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105189#M1361143</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;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;i want to check only the last digit as 0 , if last digit is 0 it has to proceed further&lt;/STRONG&gt;  i want to restrict in selection screen  iitself ...say suppose &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im my select option  if the user inputs the G/L as 207600 it  gets along else should send a msg...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-option  : so_hkont for bseg-hkont obligatory,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if G/L 207600  ---&amp;gt; it gets in &lt;/P&gt;&lt;P&gt;           207800&lt;/P&gt;&lt;P&gt;           207810      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error&lt;/P&gt;&lt;P&gt;++++&lt;/P&gt;&lt;P&gt;if G/L  207601&lt;/P&gt;&lt;P&gt;           207602&lt;/P&gt;&lt;P&gt;           207893&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to restrict?? pls help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 06:51:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105189#M1361143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-17T06:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: restriction in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105190#M1361144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the AT SELECTION-SCREEN INPUT ON event and write the logic to check if the final digit is zero and throw the error message&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 06:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105190#M1361144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-17T06:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: restriction in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105191#M1361145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 07:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105191#M1361145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-17T07:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: restriction in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105192#M1361146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your rep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i already tried the logic as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen : begin of block b1 with frame title text-001.
                     select-options: so_hkont for  bseg-hkont obligatory .
selection-screen: end of block b1.

AT selection-screen INPUT On so_hkont-low  .
    if so_hkont+9(1) = '0'.
    message 'Enter House Bank G/L' type 'I'.
    Endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but getting error as INPUT not expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u suggest something&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 07:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105192#M1361146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-17T07:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: restriction in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105193#M1361147</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 &lt;/P&gt;&lt;P&gt;AT selection-screen on so_hkont.&lt;/P&gt;&lt;P&gt;    if so_hkont-low+9(1) = '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it will be good, if you can use hknot as parameter. Since if it is select-options, their can be lot of possiblities(range,include,exclude,etc.,) needs to be taken care while checking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 07:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105193#M1361147</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2009-09-17T07:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: restriction in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105194#M1361148</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 like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
selection-screen : begin of block b1 with frame title text-001.
select-options: so_hkont for  bseg-hkont obligatory .
selection-screen: end of block b1.
 
AT selection-screen INPUT On so_hkont.

loop at so_hkont.
    if so_hkont-low+9(1) = '0'.
    message 'Enter House Bank G/L' type 'I'.
    Endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 07:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105194#M1361148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-17T07:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: restriction in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105195#M1361149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code. It will match ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_hkont FOR  bseg-hkont OBLIGATORY .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON so_hkont.&lt;/P&gt;&lt;P&gt;  IF so_hkont-low IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    IF so_hkont-low+9(1) NE '0'.&lt;/P&gt;&lt;P&gt;      MESSAGE 'Enter House Bank G/L' TYPE 'I'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF so_hkont-high IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    IF so_hkont-high+9(1) NE '0'.&lt;/P&gt;&lt;P&gt;      MESSAGE 'Enter House Bank G/L' TYPE 'I'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 07:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction-in-selection-screen/m-p/6105195#M1361149</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2009-09-17T07:33:33Z</dc:date>
    </item>
  </channel>
</rss>

