Comparing 3 values at a time

Hi,
Is it possible to compare 3 values at a shot and map accordingly.
say if there are A1,A2 and A3 - can we compare all the three and assign a respective value to target field?
i.e, if A1 then 10, if A2 then 20 and if A3 then send blank.
I am able to compare only 2 values using if-else condition.
Please provide the inputs for the same.
Regards,
Rajkamal

yes you can compare using graphical functions and udf too..
graphical function use AND Functions
A1---------------
                          BOOLEAN EUQLS-------------
CONSTANT[10]--                                                                               
AND FUNCTION-
A1---------------
                          BOOLEAN EUQLS-------------
CONSTANT[20]--                                                                               
ANDFUNCTION              ------->Target
                                                                                A1---------------
                          BOOLEAN EUQLS-------------
CONSTANT[value]--
or use udf
pass three arguments as inout
If(A==10&&A2==20&&A3==30)
RETUNRN expected result.
Regards.
Raj
some ssmal chnages rwquired,i have not tersted this

Similar Messages

  • Entering charct. values at the time of GR

    Hi All...
    We have a Issue regarding raw material receiptu2026
    We r getting Ores (ROH) from different parties, they send test certificate with every lot. We need to enter the % of nickel or Chrome etc at the time of GR for PO. After that stock will move to quality stock where they will check the parameters and record. Purchase dept will compare the results.
    I tried this by giving Material class (001) for the material, but itu2019s not asking the characteristic value at the time of GR.
    My requirement is at the time of GR, system should ask the characteristic value..we dont want to manage stock in batches..
    Please share ur thoughts.
    srini

    During GR U can only enter Characteristics Value for Batch Class under Classification. For which Material should be Batch managed and use calss type 022 (if batches are at plant level) or 023 (if batches are material or client level). Create a class type of 022 or 023 and assign to Materail master and also activate batch management for the material and then try to create GR, it will allow to enter the values for characteristics.

  • Compare two months with time-dependent master data

    Hi gurus,
    I have the requirement to make a query that compares values from two months but the key figures are restricted by a time-dependent atributte, I created a structure restricted with an Exit-variable that fills the month in course and the month before, the issue is that query designer only accepts individual variables so only one month displays data.
    Is there a way to use several key-dates so the time-dependent attributes can be used for especific months?
    Regards,
    Gerardo.

    Thanks Raj,
    If there´s no other option I will include attributes in cube. Check if points are correctly assigned
    Regards,
    Gerardo

  • Select more than one value at a time from an LOV?

    Is it possible to configure an LOV-based text field so more than one value at a time can be chosen from the drop-down LOV list? This is a user requirement for specifying multiple values in an SQL WHERE clause.

    Rather several select fields because single returned value is a functional limitation of <select>.

  • 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");

  • Value only one time displayed

    Hello all,
    one question: I have a report region. In one column a value is several times among each other. What can I do, the same values display only one time?
    Thanks a lot!
    Regards
    Daniel

    Daniel,
    Not sure if I have exactly understood your question but are you talking about Break Formatting? So that a report will display like:
    CATEGORY | PRODUCT
    Computer - Monitor
    - Keyboard
    - Mouse
    Car - Wheel
    - Engine
    - Gears
    instead of:
    Computer - Monitor
    Computer - Keyboard
    Computer - Mouse
    Car - Wheel
    Car - Engine
    Car - Gears
    If so, you'll want to investigate Break Formatting in your Report Attributes or look in the Help for more details on this.
    Sorry if that's not what you meant...
    Andy

  • Can I use macros and set values at compiling time?

    Hi, Java uses macros?
    I need control some functionality that only appear while Debugging (Windows specific, Linux specific, GUI's, Env), something like:
    #if DEBUG_WIN
    monitor.showDialog();
    #endif;
    or
    #if DEBUG_NO_X
    monitor.showLog();
    #endif
    Something like C or C++?
    And also set some values at compiling time, or values for the source code?, something, like:
    #define DEVS_NOT_BROKEN
    int devsEnabled = DEVS_NOT_BROKEN;
    Thanks!

    Yes, I think that too.
    But I don't wan't open sources files and modify values. I was thinking in use differents targets in ant's build.xml and easy generate differents debug profiles.
    Also I want set values at compiling time:
    #define SOCKETS_ASKED_FOR
    int sockets = SOCKETS_ASKED_FOR;Thanks, i keep searching solutions, "preprocessor search time".

  • Can I configure the BTREE compare function at search time?

    Hi, all,
    I was implementing the 'order by' feature on top of BDB. The problem I met is the "reverse order", that means 'order by xxx desc'.
    BDB provides cursor->get API that is used to do search, with flags of 'DB_SET_RANGE', 'DB_GET_BOTH_RANGE'. This is perfect when do 'order by xxx asc' search.
    But when I do reverse search, it is complicated, because such as 'DB_SET_RANGE', they find the record that is equal or large than, not equal or less than, this situation becomes even more complicated when the records is duplicated(I need move the cursor forward and back, back and forword). My question is, is there a way to specify the Btree compare function at search time? Now I can only find a way to specify the compare function when the db is created. If there are options that can reverse the compare function at search time, also things done.
    Thanks very much!
    Regards,
    Steve
    Edited by: Steve Chu on Jun 4, 2009 4:42 PM

    Hi,
    It is not possible to change the btree comparison function after the database has been created. It needs to return consistent results at all times, or the internal btree structure will become corrupt.
    I don't really understand the issue you are facing. Can't you do a DBC->get(DB_SET_RANGE) call, and then walk the cursor backwards? That is if the position returned from the DBC->get(DB_SET_RANGE) is not equal to the requested key, call DBC->get(DB_PREV) before iterating any further?
    It is possible to control the behavior of the previous/next operations on cursors in relation to duplicate sets by using the correct flags. See the documentation for [DB_PREV_NODUP|http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/dbc_get.html#DB_PREV_NODUP]. You can see the other related flags documented on the same page.
    Regards,
    Alex Gorrod, Oracle Berkeley DB

  • Problem in updating value at different time interval

    Hello,
    Can anyonce suggest me how to update different value at different time interval.
    I want to use only one while loop but I should be able to send data at different rate.
    Eg:- I have 3 input ,10,20,30
    I need to give output 10 at every 5 ms
    20 at every 10th sec
    30th at every 13th sec.
    so my output should be
    10 at 5th sec
    10 at 10 sec
    20 at 10th sec
    30th at 13th sec.
    Please let me know if anyone has solution for it.

    Is this under windows on in a realtime system?
    In the varous posts, you are sometimes talking about milliseconds, sometimes about seconds
    You could run a timed loop at 5ms time and use quotient and remainder for each multiple with three parallel case structures.
    Here's a possible solution for the case:
    output 10 at every 5 ms
    20 at every 10th sec
    30th at every 13th sec.
    as in the original post...
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    VariousTimes.png ‏8 KB

  • Daily max(value) query for time period

    I am looking to get the maximum value for every 24 hour period for a month. So for example my date range can be defined by...
    select to_date('&date','mm yyyy')-1 + level as DateRange
    from dual
    connect by level <= '&days'
    ...where I can provide the first date of the month and number of days in the month or a lesser value if less time is required. So, the results of the above query plus 24 for the range. I thought a some googling would provide me what I needed, but my search came up empty.
    I was hoping to do something like this...
    select utctime, max(value) from table where utctime between....
    Any guidance would be much appreciated!
    Thanks!

    Zewbie wrote:
    Sorry about that...Oracle 10.2.0.5
    create table x (utctime date,
    pointnumber int,
    value float)
    insert into x values (to_date('02022012 232221','mmddyyyy hh24miss'), 10, 3.245);
    insert into x values (to_date('02022012 202202','mmddyyyy hh24miss'), 13, 14.5);
    insert into x values (to_date('02024012 103421','mmddyyyy hh24miss'), 10, 23.245);
    insert into x values (to_date('02024012 042528','mmddyyyy hh24miss'), 10, 33.245);
    insert into x values (to_date('02028012 022321','mmddyyyy hh24miss'), 14, 32.245);
    insert into x values (to_date('02028012 205221','mmddyyyy hh24miss'), 10, 2.245);
    insert into x values (to_date('02029012 211421','mmddyyyy hh24miss'), 14, 1.4345);
    insert into x values (to_date('02029012 082221','mmddyyyy hh24miss'), 10, 3.245);Do you have dates 7000 years in the future, or ido you have typos?
    So a query of the above would provide max daily value based on a pointnumber such as 10 for a given period.What are the results you want from the given data?
    What role does pointnumber play in this problem?
    If you want something like this:
    A_DATE      POINTNUMBER  MAX_VALUE
    02-Feb-2012          10      3.245
    02-Feb-2012          13       14.5
    02-Feb-2012          14
    03-Feb-2012          10
    03-Feb-2012          13
    03-Feb-2012          14for the 2 days starting with February 2, 2012, then you can do this:
    WITH   days_wanted     AS
         SELECT  DATE '2012-02-02'     -- starting date
                  + LEVEL - 1     AS a_date
         FROM     dual
         CONNECT BY     LEVEL  <= 2     -- number of days wanted
    SELECT    d.a_date
    ,       x.pointnumber
    ,       MAX (x.value)   AS max_value
    FROM       days_wanted  d
    LEFT OUTER JOIN        x  PARTITION BY (x.pointnumber)
                                   ON  TRUNC (x.utctime)  = d.a_date
    -- WHERE  x.pointnumber       = 10         -- If wanted
    GROUP BY  d.a_date, x.pointnumber
    ORDER BY  d.a_date, x.pointnumber
    ;

  • 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

  • [Forum FAQ] How do I have Invoke-SqlCmd return a date value without adding time

    Introduction
    A select statement executed from Invoke-SqlCmd returns a value from a Date column, the value has "12:00:00 AM" appended.  The same select statement executed within SQL Server Management Studio displays the date properly without any time formatting.
    Sample data is as follows:
    How to have Invoke-SqlCmd return Date values without adding time for multiple Date type columns and pipe the output into CSV file?
    Solution
    In SQL Server 2012 or onwards, use the FORMAT() function to convert datetime values to date format when executing query from Invoke-SqlCmd. In earlier versions such as SQL Server 2008 R2, use the traditional CONVERT() function to format datetime values to
    different date formats(yyyy.mm.dd, mm/dd/yyyy, etc) when executing query from Invoke-SqlCmd. Then pipe the output of SQL query result into CSV file by specifying export-csv parameter. An example is as follows.
    Create a table named “Test_invokesqlcmd” that contains Date type columns in SQL Server.
    USE Test
    Go
    CREATE TABLE [dbo].[Test_invokesqlcmd](
        [id] [int] NOT NULL,
        [name] [varchar](20) NULL,
        [test1] [date] NULL,
        [test2] [date] NULL
    ) ON [PRIMARY]
    GO
    insert into [dbo].[Test_invokesqlcmd]
    values(1,'David','2014-10-15','2015-01-07'),(2,'Jane','2011-08-05','2012-11-7'),(3,'Crystal','2013-09-15','2010-02-24')
    Define a query string, execute it from Invoke-SqlCmd and save the query result to a CSV file.
    Scripts for SQL Server 2012:
    $query1 = @"
        use Test;
        SELECT FORMAT(test1,'d') as newtest1, FORMAT(test2,'d') as newtest2 from dbo.Test_invokesqlcmd
    write-host $query1
    Invoke-Sqlcmd -Query $query1 -ServerInstance localhost | export-csv -notypeinformation -path c:\Files\test.csv
    Scripts for SQL Server 2008 R2:
    $query2 = @"
        Use Test;
        SELECT CONVERT(varchar, test1, 102) as newtest1,CONVERT(varchar, test2, 102) as newtest2
        FROM dbo. Test_invokesqlcmd
    write-host $query2
    Invoke-Sqlcmd -Query $query2 -ServerInstance localhost | export-csv -notypeinformation -path c:\Files\test.csv
    Check the results in SQL Server PowerShell window and csv file.
    SQL Server 2012:
    SQL Server 2008 R2:
    Reference
    Using the Invoke-Sqlcmd cmdlet
    SQL Server Functions that helps to convert date and time values to and from string literals and other date and time formats
    Applies to
    SQL Server 2014
    SQL Server 2012
    SQL Server 2008 R2
    SQL Server 2008
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Cross posted. More appropriate in JSF forum so continue conversation there.
    http://forum.java.sun.com/thread.jspa?threadID=717292&messageID=4142615#4142615

  • 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?

  • Different tax condition value at the time of GR as compared to PO

    Hi All,
    The issus is as follows ;
    We have maintained the tax condition type JIPC (Input Sales Tax) by t-code FV11 as 3% and subsequently created the PO.
    But when we are doing GR against the same PO in Accounting Document the GR/IR clearing Account is getting posted with the value of tax 2%(Non deductable tax).
    We have checked the validity period of condition type JIPC on day of GR is 3% only.Despite showing the PO screen 3% of non deductable tax accounting document of GR is picking the 2% of tax in GR/IR clearing account.
    Thx in advance.
    Shiwanshu

    Hi Anji ,
       thanks to reply. but my problem is some deffrent. I take an example for that:
    I am doing MIGO at this time PO price was 100 , VAT 4% condition JVRD now post this document suppose mat doc is 5900000021.
    I will get in my report
    Doc no.:5900000021
    price   :100
    VAT    : 4
    Condi: JVRD
    now some one make change in this PO like price 150 , VAT 3% condintio JVRN.
    if now i will execute my report then i will get.
    Doc no.:5900000021
    price   :150
    VAT    : 3
    Condi: JVRN
    but i need old data when GR wad post as above.

Maybe you are looking for

  • XML DATA INSERTION INTO TABLE

    I have xml data in this format and need to store in the lineitem table by generating three new values for each row ie line identifier(sys_guid),begin_date and end_date. <LineItems> <LineItem> <BASE_TYPE>SRV</BASE_TYPE> <ORDER_NUM>124089304</ORDER_NUM

  • How to use Lr and Ps on a networked storage media?

    I am using Photoshop & Lr3 in my daily work.  I have been for a long time desperately looking for a way to store and work on my images on a network environment, and could not find any!!!! I need to be able to color correct the images on Lr and do the

  • Why won't my computer recognise my ipod?

    I have just installed an updated version of itunes on my laptop but I can't get it to reccognise my ipod. Any suggestions?

  • Best Approach for Reporting on SAP HANA Views

    Hi, Kindly provide information w.r.t the best approach for the reporting on HANA views for the architecture displayed below: We are on a lookout for information mainly around the following points: There are two reporting options which are known to us

  • Extract field error

    I have the following select to extract a date containing month and year from a varchar2 column select to_char(sau_date,'MM') MONTH,extract(year from sau_date) YEAR, count(*) COUNT from mac.sysaud group by to_char(sau_date,'MM'),extract(year from sau_