Error message for this at selection

hi.
i want to throw thw error message if the user enters the value not valid for the zregion1 of zbwcntry
and user should be able to correct it before moving ahead.
Also,iis not a mandatory field,So if it is initial,it can b blank.
but if the input doesnot lie in the range,it should give error message.
please suggest the line of code and where it is to be added.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_REGN1-LOW.
SELECT LAND1
       ZREGION1
       FROM ZBWCNTRY
       INTO CORRESPONDING FIELDS OF TABLE IT_ZBWCNTRY UP TO 1000 ROWS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
  EXPORTING
  DDIC_STRUCTURE         = ' '
    retfield               = 'ZREGION1'
  PVALKEY                = ' '
   DYNPPROG               = SY-CPROG
   DYNPNR                 = SY-DYNNR
   DYNPROFIELD            = 'S_REGN1'
  STEPL                  = 0
  WINDOW_TITLE           =
  VALUE                  = ' '
   VALUE_ORG              = 'S'
  MULTIPLE_CHOICE        = ' '
  DISPLAY                = ' '
  CALLBACK_PROGRAM       = ' '
  CALLBACK_FORM          = ' '
  MARK_TAB               =
IMPORTING
  USER_RESET             =
  tables
    value_tab              = IT_ZBWCNTRY
  FIELD_TAB              =
  RETURN_TAB             =
  DYNPFLD_MAPPING        =
EXCEPTIONS
  PARAMETER_ERROR        = 1
  NO_VALUES_FOUND        = 2
  OTHERS                 = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_REGN1-HIGH.
SELECT LAND1
       ZREGION1
       FROM ZBWCNTRY
       INTO CORRESPONDING FIELDS OF TABLE IT_ZBWCNTRY UP TO 1000 ROWS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
  EXPORTING
  DDIC_STRUCTURE         = ' '
    retfield               = 'ZREGION1'
  PVALKEY                = ' '
   DYNPPROG               = SY-CPROG
    DYNPNR                 = SY-DYNNR
   DYNPROFIELD            = 'S_REGN1 '
  STEPL                  = 0
  WINDOW_TITLE           =
  VALUE                  = ' '
   VALUE_ORG              = 'S'
  MULTIPLE_CHOICE        = ' '
  DISPLAY                = ' '
  CALLBACK_PROGRAM       = ' '
  CALLBACK_FORM          = ' '
  MARK_TAB               =
IMPORTING
  USER_RESET             =
  tables
    value_tab              = IT_ZBWCNTRY
  FIELD_TAB              =
  RETURN_TAB             =
  DYNPFLD_MAPPING        =
EXCEPTIONS
  PARAMETER_ERROR        = 1
  NO_VALUES_FOUND        = 2
  OTHERS                 = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

after executing the program u have to write the vaildation code . while selection u r not able to do
Regards,
ajay

