Compare Value Validation

Hi :
i have two text boxes where one is upper limit and second is lower limit lower limit cannot be greater then upper limit now i have validated but when i give 10 and -12 its giving error please help me in modifying this code
declare
begin
if :P23_EV_LCL >= :P23_EV_UCL then
return 'EV LCL is Greater then UCL';
end if;
end;
please suggest thanks
Sudhir

What kind of validation are you using. From your posting it is not clear what kind of error
are you receiving. Please explain your problem step by step and remember that we can
not see what you have in front of you.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/apex/f?p=107:7
http://htmldb.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • Need to compare values in two columns of one table against values in two columns in another table

    Hi, as the title reads, I'm looking for an approach that will allow me to compare values in two columns of one table against values in two columns in another table.
    Say, for instance, here are my tables:
    Table1:
    Server,Login
    ABCDEF,JOHN
    ABCDEF,JANE
    FEDCBA,SEAN
    FEDCBA,SHAWN
    Table2:
    Server,Login
    ABCDEF,JOHN
    ABCDEF,JANE
    FEDCBA,SHAWN
    In comparing the two tables, I'd like my query to report the rows in table1 NOT found in table2. In this case, it'll be the 3rd row of table one:
    Server,Login
    FEDCBA,SEAN
    Thanks.

    create table Table1([Server] varchar(50), Login varchar(50))
    Insert into Table1 values ('ABCDEF','JOHN'),('ABCDEF','JANE'),('FEDCBA','SEAN'),('FEDCBA','SHAWN')
    create table Table2([Server] varchar(50), Login varchar(50))
    Insert into Table2 values ('ABCDEF','JOHN'),('ABCDEF','JANE'), ('FEDCBA','SHAWN')
    select [Server] ,Login from Table1
    Except
    select [Server] ,Login from Table2
    select [Server] ,Login from Table1 t1
    where not exists(Select 1 from Table2 where t1.[Server] = t1.[Server] AND Login=t1.Login)
    drop table Table1,Table2

  • Required UDF for comparing values within same context

    I have to compare values within the same context.I am getting boolean values for that field.If all the values in the same context are true,then the result should be true .Otherwise false  should be passed.
    If input is-
    <context>                                  
    true
    false
    true
    <context>
    true
    true
    <context>
    Output should be as-
    <context>
    false
    <context>
    true
    <context>
    Please suggest how to acheive this?..its urgent

    Hi,
    Check with this UDF
    Src>UDF>target
    public void context1(String[] a,ResultList result,Container container)
        int k = 0;
        int arrayLength = a.length;
        if (arrayLength > 0)
            String firstElement = a[0];
            for (int i = 1; i < arrayLength; ++i)
                   if(!(a<i>.equalsIgnoreCase(firstElement)))
                     k = 0;
                     break;
                   else
                     k = 1;
    if(k == 1)
        result.addValue("true");
    else
        result.addValue("false");

  • Preference determination threshold value valid to date

    Hi All,
    We have an issue with Preference threshold value valid to date for many materials. As per our understanding the threshold value to date should be 31.12.9999 for all materials, but many materials valid to date is ended with 3rd Aug 2011. We are not very sure how the system determined valid to date as 3rd Aug 2011 instead of 31.12.9999 for specific materials.
    Many C-LTVD's status is negative instead of positive due to wrong valid to date. The issue is in production system, not able to correct already issued C-LTVD's since revocation is not possible from negative to positive. Planning to re-issue manually prepared C-LTVD's to customer for impacred part numbers.
    Any idea what is teh root cause behind setting up the threshold value valid to date as 3rd Aug.
    Regards,
    Lakshmikanth

    Hi Jasmit,
    The issue not resolved yet, no idea what happend in the system for to date of threshold value validity.
    We provided report to list out of such part numbers and rectified manually.
    Thanks
    Lakshmikanth

  • Comparing values in different tables

    Hi,
    I am trying to compare values in two different table fields, can someone advise me of the ABAP to do it.
    I need to find IHPA-PARNR(partner number) in table T527X-ORGEH(org unit number)
    Thanks,
    Alec

    OK now I'm confused:
    I put a breakpoint as follows:
    SELECT * FROM t527x INTO TABLE it_t527x.                        
    LOOP AT it_ihpa INTO wa_ihpa.                                   
    READ TABLE it_t527x INTO wa_t527x WITH KEY orgeh = wa_ihpa-parnr
    BINARY SEARCH.                                                  
    IF sy-subrc EQ 0.                                               
    BREAK-POINT.                                                    
    WRITE: wa_t527X-ORGTX TO ZORGUNITTEXT.                          
    ELSE.                                                           
    WRITE: 'Damn it' TO ZORGUNITTEXT.                               
    ENDIF.                                                          
    ENDLOOP.          
    I have the correct values in the correct fields but still SUBRC does not = 0
    WA_T527X-ORGTX                 Stockton - Front of House      
    ZORGUNITTEXT                   Damn it                        
    WA_t527X-ORGEH                 20008855                       
    WA_IHPA-parnr                  20008855                       
    Whats Wrong?
    Edited by: Alec Fletcher on Dec 19, 2008 1:50 PM

  • How can I modify the application- validation- set- value validation

    Dear all :
    After I created a new value set( application->validation->set->value validation), I want to change the Type of the "value validation",how can I modify ?
    Regards
    Terry

    Dear all:
    Sorry, I found the answer in the metalink note :[ID 396369.1]     
    Regards
    Terry

  • Comparable[] items, Comparable value

    how can I change this
    public static boolean search(Comparable[] items, Comparable value, int low, int high) {
    if (low > high) return false;
             int middle = (low + high) / 2;
             if (items[middle].equals(value)) return true;
             if (value.compareTo(items[middle]) < 0) {
                 // recursively search the left part of the array
                 return search(items,  value,  low, middle-1);
             else {
                 // recursively search the right part of the array
                 return search(items, value, middle+1, high);
    TO
    public static boolean binarySearch(int[] nums, int value, int low, int high) {
    }

    By simply changing the method signature and the code?

  • How to compare value in input field to value in database?

    Hi all. I need to clear up if the value in the input field (e.g. input_field) is equal to at least one record in the field (e.g. name) in database table (e.g. customers), or not. The code should be like this:
    IF...
      message001.  "(there's such a record in database)
    ELSEIF...
      message002.  "(there's no such record in database)
    ENDIF.
    thanks all.

    Hi,
    I think u r asking about validating the selction screen and displaying a mess if that input is not in the DB right?
    AT SELECTION-SCREEN ON s_matnr.
    *Validate material no details
      PERFORM validate_matno.
    FORM validate_matno.
      SELECT SINGLE matnr INTO v_matnr
             FROM mara
             WHERE matnr IN s_matnr.
      IF sy-subrc NE 0.
        MESSAGE i128.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.
    Make sure that u are validating against the header table.
    say eg if u wnat t validate matnr in marc, then do as below.
    SELECT-OPTIONS: s_matnr FOR  marc-matnr.                  "Material No
    AT SELECTION-SCREEN ON s_matnr.
    *Validate material no details
      PERFORM validate_matno.
    FORM validate_matno.
    DATA: v_matnr LIEK mara-matnr.
      SELECT SINGLE matnr INTO v_matnr
             FROM <b>mara</b>
             WHERE matnr IN s_matnr.
      IF sy-subrc NE 0.
        MESSAGE i128.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.
    Dont select from marc.
    Hope this is clear.

  • How to compare values in table control

    Hi Experts,
    How to compare two values of a field in table control. Like the frist row of feld1 with the second row of field1.
    because when ever two values are same i need to display error message that we are entring duplicate entry.
    i have been tring for a very log time but not getting any solution for this.
    Thanks and Regards,
    Ashwin.

    you need to write in code for this..
    A possible solution is given below..
    Suppose your internal table fields are col1 and col2.
    in the loop .....endloop of yout internal table in your PAI..there will be  following(if your table control is made using wizard. otherwise you might have to add it..
    loop at itab.
    chain.
    field col1.
    field col2.
    "some module
    endchain.
    endloop.
    now make changes as shown to the above code..
    loop at itab.
    chain.
    field wa-col1.
    field wa-col2.
    module table_modify on chain-request.
    endchain.
    now in your program add module table modify.
    module table_modify input.
    read table itab with key col1(which shud be unique) = wa-col1 transporting no-fields.
    if sy-subrc = 0. " there exists another record with the same value
    message e001(your message class).
    endif.
    endmodule.
    i guess that shud work. get back if it dosnt.
    regards
    Suzie

  • How to compare value of two Combo Box

    I've two Combo Box(cbFirst & cbSecond). I want to compare the value that has been selected by the user and based on the result, output is displayed. In both Combo Box I've provided the value.
    Here is my code:
    var a:Number;
    var b:Number;
    function First(evt:Event):void{
        a = evt.target.value;
        trace(a);   
    cbFirst.addEventListener(Event.CHANGE, First);
    function Second(evt:Event):void{
        b = evt.target.value;
        trace(b);
    cbSecond.addEventListener(Event.CHANGE, Second);
    If (a > b){
         trace("a is greater")
    else
         trace(b is greater);
    The trace statement inside the functions are working fine and the correct value of a & b is printed. But the comparison in the if statement doesn't seem to work. Could you please help me out.

    there's a typo.  fix it or remove it:
    var a:Number;
    var b:Number;
    function First(evt:Event):void{
        a = evt.target.value;
    trace(a);
       compareF();
    cbFirst.addEventListener(Event.CHANGE, First);
    function Second(evt:Event):void{
        b = evt.target.value;
        trace(b);
    compareF()
    cbSecond.addEventListener(Event.CHANGE, Second);
    function compareF(){
    If (a > b){
         trace("a is greater")
    else
         trace(b is greater);

  • How can I compare values in a multiple records block

    I have a form with multiples records whit a date in each record. I need test if the date typed in record 2 is greather than the date on record 1, if the date typed in record 3 is greather than the date on record 1 and so on. How cai I do it???is grather than the date on record 1

    Pedro,
    Venelin's code works perfectly, but if you try to use it in a When-Validate-Item or When-Validate-Record trigger, it won't work since you can't invoke navigation routines (FIRST_RECORD, NEXT_RECORD) from these two triggers (among others).
    First, we have to understand that Forms wasn't built to perform multi-row validations. It's a fact.
    Second, the way I prefer to do this is: let the user enter the data as he wants.
    When he commits, in a POST-FORMS-COMMIT trigger, you can check the values using SELECT statements, because they are already written to the data tables. If you don't like them, just issue a RAISE FORM_TRIGGER_FAILURE and the transaction gets rollbacked (and the inserts will be undone).
    Hope this helps,
    Pedro das Neves

  • How to compare values in collection.

    Hi,
    I am using oracle 11g XE, I am doing a validation using bulk collect collection.
    DECLARE
    TYPE TEM IS TABLE OF VARCHAR2(1000);
    EM TEM;
    P_MAIL VARCHAR2(1000);
    BEGIN
    P_MAIL := UPPER('[email protected]');
    SELECT EMAIL BULK COLLECT INTO EM FROM
    SELECT UPPER(EMAIL_ID)   AS  EMAIL FROM SONARA_CONSULTANT_DETAILS
    UNION
    SELECT EMAIL_ID_2 AS  EMAIL FROM SONARA_CONSULTANT_DETAILS
    ) WHERE EMAIL IS NOT NULL;
      FOR I IN EM.FIRST..EM.LAST LOOP  
        IF  P_MAIL = EM(I) THEN    // Here i am comparing the mail id with collection but it always goes to INVALID
        DBMS_OUTPUT.PUT_LINE('VALID');       
         ELSE
         DBMS_OUTPUT.PUT_LINE('INVALID');       
        END IF;
      END LOOP;
    END;
    } Please suggest me how to do the comparison
    Thanks
    Sudhir

    It seems that you don't compare everywhere in uppercase, so for me this is rather a letter case problem in your string addresses. The following works for me
    DECLARE
        TYPE TEM IS TABLE OF VARCHAR2(1000);
        EM TEM;
        P_EMAIL VARCHAR2(1000) := '[email protected]';
    BEGIN
        WITH SONARA_CONSULTANT_DETAILS AS
            SELECT '[email protected]' AS emailAddr FROM DUAL UNION
            SELECT '[email protected]' AS emailAddr FROM DUAL UNION
            SELECT '[email protected]'  AS emailAddr FROM DUAL UNION
            SELECT '[email protected]' AS emailAddr FROM DUAL UNION
            SELECT '[email protected]' AS emailAddr FROM DUAL UNION
            SELECT '[email protected]' AS emailAddr FROM DUAL UNION
            SELECT '[email protected]' AS emailAddr FROM DUAL UNION
            SELECT '[email protected]' AS emailAddr FROM DUAL
        SELECT emailAddr BULK COLLECT INTO EM
        FROM SONARA_CONSULTANT_DETAILS;
        FOR indx IN EM.FIRST .. EM.LAST
        LOOP
            IF UPPER(P_EMAIL) = UPPER(EM(indx))
            THEN
                DBMS_OUTPUT.PUT_LINE('VALID');
            ELSE
                DBMS_OUTPUT.PUT_LINE('INVALID');
            END IF;
        END LOOP;
    END;
    /Which gives me the following result
    INVALID
    INVALID
    INVALID
    INVALID
    INVALID
    INVALID
    INVALID
    VALID
    PL/SQL procedure successfully completed.
    SQL> Regards,
    Dariyoosh

  • Net Value Validation for Order

    Dear All,
    We want to put the validation while raising Order that if the Order Net Value goes below 100 Euro we want to charge the Customer Freight charges.
    We do have the Condtion created for freght charges which is manual header condition.
    How I can put this validation? I already tried using User Exit MV45AFZZ.
    Thanx in Advance

    Hi Murli,
    Thanx..I have tried to create the Routine using VOFM but that routines are get activated on at the time of billing I want it @ Order Level.
    Thanx
    Vishal

  • Action Script value Validation

    HI Guys,
    I hope this email finds everyone well on this 'hump day.'
    I just have a question on actions scripts.
    Sometimes, my attributes have list values, but in doing some quality checking, some actions scripts I have loaded contain values not specified in the list for that attribute.
    What is the best way to prevent this? Validation after upload?  Looking for suggestions.
    Thank you, everyone.

    DRMRocks,
    Thank you for your reply.
    What if I DONT check off the overide function.  Would an action script fail that way if the action script inlucded a value NOT in the list of values for that attribute?
    Thank you.

  • How to compare values in resultset

    i am having problem in comparing result set values. Actually my store proc returns me the following resultset:
    Month | Year | Deductible | Troop | TDC | ReasonCode
    ------------|-----------|-----------------|------------|-------------|--------------------------
    January | 2008 | $100.0 | $0.0 | $0.0 | 1
    ------------|-----------|-----------------|------------|--------------|--------------------------
    January | 2008 | $0.0 | $10.0 | $0.0 | 1
    ------------|-----------|---------------- |-------------|-------------|-------------------------
    January | 2008 | $0.0 | $0.0 | $20.0 | 1
    ------------|-----------|-----------------|-------------|-------------|-------------------------
    March | 2008 | $150.0 | $0.0 | $0.0 | 2
    ------------|-----------|-----------------|-------------|-------------|--------------------------
    March | 2008 | $0.0 | $15.0 | $0.0 | 2
    ------------|-----------|-----------------|-------------|-------------|-------------------------
    March | 2008 | $0.0 | $0.0 | $30.0 | 2
    i will compare month and year fields. i.e if year is same the compare month and if month is same (e.g. January) the first three row of the above table will be clubbed in one row i.e.
    Month | Year | Deductible | Troop | TDC | ReasonCode
    ------------|-----------|-----------------|------------|--------------|--------------------------
    January | 2008 | $100.0 | $10.0 | $20.0 | 1
    how can i do it in my result set?

    Learn SQL
    "Select Month, Year, SUM(Deductible), SUM(Troop), SUM(TDC), ReasonCode from table Group By Month, Year, ReasonCode"Otherwise, loop through the resultset and compare the fields you want to compare using .equals() and sum the values yourself (of course).

Maybe you are looking for

  • Not able to open Admin Tool in OBIEE 10.1.3.1 after the installation

    Hi Friends, After installing OBIEE (10.1.3.4.1 in Windows) i am not able to open Admin tool,when i click on the Administration it doesnt respond and i dont see any error message either.i have installed 10.1.3.1 several times before and i never faced

  • How to clean the Stuck Workflow activities in oracle application 11i

    Hi All, Can anyone please give me the steps/Metalink Doc ID about how to clean the stuck workflow activities in Oracle Apps 11i. Thanks, Dinesh.

  • IDOC unicode issue (character #)

    Hi A user exit fills posting items in SAP HR payroll posting with a text in russian language. This value is stored correctly in table PPDIT. We have different ALE target systems in the distirbution model for different company codes. All the RFCs are

  • How do i remove an account from my ipad and apps store

    Hi my mother inlaw has given me her i pad as she never uses it, the problem is i have set up my own account on itunes but when i go to app store its her email address and pass word it asks for. how do i remove these details from my ipad and how can i

  • Failed to load configuration file for the workflow

    There are two of us who have full control on our Sharepoint 2013 site. I'm able to create workflows and publish them fine. The other user is able to create workflows, but he gets an error when trying to run them. I  tried opening his workflow and got