I have to validate the field enter in that table  values is enter in the ra

i have one table field with data
1. <=0.5
2. <=1
3.textsfsfs
4. >=2 like that
i have to validate the field enter in that table  values is enter in the range of the above field.
can you help me how to validate
ex:
if wa-upper =  wa2-sumplus  here i have to check the upper and lowe values
if the user enter in between and eq based on the i have to give erro message.
Please help me the same.
Thanks
Ramkumar

Hi Lekha,
Thank you this problem was solve.
we did the this validation in back end insted of front end.
i passed the table data in to ZFM there we are validating and giving the error message.
thank you for helping me all the time.
ONE problem:
LV_TEXT is the context attribut containe type string.
i amgetting the values in to LV_TEXT attribut.
LV_TEXT = nkafjkafkafhkafksfkak<b>#</b>bshfsafkasfkasfkas.
i wanto to split this and will get the before <b>#</b> values in to other other node workarea LS_dis_new.
this LS_DIS_NEW i have to modify with table LT_DIS_NEW.
i used the code : Split wa at '#' into table LT_DIS_NEW.
this is not working.
please help me the same.
Thanks
Ramkumar

Similar Messages

  • Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

    Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

    Here is one solution:
    // mouse up action for submit button;
    function GetField(cName) {
    // get field object for cName field with error checking;
    var oField = this.getField(cName);
    if(oField == null) app.alert("Error accessing field named " + cName + "\nPleae verigy field name, spelling and capitalizeation.", 1, 0);
    return oField;
    } // end GetField function;
    var oPhone = GetField("phone");
    oPhone.required = oPhone.value == oPhone.defaultValue;
    var oEmail = GetField("email");
    oEmail.required = oEmail.value == oEmail.defaultValue;
    if(oPhone.required && oEmail.required) {
    app.alert("Missing required fields.", 1, 0);
    } else {
    app.alert("Submitting form", 3, 0);
    // additional code for submission;

  • Validate a field entered in infotype using BADI

    I am writing code in PAI method of BADI HRPAD00INFTY for implemetation class CL_PT_P2012_IF to capture the number the hours entered in infotype 2012 and validate that it is not more than 40. I am not able to field any field in the parameters which corresponds to number of hours entered by the user. Can anyone please suggest me a way to get them.
    Regards,
    Saurabh

    In The PAI
    FIELD <DATEFIELDNAME> MODULE CHECK_DATE ON INPUT.
    In Proram
    MODULE CHECK_DATE.
    <Your Check here>
    ENDMODULE.
    The above module will be triggered only on an entry or change in the date field
    Cheers

  • Hi Friends, i have to validate the min.length attribute using Regular expression, The min.length accepts single value digit only which accepts =5 & min.length accepts =9 please guide me as soon as possible

    dfdsfds

    User,  we need to know your jdev version!
    It would be helpful if your question would not only the header of the post.
    Can you please rephrase your question? Somehow i don't understand xour question.
    Timo

  • Validate the date

    I have to validate the date, using following rules. How I can validate.
    �     Valid date
    �     Not in the past
    �     Not more than 56 days in the future

    See DateFormat/SimpleDateFormat.parse()
    http://java.sun.com/j2se/1.5.0/docs/api/java/text/DateFormat.html#parse(java.lang.String)
    and Calendar.add()
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html#add(int,%20int)
    There are also before(), after(), and compareTo() methods in Calendar.
    Message was edited by:
    jbish

  • Validate the records in table maintainence generator

    hi to all experts,
    this is raj.............
    i have query to ask to all experts...
    "i have to validate the records or entries before populating
    into the table using table maintainence generator"
    can anybody help out in this...
    regards,
    raj
    Edited by: Julius Bussche on Oct 24, 2008 11:52 AM

    hi...
    write u r code in the screen number spicefied ...in PAI
    MODULE CHECK_BEFORE_INSERT  ON CHAIN-REQUEST.
    in this module u can write code for validation
    thanks
    sam

  • I have a field I want to have a sql statemnet validate the data entered....

    What I have is a field that I want 5 acceptable entries, and only those entries able to be submitted. So if the acceptable entry is dog and someone enters cat, I want to force an error.
    Anyone want to show me how easy it is?

    One way the function could be written is: (this returns a BOOLEAN, so select a function that returns BOOLEAN)...also, there are many other ways to write the same thing, you could use exists or an exception that uses the no_data_found error, too....You can specify your error message in the validation process.
    This is one way...using FIELD1 as the field from ITEMS that you are testing against, assuming that you have 5 records in ITEMS, that each are valid for your P1_TEST_ITEM field:
    declare
    v_cnt number;
    begin
    select count(rownum) from ITEMS
    where FIELD1 in (:P1_TEST_ITEM);
    if v_cnt>0 then
    return true;
    else
    return false;
    end if;
    exception
    when others
    return false;
    end;
    Now, if you have a list of 5 items that never change, you could also do it like this:
    declare
    v_cnt number;
    begin
    if :P1_TEST_ITEM in ('DOG','ITEM2','ITEM3'...)
    then
    return true;
    else
    return false;
    end if;
    exception
    when others
    return false;
    end;
    I guess I am not exactly sure why you don't want to use a LOV, that would be simple if all of your items are in your ITEMS table, then all you would have to do is create the LOV as
    select item_no d, item_no r
    from ITEMS
    order by 1
    you could further limit this to 5 items with a where clause ... where item_no in ('DOG','ITEM2'...)
    Message was edited by:
    DJMiller

  • How can I Validate all fields of the form and show validation summary?

    Hello,
    I am building a dynamic form with livecycle. I need to implement two fetures:
    1. Show the user all invalid fields of the form when he tries to submit it (show him validation summary) and guide him to correct the errors.
    2. Remove the highlight frame from mandatory fields after user enters his input.
    Thanks a lot in advance,
    Peter.

    Okey once more a try...
    Normally you don't get a list of the fields that didn't pass the validation. So, you have to script the list by yourself!
    If you put the validation script in the exit field that means if the user doesn't enter the field, the script won't be executed.
    You could make an additional script into presave, presubmit, validate or whatever that will force the user to go to the field.
    For example make a field only mandatory if the user doesn't enter anything.
    Way to make mandatory fields that won't be shown if the user had provided response
    if (this.rawValue == null) {
    this.validate.nullTest = "error";
    this.edge.color.value = "255,0,0";
    this.assist.toolTip.value = "This field is mandatory, please provide a response...";
    xfa.layout.relayout();
    else {
    this.validate.nullTest = "disabled";
    this.border.edge.color.value = "255,255,255";
    this.assist.toolTip.value = "This field is optional...";
    xfa.layout.relayout();
    Will JUST get mandatory if the user doesn't provide response. (Is an older script I got here and changed slightly for you.)
    Do the parts in the event that should "fire" them. Probably divide it into two parts with two if statements instead of the else...
    Think good about the event!
    Way to make a list of what things the user has forgotten!
    You can make an invisible TextField that will be shown AND populated if the user tries to submit something invalid.
    Calculate Event of the Textfield:
    this.rawValue = " "
    if (Dezimalfeld1.rawValue == null)
    {this.rawValue = this.rawValue + "*Please enter something into Dezimalfield1, Page1,...                                                    ";}
    if (Dezimalfeld2.rawValue == null)
    {this.rawValue = this.rawValue + "*Please enter something into Dezimalfield1, Page1,...                                                    ";}
    (Of course you've got to name the fields exactly.
    All scripts are JAVASCRIPT!)

  • How do I stop Firefox entering my username and password into other fields on pages that are not the log-in page?

    On a website I need for my work, I must log-in with username & password. Firefox remembers my name & password perfectly. However, in another section on that same website, when I am filling in calendar information, it enters my my username in the "Location" field. Unfortunately, that is my work ID which is confidential. When I don't notice, it posts it on the very public calendar. Also, it enters my password into a password field (masked), so that no one can rsvp.
    It doesn't appear that I can edit the Saved Passwords/Exception in Firefox Options, so I am looking for suggestions!
    I want the saved name password at http://workname.com
    but not incorrectly at http://workname.com/info/*.*

    If there is a password field on a web page and you have saved a password then Firefox may try to fill that password and enter the name in the field just above that password field.
    You can look at:
    * Saved Password Editor: https://addons.mozilla.org/firefox/addon/60265
    *Form History Control: https://addons.mozilla.org/firefox/addon/12021
    You may want to disable saved form fill to prevent Firefox from filling the name.
    * [[Form autocomplete]]
    * http://kb.mozillazine.org/Deleting_autocomplete_entries

  • How to validate the field values in module pool program?

    Hi Guys
         I am working with module pool programming.
         Here I want to validate the fields like below.
         with out filling all the fields if I click SAVE option it has to show a message that all fields has to be filled.  This can be done by checking all the fields individually.
         I think it can be done through <b>LOOP AT SCREEN ......ENDLOOP</b>. sequence.
         If it is possible, can anyone help me?

    You need to write the Module in between the CHAIN and ENDCHAIN statment in SE51
    If you send a warning or error message from a module <mod> that you called using a FIELD statement as follows:
    CHAIN.
    FIELD: <f1>, <f 2>,...
    MODULE <mod1>.
    FIELD: <g1>, <g 2>,...
    MODULE <mod2>.
    ENDCHAIN.
    all of the fields on the screen that belong to the processing chain (all of the fields listed in the field statements) are made ready for input again. Other fields are not ready for input. Whenever the MODULE statement appears within a processing chain, even if there is only one FIELD attached to it, all of the fields in the chain (not only the affected field) are made ready for input again, allowing the user to enter new values. If the fields in the processing chain are only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.
    Look at the DEMO program DEMO_DYNPRO_FIELD_CHAIN.
    ashish

  • How to validate date fields in the flash form

    i want to validate the date fields to make sure the values
    are not greater than today's date and from-date is less than or
    equal to to-date in the flash form. Does the actionscript have a CF
    DateDiff function for the validatation?
    Thanks

    I finally (after much reading up on actionscript) figured out
    my problem with date validation...which was similar to yours...
    I posted the solution I found for my AS date validation issue
    here:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=22&threadid=1232361
    I hope it helps!!!

  • Do you have to ID the field for autotab to work?

    I have a form with text fields I'm using to caputre dates of service. It has the following fields
    Month1, Day1, Year1, ToMonth1, ToDay1, ToYear1. They are each set to a max char value of 2.
    I would like the PDF to AutoTab to the next field when the current one has reached its max.
    I found the following code:
    // Document-level function
    function tab_next(next_field_name) {
        // Move to next field if Enter key is pressed
        // or the user has clicked outside of the field
        // or if the number of character is the character limit
        if (event.willCommit || AFMergeChange(event).length === event.target.charLimit) {
            getField(next_field_name).setFocus();
    Then call it like this as the Keystroke script of a text field:
    // Autotab to the "Day1" field
    tab_next("Day1");
    This code works, but I need to add a keystroke script to every text field. And in the example, I have Month1, Day 1, Year1... well, the actual form goes up to Month11, Day11, and Year11.
    Coding each field with a custom script, naming the next field to auto tab to.... this seems tedious. Is there a way to modify the code, so rather than defining what field to autotab to next, it should look at the tab order, and go to the next one without having to specifiy it specifically.
    Is there a way to code it, so it autotabs to the field next on the tab list? Or must the field it autotabs to be specifically identified in each instance of the script.
    Thanks very much in advance.

    No. Part of the problem is the tab order is dynamic since it depends on the read-only and display state (hidden or not) of the fields, which can change at any time via scripting.
    You could come up with a field naming convention that could help, making it possible to determine the next field name based on the name of the field that called the script. Or you can set up an object or implement a linked list to specify the custom order, and the script could look up the next field based on the current field, but it might be simpler to just hard code the field names.

  • How to Validate the Text Field in JSF

    Hi,
    I am facing a issue to validate the text field where the below code accepts (space' ',underscore'_',pipe'|') symbol as a first character and last character.Where by it can accept in the middle.
    It should not accept special characters also. Below code is working properly for special characters.
    <tr>
    <td width="30%" align="right"><b><h:outputText id="aAccrualType" value="Accrual Type" /> </b> <span style="color:red">*</span></td>
    <td width="50%">: <h:inputText id="accrualType" value="#{accrualTypeMast.accrualType}" required="true" >          
    <t:validateRegExpr pattern="^[(a-z)||(A-Z)||(0-9)||(_)||(\s)||(/)]+$" />     
    <f:validateLength minimum="1" maximum="50"/>     
    </h:inputText>
    <h:message for="accrualType" showDetail="true" style="color:red" />
    </td>
    </tr>
    The thing is i dont have much knowledge in regular expression.
    Is there any other way to do this.
    Could anyone help me in this.
    Thanks,
    Ambika&#9786;

    This has nothing to do with JSF.
    I suggest you to read the Pattern API documentation [1]. You can easily create a small Java Application and test the regexp using String#matches() as it uses the same regexp guidelines.
    public static void main(String[] args) {
        String regexp = "^[a-z]+$";
        String value = "foo";
        boolean match = value.matches(regexp);
        System.out.println(value + " matches " + regexp + ": " + match);
    }[1] http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html

  • How to validate the field when i am populating the data cursor to block

    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.

    902434 wrote:
    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.If you want to validate at entry level then use When-Validate-Item trigger and check the input and show message. Like
    If :quentity <0 then
    message('do not enter negative value');
    message('do not enter negative value');
    raise form_trigger_failure;
    end if;Why u open same thread again ? not closing one.. check this one
    </a>
    How to validate the field when i am populating the data cursor to block
    Hopes this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • How to validate the input field

    Hi,
    I have a input form which is draged from input port of a RFC.
    in this input form i have two input fields nad submit button.
    on of this input field should always take the character values only. it should not take any numeric value
    and other input field should always take numeric value only.
    i.e how to validate this two input fields.
    regards
    srinivas

    Hi,
    U can validate input fields using javascript.Write OnClientClick function for that submit button if ur using htmlb or onClick if u r using html.Refer the follows
    http://help.sap.com/saphelp_nw70/helpdata/en/03/900e41a346ef6fe10000000a1550b0/frameset.htm
    There are two ways to achieve ur task.
    1.By checking for all alphabets.in this u need check all the alphabetic characters one by one.Refer the following
    http://www.shiningstar.net/articles/articles/javascript/javascriptvalidations.asp?ID=ROLLA
    http://www.shiningstar.net/articles/articles/javascript/checkNumeric.asp?ID=AW
    2.By using regular expressions.its very easy and a single line code.here u need to specify single expression for whole alphabets.Refer this
    http://aspzone.com/blogs/john/articles/173.aspx
    Everything has been given for validating in javascript.i hope u also validating in javascript only.
    For more details on "Regular expressions" search google.
    Regards,
    Tamil K

Maybe you are looking for

  • Report Execution time in NQQuery.log should be display in Milliseconds

    Report Execution time in NQQuery.log should be display in Milliseconds. For Example : --- Logical Query Summary Stats: Elapsed time 0, Response time 0, Compilation time 0 (seconds) Can we see the logical Query Summary Stats in milliseconds? If so Whe

  • How to insert a new customized user status in an existing business transaction?

    Hi Gurus: We have a service request where we need a new user status, but I have in a productive system service requests created already. We customized the new user status for the transaction type that we are using, but how to retrieve in the old busi

  • Mocha tracking not working when applied to AE clip

    Thank you in advance for reading this. I'm a complete newbie to AE and, frankly, video editing in general. I'm trying to replace faces in a video with png pictures. I'm really not trying to go for the professional look and my skills wouldn't allow it

  • Tape Drives and TAR

    Hi all, I have a two part question. First, is there a command (probably MOUNT) in unix/linix (whatever OS X uses) to mount a SCSI LTO-4 tape drive? Second, what is the switches in TAR to write an archive to that tape drive. David

  • Graphes déroulants empilés (stacked plots)

    Bonjour, J'aimerais savoir s'il existe un moyen de faire un graphe déroulant "empilé" (chaque graphe possédant sa propre origine et échelle en y), mais dont les zones de tracés ne sont pas séparées. Ceci équivaut à un graphe déroulant (multi-trace) s