Similar Messages

  • Error message for ranges in selection screen

    Hi
    i have this select option statement
    SELECT-OPTIONS: s_fevor FOR afko-fevor.
    i have written this code for error message display...
    AT SELECTION-SCREEN ON S_FEVOR.
    I_FEVOR-SIGN = 'I'.
    I_FEVOR-OPTION = 'EQ'.
    I_FEVOR-LOW = S_FEVOR.
    I_FEVOR-HIGH = S_FEVOR.
    IF not I_FEVOR-LOW EQ s_FEVOR .
    SELECT  FEVOR
         FROM AFKO
           INTO S_FEVOR
             WHERE FEVOR = S_FEVOR.
                UP TO 1 ROWS.
    ENDSELECT.
    IF SY-SUBRC NE 0.
    MESSAGE E000.
    ENDIF.
    ENDIF.
    if i enter the correct data then also it is giving error message
    how to solve this?
    Regards
    Smitha

    Hi,
    Refer this code:-
    SELECT-OPTIONS: s_fevor FOR afko-fevor.
    DATA : BEGIN OF t_fevor OCCURS 0,
             fevor TYPE afko-fevor,
           END OF t_fevor.
    AT SELECTION-SCREEN FOR s_fevor.
      s_fevor-sign = 'I'.
      s_fevor-option = 'EQ'.
      s_fevor-low = S_FEVOR.
      s_fevor-high = S_FEVOR.
      APPEND s_fevor.
      CLEAR s_fevor.
      IF NOT s_fevor-low IN s_fevor.
        SELECT fevor
              FROM afko
              INTO TABLE t_fevor
              WHERE fevor IN s_fevor.
        IF sy-subrc NE 0.
          MESSAGE e000.
        ENDIF.
      ENDIF
    Hope this helps you.
    Regards,
    Tarun

  • How to write Error message for select options?

    Hi
    i have this select option statement
    SELECT-OPTIONS: s_fevor FOR afko-fevor.
    how to write error message for this?
    Regards
    Smitha

    Error messages are displayed for Select-options mostly on two conditions:
    1) You needs to check wether a value is entered or not its done by:
    a)
    Select-options:SELECT-OPTIONS: s_fevor FOR afko-fevor Obligatory.
       In this case error message is automatically throwed by system.
    b) You can do this in Selection Screen events.
    Ex:
    AT SELECTION-SCREEN./AT SELECTION-SCREEN ON S_FEVOR.
    IF S_FEVOR-LOW IS INITIAL.
    MESSAGE 'XXXXX' TYPE 'E'.
    ENDIF.
    2) You need to Validate the entered value:
    You can do this in Selection Screen events.
    Ex:
    AT SELECTION-SCREEN./AT SELECTION-SCREEN ON S_FEVOR.
    SELECT FEVOR
                 FROM AFKO
                 INTO AFKO-FEVOR
                 UP TO 1 ROWS
    ENDSELECT.        
    IF SY-SUBRC NE 0.
    MESSAGE 'XXXXX' TYPE 'E'.
    ENDIF.
    Regards,
    Gurpreet

  • Pop up error messages for failed custom validation

    I am using jdev-10.1.3.4
    My application is in ADF BC
    I am writing custom validation through managed bean, I want pop-up error message for this failed validation.
    My problem scenario is:
    I had some list box as "status"-when this status changes to failed then the other field namely "closed date" should become madantory and also date in closed date field can't be in future.I am able to have all this validation through managed bean and also able to use af:messages through which i am able to print error message on the top of the form, but i am not able to give pop up error message for this failed validation.
    I had gone thru jdev guide but there is nothing like what i am asking.
    it would be of great help if someone can give me some example also.
    thanks in advance.

    ADF has global setting where you can configure the way messages are shown to user:
    You can make this setting in adf-faces-config.xml
    The <client-validation> element controls how client-side converters and validators are run.
    Three values are supported:
    "INLINE": validation is shown inline in a page (the default)
    "ALERT": validation is shown in an Javascript alert
    "DISABLED": validation is only handled on the server
    IN your case, set it to 'ALERT'.

  • For weeks I have been viewing a doggy day care via their web cam.  This weekend I upgraded to Lion and have been unable to view the center since.  I get an error message for java webcam class not found.  All of my software is up to date--suggestions?

    For weeks I have been viewing a doggy day care center via their web cam.  This weekend I upgraded to Lion and have been unable to view the center.  I get an error message for Java plug-in 1.6.0_29 ....webcam class not found.  Any suggestions on how to fix this?

    Sorry, don't know what else to suggest unless there's a URL to the problem stream that someone here can try. Otherwise we can't test it to try and determine what might be wrong.
    BTW, make sure they're testing it with a Mac, not with a Windows system. If they test only with Windows, what they say is or is not working doesn't mean much.
    Regards.

  • Oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters

    Dear Guru's,
    I am not able to solve the above issue for last couple of days.
    I am newbie to the webservice
    My Issue...
    I am using Jdeveloper 11.1.2.4.0 Release 2
    1. Using Jdev I built one small Web Service with two methods.
            While testing the Webservice...
                   I passed User Id as Parameter and it successfully return the values (user id, user name and description) from fnd_user table
    2. I created another application to consume the web service i created.
                   1. I added the webservice SOAP and added the method.
                   2. Created a jsf page and drag and drop the parameter and return values to the jsf page.
    3. While executing the created jsf page I received the error message as below
    "oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters are {0=Attribute, 1=UserName, 2=UserName}"
    Even I know that this issue is repeated one in our forum, I was not able to solve this issue.
    Can anybody help to solve this issue.
    Thanks and Regards,
    Durai S E

    Dear Guru's,
    I am not able to solve the above issue for last couple of days.
    I am newbie to the webservice
    My Issue...
    I am using Jdeveloper 11.1.2.4.0 Release 2
    1. Using Jdev I built one small Web Service with two methods.
            While testing the Webservice...
                   I passed User Id as Parameter and it successfully return the values (user id, user name and description) from fnd_user table
    2. I created another application to consume the web service i created.
                   1. I added the webservice SOAP and added the method.
                   2. Created a jsf page and drag and drop the parameter and return values to the jsf page.
    3. While executing the created jsf page I received the error message as below
    "oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters are {0=Attribute, 1=UserName, 2=UserName}"
    Even I know that this issue is repeated one in our forum, I was not able to solve this issue.
    Can anybody help to solve this issue.
    Thanks and Regards,
    Durai S E

  • I've tried to open itunes but just get error message saying this version of itunes has not been correctly localized for this language. Please run the english version

    Looking for some help.  I am trying to open itunes and I keep getting an error message saying "This version of itunes  has not been correctly localized for this language. Please run the english version"
    Can anyone help.

    Hi there nisbetk,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/ts1717
    -Griff W.

  • HT1338 I am getting an error message for the Update store, saying "To Update this application, sign in to the account you used to purchase it."

    I am getting an error message for the Update store, saying "To Update this application, sign in to the account you used to purchase it."  how do I get rid of these Old unneccisary Updates?  anyone?

    Welcome to Apple Communities
    What's this app? You need to use another Apple ID to update it

  • I've received an error message for for photoshop CS4 that I still use for some automated projects. ERROR: 150:30 Anybody know what this is and how to fix it?

    I've received an error message for for photoshop CS4 that I still use for some automated projects. ERROR: 150:30 Anybody know what this is and how to fix it?

    Please refer:
    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac- os.html
    Regards,
    Ashutosh

  • Safari tries repeatedly to open a page. The page partially opens but then Safari reports that there's something wrong with page and I get an error message. This is happening at too many web sites for one site to be having issues.

    Safari tries repeatedly to open a page. The page partially opens but then Safari reports that there's something wrong with page and I get an error message. This is happening at too many web sites for one site to be having issues.

    I have a similar problem, Safari cannot load a complet page. It stalls e.g. ["38 of 42"]. sometimes it will complete loading after a long wait. just as often it will never complete the page,
    The same thing happens in chrome and firefox but safari on my iPad works just fine.
    I have the latest version of everything
    I assume there is a system problem but cleaning up permissions does not help

  • HT5622 When trying to log into iCloud, I get error message that this iPhone has exceeded it's limits for free apple I'd accounts

    When trying to log into iCloud, I get error message that this iPhone has exceeded it's limits for free apple I'd accounts

    Indeed you do, limit of three accounts exists for every device. You can use old icloud accounts or create account on new device and then sign in on that phone. That limit is only for creating and not for use.

  • Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at http:// (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Is this a webpage that contains a link to a flv file? Please post a link to the page and tell us which link(s) are the problem flv files or else post a link to the .flv file itself.
    Alternately, click on one of the sample FLV File links on this page and tell us exactly what happens:
    http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
    It might also help if you post the exact error message, including the path to the flv file.
    '''Note:'''
    Depending on how you have Firefox set up, clicking on a FLV File link will either save the FLV file to your computer or Firefox may open it automatically in an external application right after downloading (Firefox may ask you first). Firefox itself can't play FLV files so you need a "helper" application (or a plugin for flv files, if ther is one. You can see if Firefox is already set up to download or open FLV files by going to Firefox Preferences and looking in the Applications list. Find the FLV file type in the list and, if the action is "Open with", it should show the application that can play FLV files (e.g., VLC Media Player or Perian). See [[Managing filetypes]] for more information.

  • Error message is "this accessory is not optimized for this iphone" how can i delete the accessory? have an iphone3gs

    error message is "this accessory is not optimized for this iphone" how can i delete the accessory whatever it is? the phone does not tell me. Thank you.

    I have same problem which drives me nuts - phone lights up in middle of the night and displays message every hour or so.  Something is obviously not right and it's not dust on the connector.

  • TS3988 I get a "Connection Error - iCloud encountered an error while trying to connect to the server" message; I have been getting this error message for months, on any device I try to login with.

    I get a "Connection Error - iCloud encountered an error while trying to connect to the server" message; I have been getting this error message for months, on any device I try to login with.

    Hi
    I am sorry can't help you because I have same problem when login to icloude.com and try insert to Contacts!
    Many times happen.
    what is issues ?

  • Reserved error (-7732); there is no message for this error.

    I have been trying for months to link an Oracle 10g database to my Access 2010 database. I have successfully added the appropriate Oracle ODBC connection. However, when I try to import a table from the database, I get the error "Reserved error (-7732);
    there is no message for this error." Really useful, isn't it? I've tried searching both the Microsoft and Oracle forums but no solution that I've seen on this error has been able to fix this. I have a Windows 7 64-bit machine, I'm running 64-bit Office
    and cannot change to the 32-bit version. I have the 64-bit Oracle ODBC driver installed properly as well. Does anyone have any other information on this error? It boggles my mind why someone would come up with this error and not have any further information
    on it but still bother to put "there is no message for this error." Anyway, someone please help me out. Thanks.

    Hi,
    As far as I know, this is known to occur with 64 bit versions of Access 2010 and Oracle Instant Client tools when the Oracle Instant Client/Data Access Components are lower than version 11.2.0.3.0.
    Please try to update the Oracle data access components to version 11.2.0.3.0 or newer.
    Here is the link to download the latest data access components from Oracle
    http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
    More reference:
    Installation instructions
    http://www.oracle.com/technetwork/topics/dotnet/downloads/install112030-1440546.html
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    George Zhao
    TechNet Community Support

Maybe you are looking for