How can more than one value be assigned to a variable in ODI

Hi,
I am inserting 2 values in  DB Table.
I want to get both the values in a single variable in ODI.
Pls tell me how can it be done?
Thanks in advance.

Hi Deca,
Can you pls tell me is the following code fine or not?
<?xml version = '1.0' encoding = 'UTF8'?>
<EmpodiCollection xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/tar" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <Empodi xmlns="">
      <empid>1</empid>
      <empname>ani</empname>
      <bonus>#SOA_ODI_SALARY*0.1</bonus>
      <annualsalary>#SOA_ODI_SALARY*12</annualsalary>
   </Empodi>
</EmpodiCollection>
here #SOA_ODI_SALARY is a variable which is calculating salary from a table src_ws_soa_odi having the code as  select Basic_sal from src_ws_soa_odi.
Actually the problem we are facing is that this transformation #SOA_ODI_SALARY*0.1 needs to be mapped in a bpel component as its input, but when i am checking the payload of the bpel component it is showing as follows :
<message>
<properties>
<property  name="tracking.compositeInstanceId"  value="750014"/>  
<property  name="tracking.ecid"  value="449b4b64fa2729cc:-5b3fd395:140c49e9de6:-8000-00000000000505cc"/>
<property  name="transport.http.remoteAddress"  value="172.18.22.193"/>
</properties>
<parts>
<part  name="request">
<EmpodiCollection>
<Empodi>
<empid>1</empid>  
<empname>ani</empname>
<bonus>3400*0.1</bonus>
<annualsalary>3400*12</annualsalary>
</Empodi>
</EmpodiCollection>
</part>
</parts>
</message>
So from my observation I can see the calculation is not taking place in ODI, so pls let me know where i am doing wrong.
Your help is highly appreciated.
Thanks,
Anindya.

