Value Range Script (Part 2)

How can I, within the below script, allow for the value to be left blank or enter 0 and not get an error for the value range set? I only want users to either enter a value within that range or, if left blank or the field is equal to zero, they will not be prompted to enter a value within the specified range.
if((event.value >= .25) && (event.value <= 1.75)){
//Valid
} else {
app.alert("ERROR: Please choose a value within .25 and 1.75.", 3);
event.rc = false; 
Thanks to all in advance!

Thank you much, as always, Try67!
From:   try67 <[email protected]>
To:     Omar Lopez Nunez <[email protected]>
Date:   08/10/2011 11:18 AM
Subject:        Value Range Script (Part 2)
(There's no need to open a new thread....)
Replace the first line with this:
if(event.value=="" || event.value == 0 || (event.value >= .25) &&
(event.value <= 1.75)){

Similar Messages

  • ECATT: Recording "Restrict Value Range" screen for CO58

    Hi,
    I need to provide PI Sheet # for CO58 (Process a material). Here, I search the PI Sheet # from Process Order # when I perform this manually. But, when recording this via TCD Mode or SAPGUI mode, I am not able to record the part where PI Sheet # is searched through the "Restrict Value Range" screen through Process Order #.
    How can I record this part?
    OR
    Is there any way to obtain PI Sheet number from PO # through some other transaction. I tried using CO60 but the values inside the table displayed there with PI Sheet # is also not getting recorded.
    Any help would be highly appreciated.
    Thanks,
    Punit Sethi.

    Hi,
    I need to provide PI Sheet # for CO58 (Process a material). Here, I search the PI Sheet # from Process Order # when I perform this manually. But, when recording this via TCD Mode or SAPGUI mode, I am not able to record the part where PI Sheet # is searched through the "Restrict Value Range" screen through Process Order #.
    How can I record this part?
    OR
    Is there any way to obtain PI Sheet number from PO # through some other transaction. I tried using CO60 but the values inside the table displayed there with PI Sheet # is also not getting recorded.
    Any help would be highly appreciated.
    Thanks,
    Punit Sethi.

  • Extract data from domain-value range

    Hi,
    I have a requirement to extract data from Domain-Value range.
    I am using MDM generic extractor(mdmgx)
    in 'Maintain ports and check tables' i can create a port but i should mention a table name.
    I have a 'DOMAIN'
    with a specific value range:
    01    text1
    02   text2
    03   text3
    so on...
    i need to get these entries as a part of extracted data.
    Could you please tell me how to do this?
    Thanks a lot in advance.
    Regards,
    Rashmi

    Hey guys,
    you're making things much to complicated. For extracting Domains with MDMGX, the TABLE NAME equals the DOMAIN NAME. Example for domain XFELD that is a common Yes/No Flag:
    CLIENT            000
    SYSTEM TYPE       R3
    OBJECT TYPE       Vendor
    MDM PORTCODE      LT_YesNoIndicator
    TABLE NAME        XFELD
    NONLANG FIELDS    KEY=Key
    LANG FIELDS       LANGKEY=LANGKEY,VALUE=Name
    WHERE CLAUSE
    LINK INFO
    FUNC XML
    FUNC XSD
    PROCESS LEVEL     0
    TABLE NAME equals the domain name.
    NONLANG FIELDS and LANG FIELDS use default entries as defined above.
    If you check your system for "table" XFELD, you'll clearly see that it's a domain.
    Cheers
    Michael

  • Input Field: Value Range in IP Web Layout

    Hi Experts,
    I've created a Web Layout based on IP with a copy function (e.g. from actual 2008 to plan2009) over 12 calendar months. For choosing the months to be copied, I created a Variable (calmonths) and added an Input Field into my layout to enter the the months to be copied. I referred the variable to the input field and it's working...
    When I want to select several months to be copied, I can type in " 1; 2; 3; " into the input field, execute the planning function and only month 1, 2, 3 (i.e. Jan, Feb, Mar) are being copied. But when I want to copy all 12 months, i have to enter 1; 2; 3; 4;...11; 12 which is kind of anoying! Has somebody some experience whether I can use a value range like 1-12 (or something like that) to avoid entering all the months individually? (I tried 1-12; 1- 12; 1 - 12; 1:12 etc but nothing like this is working)
    It would be very helpful if someone has an idea
    All the best,
    Norbert

    Hi Mayank, hi Srinivas.
    Thanks a lot for your valuable input! Unfortunately I was not able until today to test your recommodations.
    I tried your Interval variable but then faced the problem that I cannot enter multiple months anymore (e.g. 5 - 8 worked, 1; 3; 5 not).  Then I inserted both variables, multiple values & interval, into the planning function as well as in the button group in WAD for executing the PF but was not able to execute the following example: 1; 8; 4 - 6. After trying out for some time I figured out that one has to type in the figures in the following order: 4 - 6; 1; 8. Only then I am able to execute the planning function for the months April-June & Jan & August. So, if you're facing the same problem in the future, maybe you have the solution
    Best regards,
    Norbert

  • Can I use the value range as F4 ValueHelp in WebUI?

    Hi,
    I have a Z-field in CustomerH. Its datatype has a domain with a fixed value range attached.
    I show this field in the header of a sales order but the value help does not show up automatically.
    My question is: Can I use this value range as input for the value help or do I have to code a "real" value help and attach it via the V-Getter?
    Thanks.

    Hi,
    /people/tim.back/blog/2009/02/09/learn-how-to-create-drop-down-listboxes-in-crm-70s-web-client-ui
    to fetch data, you can use table mentioned above. Pass domain name and language to get all values maintained in domain.
    Regards,
    BJ

  • Default value for variable are not within permitted value range (precalc)

    Hello BW community
    Issue:
    I have created a variable (Characteristic Value/ Manual input-default value) and use the precalculated value set (details-basic settings). In the further variable definition I could select the  precalculated value set in 'Default values', which I have defined beforehand in the broadcaster..
    The precalculated value set in the broadcaster settings is just based on a master data query on 0CUSTOMER.
    Error:
    The variable gets the error E991/R9E Errors: Default values for variable 'XXX' are not within permitted value range.
    The detail description of the error is: You defined default values for variable 'Sold-to party precalc value set for manuel input' that are not appropriate for the variable type; for example, a range is defined as a default value for a variable that only permits a single value.
    So please has someone had the same issue and found out how to solve it? It would be excelent to get good solution for this issue.
    Best regards and thanks
    Christian
    PS-1: System BW 701 / SAPKW70105
    PS-2 : there has been a SDN entry with the same topic but not resolved too.
    link: /thread/980839 [original link is broken]

    Hello,
    Thanks for your response.
    I should have mentioned that in my post. I tried this very first time. I thought that this is the place where you provide default value. But I got following exception at that time, so I thought, may be this is used for something else.
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.faces.FacesException: javax.servlet.ServletException: OracleJSP error:
    oracle.jbo.NameClashException: JBO-25001: Object viewAllInd of type Control Binding Definition already exists.
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)Do I need handle something else when you put the default value?
    Thanks,
    Jai

  • Variable for value range

    Hi
    I want to use a variable for giving a value range in a customer exit.
    My scenario is that i have to find the total of quantity for the previous fiscal year. i have declared a variable with the following parameters :
    Processing type : Customer exit
    variable represents: Interval
    variable is not ready for input.
    I have to pass the initial and the final fiscal periods. I have written the code for it as
            l_s_range-low  = l_frstyr.
            l_s_range-high = l_lstyr.
            l_s_range-opt = 'BT'.
    but when i execute the query i get an error saying "Variable Z_FP01_1 contains too many values".
    How can i solve this problem????
    Regards
    Sujai

    maybe l_s_range already has values for thah variable, or you are doing the addition of values several times because of you are not having in count the i_step variable.

  • How to define variable for value range in Bex Query?

    Hi
    How to define variable for Keyfig. value range on runtime like characteristic in Bex Query?
    Example: On runtime user select one of the following condition:
    1)User want to those records where amount is greater than $1000
    2)User want to those records where amount is greater than $1000 and less than $5000
    3)User want to those records where amount is greater than and equal to $1000

    Hi ,
    Need to Use exceptions & conditions for this scenario's  & need to create variable for exceptions based on condtions.
    Below document provides steps how to make selections at run time for a kfg.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60b33a28-dca2-2d10-f3b2-d2096b460b1e?QuickLink=index&overridelayout=true&48842368468641
    Regards,
    Seshu.P

  • Filtering domain value ranges

    Is it possible to filter domain value ranges when displaying a dropdown listbox in a table control according to the value of another field?
    For instance,
    - I have an ITAB with the fields FIELD1 and FIELD2 and a table control TABCON connected to it.
    - FIELD1 is an instance of the domain ZDOMAIN1 and FIELD2 is an instance of the domain ZDOMAIN2.
    - ZDOMAIN1 has the value range X, Y.
    - ZDOMAIN2 has the value range A, B, C, D.
    The value of FIELD1 will be already set and not changeable at this point, as for the drop-down list for FIELD2, I want it to include
    - only A and B if the value of FIELD2 is X for that entry
    - only C and D if the value of FIELD2 is Y for that entry
    I hope I've been able to explain my problem here.

    yes it is possible
    in process before output, you should build the value list dynamically and call function module VRM_SET_VALUES to update it on screen

  • Qualifier values are not part of a qualified lookup record

    Hi
         I am getting the exception "Qualifier values are not part of a qualified lookup record" when I serach for a record in the Qualified table. The Table has both Qualfier and non-Qualifier fields, but all are of type display fields.
    My question is If the filed is of type Qualifier then is it mandatory that it should be non-display Field?
    if  not can any one suggest me to get the record.
    If we make Qualifier fields as NON-Dispaly fields in repository then it is working fine.
    Here with I am providing the code
                   Search serarch = new Search(repoSchemaCmd.getRepositorySchema().getTable("QT_NOTES").getId());
                   serarch.addSearchItem(new FieldSearchDimension(repoSchemaCmd.getRepositorySchema().getFieldId("QT_NOTES","USER_PMF_ID")),new TextSearchConstraint("test", TextSearchConstraint.EQUALS));
                   ResultDefinition rd =new ResultDefinition(repoSchemaCmd.getRepositorySchema().getTable("QT_NOTES").getId());
                   //Returns the array of IDs for all display fields associated with the table
                   rd.setSelectFields(repoSchemaCmd.getRepositorySchema().getTableSchema("QT_NOTES").getDisplayFieldIds());
                   RetrieveLimitedRecordsCommand retrievedRecords =new RetrieveLimitedRecordsCommand(conn);
                   retrievedRecords.setSession(userSessionID);
                   retrievedRecords.setSearch(serarch);
                   //retrievedRecords.setIds(RID);
                   retrievedRecords.setResultDefinition(rd);
                   try {
                        retrievedRecords.execute();
                   } catch (CommandException e) {
                        throw new CommandException(e);
    Regards,
    Sandeep.

    Hi Sandeep
    I have a similar problem, would like to know what is the resolution to this issue.
    Regards
    Dilip

  • Validation for the select option value range of selection screen

    Hi All.
    if i wish to validate the selection screen parameter for a value range(select options),is it possible?
    what should i write in code.Also,m using FM DD_DOMVALUES_GET to get the values for a specific domain name.
    Please reply.

    Hiii,
         Yes it is possible.... Can you give me the piece of code ... about the select option
    and also the value range against which you want to validate the select option.
    So that i can help you with the coding tips...
    Thanks in advance..

  • Function Module required for getting Value Range data

    I need a function module where in i can get the data from a value range in a domain.
    Message was edited by:
            Gurpreet Singh

    Hi,
    You can use this code to get the Doman's fixed values.
    DATA:  lt_fixed_values     TYPE ddfixvalues,
      CALL METHOD cl_abap_typedescr=>describe_by_name
        EXPORTING
          p_data      = 'Domain_name' " Pass the domain name here
        RECEIVING
          p_descr_ref = lcl_abap_typedescr.
      TRY.
          lcl_abap_elemdescr ?= lcl_abap_typedescr.
        CATCH cx_sy_move_cast_error.
      ENDTRY.
      IF lcl_abap_elemdescr IS BOUND.
        CALL METHOD lcl_abap_elemdescr->get_ddic_fixed_values
          EXPORTING
            p_langu        = sy-langu " Give the language
          RECEIVING
            p_fixed_values = lt_fixed_values " This table will have the fixed values
          EXCEPTIONS
            not_found      = 1
            no_ddic_type   = 2
            OTHERS         = 3.
      ENDIF.
    Regards,
    Sesh

  • Get domain value range dynamically

    Hi all,
    I need to create a dynamic method that retrieves the value range (key-value) of a domain.
    It is pretty simple to get fixed values using FM DD_DOMVALUES_GET, but how do I manage a value table?
    For example:
    Field XFELD has fixed values so use DD_DOMVALUES_GET
    Fields BUKRS and SPRAS have value tables.
    I can get the value table name using FM DDIF_FIELDINFO_GET and retrieve the data from that table. Unfortunately, I can be sure to get the right key field, but I can't be sure to get the right value field, it depends on the value table definition.
    BUKRS has T001 that stores the text in field BUTXT of the same instead SPRAS has T002 that stores the text in text table T002T in field SPTXT.
    Is there any standard function module that does the trick?
    In this thread Gregor Wolf managed it manually using a case statement, but I would avoid it, too many case statements...
    Thanks
    Ivan

    What I am doing is not quite the same but similar - I am dynamically getting the text description when I have a data element and the value of the variable that references that data element.
    I was pointed to CL_TEXT_IDENTIFIER which when you pass in the domain and the value magicaly brings back the text description, despite the fact that, as far as I can see, SAP has set up almost every text table slightly differently - sometimes in the main table like T001W or lFA1, sometimes which just the language and the value as a key, sometimes with extra key fields (e.g. MAKT) and sometimes with added organisational key fields e.g. the same GL account have different text descriptions in different chart of accounts.
    I think at some stage CASE statements or subclasses are going to have to come into the equation, due to the utter lack of consistency in SAP table defintions.
    Cheersy Cheers
    Paul

  • Finding short text description of Fixed values for value range for domain

    Hi,
    When I got to Dictionary: Dispaly Domain and click on tab value range; I get the template showing Fix. Val and its associated short text.
    I want to fetch the short text for a particular fix. val for a domain.
    How can I do that ? What table can I use it ? Or do I need to use some function module ?
    Lets say I want to fetch the short text for a given Fix val. for domain VBELN.
    Please help me out.

    Hi,
    You can use Function Module 'FM_DOMAINVALUE_CHECK' to get the fixed values of any domain.
    Regards,
    Atanu

  • Value range(column chart): management cockpit

    Hi friends,
    how can i put value range condition in column chart. my situation is like this 
    I have 10 employees with expereinces 4.1(i.e 4 yrs 1 month),5.5, 1.2, 0.5, 3.5, 0.2, 4, 6, 7 and 8.
    I want to present in column chart in x-axis like <1 yrs, 2-4,5-6,>7 and in y-axis count.
    How can i achieve this. I maintained calculated keyfigues(for <1 yrs, 2-4,5-6,>7) on key figuer total experience and, in bi report i'm getting correct output. Even total experience is also calculated key figure and perfectly viewing this value in cockpit. But in managment cockpit, remaining calculated keyfigues(<1yrs,2-4,5-6,>7) i'm not getting. So i want to prefer to set value range in chart.
    pls suggest me.
    thanks,
    raju

    Hello  Raju,
    You can achieve this by simply using a User defined Periodization & Time Variable.
    http://help.sap.com/saphelp_sem60ep1/helpdata/en/1b/3131375fc9342ae10000009b38f839/frameset.htm
    Defining Periodizations
    1.     To define a periodization, choose Periodization in the dialog structure.
    2.     Choose  to switch to change mode.
    3.     Choose New Entries.
    4.     In the Periodization column, enter a name for the periodization (up to four characters).
    5.     In the Fiscal Year Variant column, choose the fiscal year variant on which you want to base the periodization. (The periodization itself is based on periods of the fiscal year variants.)
    6.     In the Long Text column, enter a descriptive name for the periodization.
    7.     Save your entries and return.
    8.     In the list of periodizations, select the periodization you just created.
    9.     Choose Interval in the Dialog Structure.
    10.     Choose New Entries.
    11.     In the Interval No. column, enter a sequential number for each period to be defined, starting with "1".
    12.     Specify the left time limit (= Start column) and the right time limit (= End column) of the range by entering the respective period of the fiscal year variant on which it is based.
    Eg: In your case you follow this
                   Start Column          End Column
    Period 1(<1 yrs)           1               12
    Period 2(2-4 yrs)                     13               36
    Period 3(5-6 yrs)                     37               60
    Period 4(>7 yrs)          61               specify the no. of months you want to calculate for
    13.     Save your entries and return
    In the Cockpit-Frame-Design screen for the mesures(KPI) on the Y-axis you select the check box of Periodization and select this User defined Periodization created by you. You click on the aggregation box too to get the cummulative value for the defioned periods.
    Hope this helps. Revert incase of any query or let me know if it doesnot work as I have tried this with quarters and its working fine in my case.
    Regards,
    Priyanka Singh

Maybe you are looking for

  • Databse of 1888 Byte Per Record with 259 Fixed Fields Stumped CR?!?

    My Database of  15 million records/rows at 1888 Byte Per Record with 259 Fixed Fields STUMPED CR?! Executive Summary : I have lots of data. There are 15 million of records in some of my database files. But I need to drill into the data and get counts

  • Missing logfiles when hot backup is taken using RMAN

    Hello All, I am having the below situation .Please help to clarify. I have taken hot backup using RMAN. Database is in Archivelog mode. It doesn't take backup of online redo logs. The status of my redo logs are as below. All are not archived. /u01/ap

  • IMAP E-mail Issues, Help!

    Just decided to go IMAP with all of my email accounts and devices. I was under the impression that emails should look the same on all devices (what's in my inbox, deleted, etc.) however, no email is showing up on my iPhone. It loads on to my machines

  • Iphone 4s downgrade IOS 8 to ios 7.1.2

    Have been extremely happy with my iPhone 4s here at work. So much so I got lots of people into the iPhone world when I did. Always done updates except now it looks like that may have got me unstuck. IOS 8 has some wonderful features, except it make m

  • Quick way to sort out who is using one of 2 ironports?

    I have 2 ironports, working together for receiving mail but with different configurations regarding outgoing smtp authentication. We are gradually trying to migrate all users to the authenticated solution, and I need a way to understand who is still