Problem when define Value range for data element

Dear
When I define a new data element in ABAP Dictionary, for example, ZDATA_ELEMENT_TEST.
I use domain ZDOMAIN_TEST.
(Data type is DEC, the length is 10, and decimals is 2 with sign.)
Now, I want to restrict that, user can ONLY input the value from 10 to 100.
From ABAP course and the Internet, I switch to "Value Range" tab, and define 10 for Lower Limit, 100 for Upper Limit in Intervals section.
And write the simple program.
PARAMETERS test TYPE ZDATA_ELEMENT_TEST.
WRITE: test.
And run it.
Line: -
But, there is a problem.
When I input 200 for test, the program still run and display 200 to screen without any error report or notification. The ABAP runtime system doesn't check the input value.
I want to config for the domain that can satisfies, if the user input the wrong value (e.g: 200 in the previous case), the program will auto raise the error report, or exception, or sth like that.
Any help is welcome.

Hi Hanni,
Welcome to forum.
Try to attach key word VALUE CHECK to your PARAMETER statement.
I.e:
PARAMETERS test TYPE ZDATA_ELEMENT_TEST VALUE CHECK.
Note: The addition VALUE CHECK cannot be used together with the additions AS CHECKBOX, RADIOBUTTON, or NO-DISPLAY.
Regards,