Similar Messages

  • How Calculate more than one value and store it into to different rows and column for each input?

    thx guys.....i have a progress now in LV
    But now i have new trouble here. Ok i attached my LV file (LV 7.0.1/7.1) and excel form. I just could'nt calculate more than one input value. I want a different result for each value that i enter ... and store it into different rows and column. But it just store at one row.
    Attachments:
    My Project.vi ‏31 KB
    rumus motor bakar.xls ‏14 KB

    duplicate post

  • How can more than one online log file be CURRENT?

    SQL> select * from v$log;
        GROUP#    THREAD#  SEQUENCE#      BYTES  BLOCKSIZE    MEMBERS ARC STATUS           FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
             1          1      73393   52428800        512          2 YES INACTIVE            1.2618E+13 09-SEP-13   1.2618E+13 09-SEP-13
             2          1      73394   52428800        512          2 YES INACTIVE            1.2618E+13 09-SEP-13   1.2618E+13 09-SEP-13
             3          2      64918   52428800        512          2 NO  CURRENT             1.2618E+13 09-SEP-13   2.8147E+14
             4          2      64917   52428800        512          2 YES INACTIVE            1.2618E+13 09-SEP-13   1.2618E+13 09-SEP-13
             5          1      73395   52428800        512          2 NO  CURRENT             1.2618E+13 09-SEP-13   2.8147E+14
             6          2      64916   52428800        512          2 YES INACTIVE            1.2618E+13 09-SEP-13   1.2618E+13 09-SEP-13
    6 rows selected.
    I found this in the oracle docs:
    "Oracle Database uses only one redo log files at a time to store redo records written from the redo log buffer. The redo log file that LGWR is actively writing to is called the current redo log file."

    this is where it confuses me actually.  I also thought about 2 nodes writing to 2 online log.  But when I was querying gv$log, I saw 4 CURRENT entries.
    SQL>  select * from gv$log;
       INST_ID     GROUP#    THREAD#  SEQUENCE#      BYTES  BLOCKSIZE    MEMBERS ARC STATUS           FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
             2          1          1      73393   52428800        512          2 YES INACTIVE            1.2618E+13 09-SEP-13   1.2618E+13 09-SEP-13
             2          2          1      73394   52428800        512          2 YES INACTIVE            1.2618E+13 09-SEP-13   1.2618E+13 09-SEP-13
             2          3          2      64918   52428800        512          2 NO  CURRENT             1.2618E+13 09-SEP-13   2.8147E+14
             2          4          2      64917   52428800        512          2 YES INACTIVE            1.2618E+13 09-SEP-13   1.2618E+13 09-SEP-13
             2          5          1      73395   52428800        512          2 NO  CURRENT             1.2618E+13 09-SEP-13   2.8147E+14
             2          6          2      64916   52428800        512          2 YES INACTIVE            1.2618E+13 09-SEP-13   1.2618E+13 09-SEP-13
             1          1          1      73393   52428800        512          2 YES INACTIVE            1.2618E+13 09-SEP-13   1.2618E+13 09-SEP-13
             1          2          1      73394   52428800        512          2 YES INACTIVE            1.2618E+13 09-SEP-13   1.2618E+13 09-SEP-13
             1          3          2      64918   52428800        512          2 NO  CURRENT             1.2618E+13 09-SEP-13   2.8147E+14
             1          4          2      64917   52428800        512          2 YES INACTIVE            1.2618E+13 09-SEP-13   1.2618E+13 09-SEP-13
             1          5          1      73395   52428800        512          2 NO  CURRENT             1.2618E+13 09-SEP-13   2.8147E+14
             1          6          2      64916   52428800        512          2 YES INACTIVE            1.2618E+13 09-SEP-13   1.2618E+13 09-SEP-13
    12 rows selected.
    SQL>
    Maybe the thread# is the key?  What does thread# mean here.  Oracle doc of thread# doesn't describe much:   ->  V$LOG

  • How to pass a variable more than one values?

    How to pass a variable more than one values?

    You can't.
    During 1 session, 1 ODI variable can have only 1 value at a time.
    If you need more than 1 value, you will have to do somethink like a loop inside your package, and refresh the variable value each time.

  • How to send more than one value to the Jump target report variable screen.

    Hi,
       I have two reports with Plant variable on their input variable screens. Say this Plant can take two values X and Y. The first report is executed with Plant value X and displays data. When a jump is made  to report two, Plant value X is retrievd into report two's plant varible value. Now how to send value Y also to Report two when jump is made. I think we can do it with a customer exit? Any help is appreciated
    Thanks
    Bhanu

    Hi Bhanu,
    I guess u have created a Variable with Sinlge value ,So Create a Variable which has Multiple Sinlge Values or Interval so that u can have more than one value and if u hvae more than value u will get data for those values and when u do a jump then u can see the data in the JUMP query for both the Values of Input.
    Rgds
    SVU123

  • Problem with Assigning more than one value to GROUP dynamically

    Hi,
    I have a problem with assigning more than one value to GROUP varible dynamically.
    I am able to assign only one value dynamically through Initialization block
    I have even tried with the ROW-WISE initialization blocks..
    using this query..
    SELECT 'GROUP', G.GROUP_NAME
    FROM GROUP_MAP G
    WHERE G.USER_NAME = ':USER'
    if GROUP_1, GROUP_2 are two groups to be associated,
    through this, i'm getting " GROUP_1;GROUP_2 " into GROUP variable ( seen from Narative view )
    And the properties and securities of this Groups are not inherited.
    Please let me know if there is any other way to Populate the GROUP variable dynamically with more than one value.
    Thank you.,

    Hi,
    i finally got in this way..
    i had created a function which takes USER_NAME as input and returns a string that contains the GROUP names with semicolon delimeted..
    Though it is same as that of ROW-WISE initialization,
    the properties of those groups are also being inherited..
    Now, i can assign more than one groups and its properties to a user dynamically.

  • How to pass more than one value for one column in procedure

    hi
    select id, name from col_tab where dept_name in ('ECE','CIVIL');
    when i was running this it is working well.
    CREATE OR REPLACE PACKAGE pack_str
    AS
    TYPE type_refcur IS REF CURSOR;
    PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
    END pack_str;
    CREATE OR REPLACE PACKAGE BODY pack_str
    AS
    PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
    IS
    BEGIN
    OPEN ans FOR
    select id,name from col_tab where dept_name in char_in ;
    END str;
    END pack_str;
    the package was created.
    my doubt is
    1.how to pass more than one value for char_in (e.g ('ECE','CIVIL'))
    2. when i was storing the value in string like val = 'ECE,CIVIL' ,
    how to get the id,name for ECE and CIVIL.
    plz help me

    Hi Rebekh ,
    I am recreating your packages for the desired output.
    CREATE OR REPLACE PACKAGE pack_str
    AS
         TYPE type_refcur IS REF CURSOR;
         PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
    END pack_str;
    CREATE OR REPLACE PACKAGE BODY pack_str
    AS
         PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
         IS
              lv_t varchar2(200);
         BEGIN
              lv_t := REPLACE(char_in,',',''',''');
              lv_t := 'select id,name from col_tab where dept_name in (''' || lv_t || ''')' ;
              OPEN ans FOR lv_t;
         END str;
    END pack_str;
    Note:-
    Input Parameter char_in is a comma seperated value for dept_name
    -Debamalya

  • Can Function Return more than One Values ??

    Hi Experts,
    I would like to ask you Can Function Return more than one values. I Used Function with Out and In out parameter and its working Fine..
    1. what is harm using Out and In out parameter in function
    2. if we can use Out and In out parameter in Function so what is deffernce between procedure and Function.
    3. Is there any Other Way Though which we can return more the One values in Function.
    Please advice me...
    Thanks
    Umesh Goel

    Yes/No.
    You can return multiple value from function. But, in PL/SQL and not in a SQL.
    The following examples demonstrate that -
    SQL*Plus: Release 9.2.0.1.0 - Production on Wed Mar 28 17:41:15 2007
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> create or replace package glob
      2  as
      3    b varchar2(20);
      4    c varchar2(20);
      5  end;
      6  /
    Package created.
    SQL>
    SQL> create or replace function test_mul_out(a in number)
      2  return number
      3  is
      4    cursor c1(eno in number)
      5    is
      6      select ename,job,sal
      7   from emp
      8   where empno = eno;
      9  
    10    rec c1%rowtype;
    11    d  number(10);
    12  begin
    13    open c1(a);
    14    loop
    15      fetch c1 into rec;
    16      exit when c1%notfound;
    17       glob.b:= rec.ename;
    18    glob.c:= rec.job;
    19    d:= rec.sal;
    20    end loop;
    21    close c1;
    22    return d;
    23  end;
    24  /
    Function created.
    SQL> set serveroutput on
    SQL>
    SQL> declare
      2    zz  number(10);
      3  begin
      4    select test_mul_out(7777)
      5    into zz
      6    from dual;
      7    
      8    dbms_output.put_line('Ename: '||glob.b);
      9    dbms_output.put_line('Job: '||glob.c);
    10    dbms_output.put_line('Sal: '||zz);
    11  end;
    12  /
    Ename: Avik
    Job: CLERK
    Sal: 3456
    PL/SQL procedure successfully completed.
    SQL> Regards.
    Satyaki De.

  • Can a method return more than one value?

    I was studying for my biology exam and I got bored and I started thinking and then I wandered if a method can return more than one value...?
    For example, if I want a method to return a row a column, I make a method that returns an int. But what if I want to return two ints? Or what If I want to return an integer and a string? Is it possible or do I have make two methods, each returning one thing?
    What I always did until now is is I want for example to return a few integers, I would store them in a String and then when I return the string, I parse the numbers out using stringtokenizer... but it doesn't look like the best way... and it's pretty annoying...

    I'm weak on terminology, hence I don't even know what
    AFAIK means...As Far As I Know
    This doesn't really make sense for me. It's more
    efficient to make a whole class just for two
    integers, than having two methods? Efficiency is not the point. The flow is.
    If you have two methods, the caller must be aware of both of them. The other way it's up to the callee.
    Just because the
    two integers are related to each other? Doesn't
    making a class require more memory usage than just
    making two one-line methods?The memory usage is not wholly irrelevant, but there are ways to handle that (caching, inlining, etc.).
    It's a bit hard to counter your point for me, but if you had done a lot of GUI painting stuff, you'd see all those Points, Dimensions, Rectangles, you name it, are quite invaluable.

  • Can oracle  function return more than one value

    Hi All
    please answer can oracle function return more than one value
    need one schenario
    regards

    Can any function, irrespective of the language, return multiple values?
    OF COURSE NOT!!
    So why do you think Oracle will now suddenly do it differently than all other languages? Never mind that it is impossible for a function (a unit/module of code) returning a memory address, to return multiple memory addresses. The machine code that does that, has not been yet been designed/implemented.
    I am continually amazed that this question is asked. It is about something so fundamental in almost every single 3rd and 4th generation language... something that is taught right at the start... the definition of what a procedure and what a function is.
    Sorry, but I simply cannot pull punches on this subject and smooth it over. There is something fundamentally wrong with your training as a programmer if you have to ask such a question about a function.
    And whatever programming skills you build on such a foundation, will be seriously lacking.
    I kindly suggest that you get back to the very basics of programming - and review and revisit until you fully understand it. There are no shortcuts in becomming a good programmer.
    Message was edited by:
    Billy Verreynne

  • Can we give more than one value for an Authorization field in Auth-Check.

    Hi all,
    Can we give more than one value for an Authorization field in Auth-Check.
    Ex: AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD <Value 1> <Value 2> <Value 3>.
    IF SY-SUBRC 0.
    MESSAGE E...
    ENDIF.
    If yes, please help me with exact syntax.
    Think it will be like
    ID 'CUSTTYPE' FIELD: <Value 1>, <Value 2>, <Value 3>.

    Hi,
    yes we can give more than one field.
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object> 
       ID <authority field 1> FIELD <field value 1>. 
       ID <authority field 2> FIELD <field value 2>. 
       ID <authority-field n> FIELD <field value n>. 
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    please reward points, if it is useful.
    satish.

  • Can we have properties value of keyfieldvalue more than one value?

    Hi all,
    Regards File content conversion that we can have properties value of keyfieldvalue more than one value?
    like a...
    row.keyFieldValue = 'aa','bb'
    I try define the value like this but I'm getting the error.
    Thanks and Regards
    Park

    Hi Park ,
    There is an option of specifying generic modules for every adapter that is configured in the communication channel to modify the payload of an XI message . These modules equip the adapters with additional functions.
    Please have a look upon the link :
    http://help.sap.com/saphelp_nw04/helpdata/en/84/2e3842cd38f83ae10000000a1550b0/content.htm
    I hope you can Module :'MessageTransformBean' .
    *Pls: Reward points if helpful*
    Regards,
    Jyoti

  • How many sign-on's are included when I purchase Photoshop and Illustrator? Can more than one person have access on separate computers?

    How many sign-on's are included when I purchase Photoshop and Illustrator? Can more than one person have access on separate computers?

    You have 2 activations and the licenses is tied to you personally and you only. You cannot let other people use your software (unless they are family).
    Mylenium

  • Can I store more than One value in HashMap using Same kay?

    Hi,
    I want to store more than one value in HashMap using same key................. is it possible?
    If yes, then please give me source code for that.....
    Thankx in Adv.......

    I want to store more than one value in HashMap using >same key................. is it possible?I don't think so
    Message was edited by:
    manuel.leiria

  • URGENT: passing more than one value at the same parameter

    Hello friends at www.oracle.com,
    if I have a Forms program that sends some parameters to a Report, how can I send more than one value at the same parameter that is being sent?
    For example: the Reports parameter P_CODE should receive (from Forms) and print the values 1, 2, 3 and 4, each one in a different page. But, only 4 is being printed, and these values aren't saved at a database, so I have to pass the other three values too. How can I solve this problem?
    This is quite urgent and I need help on this.
    Best regards,
    Franklin Gongalves Jr.
    [email protected]

    Thanks to Oracle Reports Team for answering! I'm sure this will work.
    Best regards,
    Franklin Gongalves Jr.
    [email protected]
    hello,
    on the forms side, you will have to build the list for this parameter by e.g. string concat.
    on the reports side you will have to "decode" this parameter according to how you built it in forms.
    e.g. if you pass the list like this "10~20~30" you might use a where-clause in the query
    ... where instr(myCol, :myParam) >0
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

Maybe you are looking for

  • Pages '08 document cannot be read properly in '09

    Hey guys, I'm currently working on my last major assignment for university, and I've written about 3 quarters of the assignment in Pages '08, however, when I open the document in Pages '09 - even though the settings and preferences are the same - the

  • Question mark instead of apostrophe

    In many webpages where there is supposed to be a apostrophe I see a blacked out question mark, as depicted below. Any ideas? In the central system, for example, the MX-980 can trigger sophisticated smart macros, RS232 and relay controls via a central

  • White Screen - total system failure

    I just purchased a new MacBook Pro, 1.83 GHz, serial # begins with W8614. I set up the AirPort wireless base and at first I could only get an internet connection right next to the base - I lost it if I moved farther away. I tried again later from the

  • Getting error when trying to sent outgoing email

    Eveytime I try to send an email forward to anyone I get an error message about password for outgoing mail. I have no clue what to do To fix this help please

  • Classroon in a book ?

    I have been sitting on Elements 6 for a long time. Now that I have time to start working with it.  I can't get classroom in a book to start, on the first page shown in the book, after the Organizer page. It goes right to the organizer, and skips what