Similar Messages

  • Problem--Define number range for cProjects projects

    Hi,
    Does anybody knows how to define/create number range for projects in cProjects?.
    In the standard cPrjects frontend system, the system is taking 16 digits number automatically so i want to define my own number range as required by the client.
    Hence please let me know if some knows abt how to define number ranges for projects in cProjects system.
    You can also reach me on [email protected]
    Thanking you,
    Cheers,
    Suresh Nagaraja

    Hi Suresh,
    don't think there is a standard functionality for this. But you could create your own number range object and fill the data via BAdi. Try DPR_ATTRIBUTES.
    Cheers
    Thorsten

  • Fiscal year variant V3 not defined or maintained for date 01.01.2011

    Hi  Team,
    While doing "ABUMN" we are getting below error message"
    Fiscal year variant V3 not defined or maintained for date 01.01.2011
    Message no. GMMASTERDATA108
    if we change asset value date 02.01.2011, there is no error message.
    we are getting error message only when asset value date is 01.01.2011.
    Please let us know is there any problem 01.01.?
    Thanks and Regards,
    Ram

    Hi Ashwin,
    Yes I have maintained 31 days for JAN in OB29. Even though I'm getting the same information.
    Could you give some other solution.
    Thanks & Regards
    SK.

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • I am transmitting data over internet and WiFi ,it's working fine with internet but when I choose WiFi for data transmission data is not being transmitted. What may be the possible issues of data transmission failure over WiFi?  Please help me.

    I am transmitting data over internet and WiFi ,it's working fine with Internet but when I choose WiFi for data transmission data is not being transmitted. What may be the possible issues of data transmission failure over WiFi?     Please help me....
    Thanks in Advance.
    Neeraj@iDev

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • DSS problems when publishing large amount of data fast

    Has anyone experienced problems when sending large amounts of data using the DSS. I have approximately 130 to 150 items that I send through the DSS to communicate between different parts of my application.
    There are several loops publishing data. One publishes approximately 50 items in a rate of 50ms, another about 40 items with 100ms publishing rate.
    I send a command to a subprogram (125ms) that reads and publishes the answer on a DSS URL (app 125 ms). So that is one item on DSS for about 250ms. But this data is not seen on my man GUI window that reads the DSS URL.
    My questions are
    1. Is there any limit in speed (frequency) for data publishing in DSS?
    2. Can DSS be unstable if loaded to much?
    3. Can I lose/miss data in any situation?
    4. In the DSS Manager I have doubled the MaxItems and MaxConnections. How will this affect my system?
    5. When I run my full application I have experienced the following error Fatal Internal Error : ”memory.ccp” , line 638. Can this be a result of my large application and the heavy load on DSS? (se attached picture)
    Regards
    Idriz Zogaj
    Idriz "Minnet" Zogaj, M.Sc. Engineering Physics
    Memory Profesional
    direct: +46 (0) - 734 32 00 10
    http://www.zogaj.se

    LuI wrote:
    >
    > Hi all,
    >
    > I am frustrated on VISA serial comm. It looks so neat and its
    > fantastic what it supposes to do for a develloper, but sometimes one
    > runs into trouble very deep.
    > I have an app where I have to read large amounts of data streamed by
    > 13 µCs at 230kBaud. (They do not necessarily need to stream all at the
    > same time.)
    > I use either a Moxa multiport adapter C320 with 16 serial ports or -
    > for test purposes - a Keyspan serial-2-USB adapter with 4 serial
    > ports.
    Does it work better if you use the serial port(s) on your motherboard?
    If so, then get a better serial adapter. If not, look more closely at
    VISA.
    Some programs have some issues on serial adapters but run fine on a
    regular serial port. We've had that problem recent
    ly.
    Best, Mark

  • 'Incorrect value type for array element in index N'

    Please help.  Preflight is flagging multiple 'Incorrect value type for array element in index N" > Required key /F is missing >Array element at index 0 is of wrong type' messages for pages throughout my text document with embedded navigation and annotations.What does it mean? Is there anything I can do?
    The origins of the file are from a selection of emails taken from Mail and gmail, and letters probably written on pc (Office) and converted to pdf...
    I'm on Mac Mavericks.
    Thanks for reading.

    What problem are you trying to solve with preflighting? What are you checking for?

  • User defined Number range for TD Bulk Shipments

    Hello,
    By defining Customer specific logic with certain conditions through Z table, can we have a user defined Number range for TD Bulk Shipments? As SAP std. either we can have internal number range or external. If external is opted for, then every time User has to specify the same while creating a Shipment in O4F1. There is a every chance that Users will commit mistakes. In order to avoid this can we have something automatic (i.e. System will take care).
    e.g. In SD Billing we have one User exit:- USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ). With this and depending upon certain conditions (which are maintained in Z table) we can have our own number range.
    Similarly, Can any one please suggest either a User Exit or  BAdi or some enhancement point for this requirement?
    Regards,
    Aniruddha.
    Edited by: Aniruddha Saraf on Jan 3, 2008 2:28 PM

    Hi Anirudhdha,
    There is no standard exit for number ranges like those in SD. However, you can try using the exit EXIT_SAPMOIGS_001 for this purpose. You will still need to enter internal number range in the shipment type configuration.
    Hope this helps,
    Regards,
    Ashutosh

  • Problem While Defining  "VALUE SET"

    Dear All,
    I am finding problems while defining "Value Set".
    I wanted to select "DISTINCT" Column from a particular Table.
    It is not allowing me to select distinct Column.
    Is there any other alternative ??

    Hi Tarak,
    Create a view selecting distinct values and then use this view as a table in your value set.
    Vishal

  • F1 Help for Data elements

    Hi All,,
    i want to add F1 help for data elements.How can i do this.Kindly suggest me the steps to perform this.

    hi
    use this link
    http://help.sap.com/saphelp_nw04/helpdata/en/a4/d47ee849e111d189730000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/45/11e39c459d7201e10000000a155369/frameset.htm
    Cheers
    Snehi
    Edited by: snehi chouhan on Jul 24, 2008 11:10 AM

  • Define Number Range for Reference Number

    Hi all,
    I am trying to maintain Different Number ranges for Loans in ESS.
    Once i maintain Define Number Range for Reference Number in Loans ESS and trying to raise a new loan from ESS is till see that the ref number is still displayed 0 while raising the New Loan.
    No        From Number       To Number
    10       
    I maintained range for number range number 10.
    Pls suggest me on this.
    The above scenario works for claims but not for Loans
    Regards
    Vijay

    Solved my self...!

  • Define a range for JProgressBar

    Is it possible to define a range for JProgressBar object ??
    I want to paint a progress bar from say 30% to 70% with a color say "green".
    If i do:
    JProgressBar progressBar = new JProgressBar(ProgressBar.HORIZONTAL);
    progressBar.setForeground(Color.green);
    progressBar.setValue(30);
    // it paints till 30% of the progress Bar
    progressBar.setValue(70);
    // it will paint from start to 70% of the progress bar.
    Is it possible to extend JProgressBar classs and define our own MyProgressBar Class which does this task ??? I tried but was not able to succeed.
    any help would be appreciated
    regards,
    Kumar

    I'm not sure what the request is. Are you asking for a process bar where the entire bar changes color within a certain range (not too hard). Or a progress bar whose bar could be multiple colors at the same time?

  • Define Number Range for Manual Planning

    Dear All,
                   How Can I define number range for manual planning?
    Thanks & Regards,
    Mahendra Gupta
    Moderator: Please, search before posting

    Hi,
    Please follow below path:
    SPRO>IMG>Financial Supply Chain Management>Cash & Liquidity Mgmt>Structuring>Manual Planning> Define Number Range (OT20)
    Br,Vivek

  • I use captivate 8, the problem when i make app for android. the sound not heard. i use android4.4. how i do?

    i use captivate 8, the problem when i make app for android. the sound not heard.
    i use android4.4. how i do?
    i use phonegap online.
    thank you

    Yes I do spend a lot of time in China but I have had problems in other countires as well.  I am in China right now.
    I have two Gmail accounts and one Cox account.  Cox is my intranet provider back home.  I have had problems with all three accounts. 
    I have tried several outgoing port settings.  993, 995 465, 587 are some that I can remember trying.
    Sometimes my accounts will go offline without me doing anything.  This is all a mystery to me.  I don't have any idea why I have trouble like this.  A few minutes ago I changed my Cox account outgoing port and took the account on line and I got my incoming email but when I tried to forward an email that I got it would not go out. 
    Any ideas you have would be helpful.

  • Problem when using MS Access as data source

    I want to get the source data from MS Access Database and load the data into a Oracle Database by OWB.
    I created a ODBC for the Access Database,and added the correlative informations in the files such as hs/admin/initmsaces.ora��network/admin/listener.ora��network/admin/tnsname.ora.
    Then I created a new module under the "DataBase->Other->ODBC" in OWB,the schema I selected is "Undefine"��it is the only one selection��Then I created some mappings.All these steps are successful.
    But when I was deploying the project,OWB reported a wrong: Talbe or View is not exist.
    I want to know how can I resolve the problem.
    Thanks!

    I think we are having the same problem and (I think) set up everything as described in the note.
    We are using an ODBC connection to an MS-Access database with OWB 9.2. We have successfully defined the data source to OWB, and imported 2 target tables, then mapped one of the tables to a staging table.
    The mapping process “validates” correctly. From Deployment Manager, we “register” the source file location, which asks for a schema owner, username, and
    password. We supply the value “admin” for each of these as Location Registration windows requires a value for each [no blanks allowed] and the registration is successful.
    However, when we Generate/Deploy the mapping, the Generate succeeds, but deployment fails with the error “PL/SQL: ORA-00942: table or view does not exist”. Looking at the generated code, we see that the SELECT statement in the generated mapping code specifies the source table as owner.table_name@db_link.
    From SQL*Plus, the table_name@db_link can be described correctly. Trying to describe owner.table_name@db_link fails with “object does not exist” error, which is similar to the OWB “table does not exist” error.
    MS-Access has no concept of “schema-owner”. Is there a way to generate the Mapping without specifying the “schema-owner” ??.

Maybe you are looking for