Multiple input arguments in User defined funcions

Hi Experts,
   I have a file to proxy sceanrio.Have to do one to one mapping of all the corresponding fields except 3 fields. for eg
1)  - <Services>
          <DisplayValue>Tax>Business Tax</DisplayValue>
       </Services>
Sender                                                                            Receiver
=====                                                                            ========
Tax                                                                                Functions
under the services tag the "Tax" is one of the  sender's field .I need to map this "Tag" to the receiver field called as "function".My question is: can we do wz some user defined functions  or we have to use java functions.If we use Java,what way we can implement in PI 7.1 because,i guess we can not use the multiple input arguments.
2)  similarly,
    - <LineOfBusiness>
           <DisplayValue>Consumer Markets>Retail</DisplayValue>
      </LineOfBusiness>
Sender                                                                            Receiver
=====                                                                            ========
Retail                                                                               Sector
Retail is one of the sender field.it should be mapped wz another field "Sector" at receiver side.how to pick up the retail field and map it to the receiver side.Is there any user define function for this or we have to write java code if we have to go for Java,how it will be implemented in PI 7.1
3)  similarly,
- <GeographicLocation>
<DisplayValue>Americas>North America>Null>United States & Virgin Isl.>United                 States,US,USA,United States of America</DisplayValue>
  </GeographicLocation>
Sender                                                                            Receiver
=====                                                                            ========
Americas                                                                           Region
North America                                                                    Sub region
Null                                                                                Area
UnitedStates,US,USA,United States of America                    Territory
As u all can see,the above corresponding sender fields should be mapped to Receiver fields.It all has coem under one line in XML.How to pick it up and map 1 to 1 at  the receiver side bcoz receiver wants it as a separate fields.Is there any user define function for this or we have to write java code if we have to go for Java,how it will be implemented in PI 7.1
Experts,please help me out as this is a live scenario.
Thanks in Advance
Veeru

Hi,
  here is the partial structure.pls have a look.
<Services>
  <DisplayValue>Tax>Business Tax</DisplayValue>
  </Services>
- <LineOfBusiness>
  <DisplayValue>Consumer Markets>Retail</DisplayValue>
  </LineOfBusiness>
- <GeographicLocation>
  <DisplayValue>Americas>North America>Null>United States & Virgin Isl.>United States,US,USA,United States of America</DisplayValue>
  </GeographicLocation>
I have to do mapping b/w tax and some receiver field and it is a 1 to 1 mapping.how to extract teh field "tax" from that beause there is also a field name "business tax ".
same with the field name  "Retail" .
and also with the field names Americas>North America>Null>United States & Virgin Isl.>United States,US,USA,United States of America
I have to extract one-one field and map to corresponding single fields at the receiver side.
Have i presented properly.
Please help me out.
Thanks
Veeru

Similar Messages

  • Multiple inputs from a user using the same variable !

    Hi Folks,
    I am trying out the following code block,which should ask the users to enter 3 different names using '&' operator & assign it to a variable v_ename every time the loop executes.
    declare
    type ename_table_type is table of
    emp.ename%type
    index by binary_integer
    ename_table ename_table_type
    begin
    for i in 1..3 loop
    ename_table( i ):= '&v_ename';
    dbms_output.put_line(ename_table(i));
    end loop;
    end
    The above code accepts a single input from the user & assigns the same input 3 times to "ename_table".thus the output shows the same name 3 times.
    Is it possible that we can have the user input 3 different names & then print them using the concept of Index by binary_integer ?
    Please help
    Thanks
    Om

    Server side PL/SQL is NOT designed for this kind of user interaction.
    the "&" character is intrepreted by the SQL*Plus application and before the PL/SQL block is submitted to the DB by the SQL*Plus application, it replaces each appearance of the &variable with the value entered. Once the block gets to the database, all it sees is a constant value - no more a variable name.
    &variable_name is a SQL*Plus application thing, not the database.
    Where will this type of logic will be eventually used? What client application will interact with the server side PL/SQL? You need to code this input logic in that client application.

  • Passing input parameter to User Defined Procedures in ODI

    Hi
    I have to develop a procedure with an update query as follows
    Update Rec_Count set status as 'Y' where TableName = 'Name of the table'
    Here the 'name of the table' should be sent as input parameter while executing the package and this has 9 values.
    Kindly help me resolve this issue.
    Thanks

    Hi,
    Create a variable
    eg :- VarName
    and your query should be
    Update Rec_Count set status as 'Y' where TableName = '#VarName'
    Steps in package:
    step 1 :-
    refresh the variable ,
    or assign the variable while executing the package.
    Step 2
    Your procedure
    This will take the variable value dynamically while executing
    Regards,
    Rathish
    Edited by: Rathish on Aug 18, 2009 3:38 PM

  • Accessing container element in the User Defined Function

    Hi All,
    I am accessing a container element in the user defined function.
    But it is not working. Actually i want to split a message(1800 records) into a batch of 200.
    But it goes in a infinite loop.
    Please can you tell me where i am wrong.
    Smita
    The code is :
    public void SplitMsg(String[] a,ResultList result,Container container){
    Object container1;
    String counter;
    int i,j=0;
    container1 = container.getParameter("value");
    if( container1 == null){
    counter  =  "0";
    else {     
         counter = container.toString();
         j = Integer.valueOf(counter).intValue();
    for ( i = j ; i <= j + 199 ; i++){
         if ( i  >= a.length){
              container.setParameter("value","9999999");
              break;
         result.addValue(a<i>);
         j += 200;
         counter = Integer.toString(j);
         container.setParameter("value", counter);

    Here is another way to accomplish what you wanted.
    For the target mapping, use this sequence for mapping
    Source element -> removeContext -> Your User-defined Function -> Target Element
    When defining User-Defined Function, select "Cache Queue" option.
    Since you are using removeContext before calling the UserDefined function, your input to the user defined function will be a String array without ResultList.CC.
    Now manipulate the array the way you want it, and build the ResultList result.
    After every 200 records, use method
    void addContextChange().
    This will insert the ResultList.CC at the appropriate places.
    Use Display Queue in the Mapping Editor to see the debug values.

  • User defined fields in SC with searchhelp ?

    is it possible to link a searchhelp to user defined fields in a shoppincart ?
    I have already defined 2 fields in ZINCL_EEW_PD_ITEM_CSF which I can see and edit when I create a shoppincart, but for 1 field I would like to add a searchhelp which connects to the backend for retrieval of possible values. is this possible ?
    kind regards
    arthur de smidt

    Hi Arthur,
    Yes, this is possible
    Follow the below text in note 672960 User-defined fields 2
    ===
    Search results                                                           
    You have the option to see user-defined fields in the list of search     
    results. To specify them, use the following structures depending on the  
    document type:                                                                               
    Doc.type Set type Structure name                                  
           SC HEADER INCL_EEW_PD_SEARCH_HDR_CSF_SC                           
           SC ITEM INCL_EEW_PD_SEARCH_ITM_CSF_SC                             
           PO HEADER INCL_EEW_PD_SEARCH_HDR_CSF_PO                           
           PO ITEM INCL_EEW_PD_SEARCH_ITM_CSF_PO                             
           QUOT HEADER INCL_EEW_PD_SEARCH_HDR_CSF_QUT                        
           CONF HEADER INCL_EEW_PD_SEARCH_HDR_CSF_CNF                        
           INV HEADER INCL_EEW_PD_SEARCH_HDR_CSF_INV                                                                               
    Search criteria                                                          
    You can also use user-defined fields as search criteria. To do this, you 
    have to set fields XINPUT and XDISPLAY to 'X' in table ET_FIELDS for the 
    fields you want to use in BADI BBP_CUF_BADI_2 in method MODIFY_SCREEN.   
    The so                                                                   
    The fields defined this way are displayed if you choose the 'Extended    
    search' link.                                                            
    ===
    Also the below notes may help,
    752586     Customer fields in extended classic scenario             
    732112     CUF. Customer fields on item level disappear             
    728782     CUF. Account assignment fields disappear when openi      
    710474     CUF. User-defined fields on search screen                
    683684     CUF. Values are not transferred from input help          
    672960     User-defined fields 2                                    
    458591     User-defined fields: Preparation and use
    Kind Regards,
    Matthew

  • Invoking methods on JMX with user defined objects.

    Hello, All.
    Here is the problem description: We need to expose methods on JMX which takes some object of user defined class. We are not able to do that. Meaning, it is not getting enabled and if we invoke through code it says exception with serialization things. So we tried to make user defined class to implement serialization by making it to implement Serializable [though just adding serialization id]. But still we are getting the same problem. So I think we are missing some small step; as we are completely new this we are looking for some help in how to provide methods on jmx which accepts arguments of user defined type.
    Thanks,
    Prasanna.

    When executing an operation via JMX using JConsole, I get the following error:
    Problem invoking getManifest : java.rmi.UnmarshallException: Error unmarshalling return: nested is: java.lang.ClassNotFoundException: foo.bar.InernalServiceException (no security manager: RMI class loader disabled)
    Code snippet:
    public ArrayList getManifest(String s) throws InternalServiceException, MBeanException{
    String path = ".\\foo_services.jar"; // Invalid path on purpose to test exception...
    File file = new File(path);
    FileInputStream fileInput;
    try {
    fileInput = new FileInputStream(file);
    } catch (FileNotFoundException e) {
    String msg = "The manifest file is not found in the given path";
    if (logger.isErrorEnabled()) logger.error(msg);
    throw new InternalServiceException(msg, ErrorConstants.JMX_FILE_NOT_FOUND);
    If I throw new RuntimeException(msg, e) instead of InternalServiceException(msg, ErrorConstants.JMX_FILE_NOT_FOUND), it works and I get the appropriate exception.
    What is the reason for this?

  • View Object with User Defined Type input

    I am trying to use a View Object with a query that requires a user defined object as an input parameter.
    I have the query working with a PreparedStatement, but would like to use a View Object.
    When I use the PreparedStatement, I prepare the user defined type data like this:
    // get the data into an object array
    Object[] wSRecObjArr = wSRec.getObjectArray();
    // set up rec descriptor
    StructDescriptor WSRecDescriptor = StructDescriptor.createDescriptor("WS_REC",conn);
    // populate the record struct
    STRUCT wSRecStruct = new STRUCT(WSRecDescriptor,conn,wSRecObjArr);
    Then I can use this in the PreparedStatement like this:
    OraclePreparedStatement stat = null;
    ResultSet rs = null;
    stat = (OraclePreparedStatement)conn.prepareStatement("Select test_pkg.test_function(?) FROM DUAL");
    stat.setSTRUCT(1, wSRecStruct);
    rs = stat.executeQuery();
    I would like to do the same process with a View Object instead of the PreparedStatement.
    My question is "How do I create the input objects"?
    I obtain the View Object from the Application Module using findViewObject(). I don't actually have a connection object to pass into the StructDescriptor.createDescriptor method.
    I have tried just using Java Object Arrays (Object[]) to pass the data, but that gave an error:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
    Any help or pointers are greatly appreciated.
    Thank you.
    Edited by: 942120 on May 1, 2013 8:45 AM
    Edited by: 942120 on May 1, 2013 8:46 AM
    Edited by: 942120 on May 1, 2013 9:05 AM
    Edited by: 942120 on May 1, 2013 9:06 AM

    Custom domains are the way to go.
    When I try to pass custom domains that represent my user defined types - it works.
    However, one of the functions requires a table of a user defined type be passed in.
    I tried creating a domain of the table type. It forces me to add a field during creation (in JDEV), so I tried adding a field of type Array of Element of the domain representing the user defined type.
    I populate the table by setting the field I created, but the table is empty in PL/SQL (TEST_TAB.COUNT = 0).
    I also tried passing the oracle.jbo.domain.Array object, but that produced an error:
    java.sql.SQLException: ORA-06553: PLS-306: wrong number or types of arguments in call
    I also tried passing Object[], but that produced an error:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
    How do I properly create, and pass an domain that represents a table of a user defined type?
    When I use a OraclePreparedStatement, I can pass a oracle.sql.ARRAY using stat.setARRAY.
    Thank you for the help you have provided, and any future advice.
    JDEV 10.1.2.3
    JDBC 10.2.0.5
    Edited by: 942120 on May 13, 2013 7:13 AM
    Edited by: 942120 on May 13, 2013 7:16 AM

  • User defined Variable with multiple value

    Hi Experts,
    customer requirement is the following:
    Build a layout in which to have in Lead Column the cost center characteristics, but not all cost center in master data but only those chosen by user with manual input. To achieve this goal i have created a variable of type characteristics (associatd to cost center CH) with replacement type "user defined values", then i have put this var in planning level. I have created a layout with Cost Center in Lead Column and set "all possible ch combination" in additional setting.
    Thanks to the varable created, the user can enter Cost Center value, but the problem is that he cannot select more than one single cost center value, for example:
    User want to see in layout CosCen1 and CosCen4, by now he can set variable in order to see the entire range from CosCen1 to CosCen4 (included all intermediate Cost Center) or to see only one between those 2 Cost Center, but it's not possible (or better i don't know how to..) to select both cost center and display the layout with ONLY those 2 Cost Center in Lead Column (CosCen1 and CosCen4).
    In other word, is it possible to set a variable with more than one single value without using range from-to?
    If not, does exist an alternative?
    Thanks in advance.
    Fabio

    Hi Fabio,
    It works as follows.
    let's say you have 3 multiple single lines for your cost center variable.
    once you are in the folder, select any single value & the layout is ready for planning with the corresponding cost center.
    now, select the "Cost center variable row" in the header of the folder within section "Name of Variable" & click on "Trash Can" icon to "Delete Selection" of variable.
    this basically deletes all the entered selections (3 entries) & displays for all.
    It works this way, because we don't have "resriction of values required by user".
    if am not wrong & correct me if am wrong,
    overall, this is nothing but equal to "planning level not restricted with any variable".
    I just tested this & the flaw in this is that, it is not only displaying for all the initially entered 3 lines but it displays for each & every cost center irrespective of the variable selections.
    hope it is clear.

  • How can i send user defined Object as a argument to the MBean methods in authentication provider to create user?

    I developed our own Authentication, Identity Assertion & Authorization providers
    for weblogic 8.1 SP1. In the authenticator MBean i have one method which takes
    user defined object as a argument and returns a user defined object. i am able
    to call all the methods which takes java objects(for example: String, int, ArrayList,
    HashMap, Etc...) as a argument and returns also a java object but when i user
    any user defined object then it gives exception. if in the argument i used user
    defined object then it is not able to call that method telling NoSuchMethodException.
    Is there any way to use user defined object as an argument to MBean method?
    can anyone please help us as we r in the final stage of the project?
    Thanks
    Lakshmi

    "Lakshmi Padhy" <[email protected]> wrote in message
    news:3fc2f50c$[email protected]..
    >
    I developed our own Authentication, Identity Assertion & Authorizationproviders
    for weblogic 8.1 SP1. In the authenticator MBean i have one method whichtakes
    user defined object as a argument and returns a user defined object. i amable
    to call all the methods which takes java objects(for example: String, int,ArrayList,
    HashMap, Etc...) as a argument and returns also a java object but when iuser
    any user defined object then it gives exception. if in the argument i useduser
    defined object then it is not able to call that method tellingNoSuchMethodException.
    >
    Is there any way to use user defined object as an argument to MBeanmethod?
    >
    I seem to remember that jmx only supports scalar datatypes. Ask in the
    weblogic.developer.interest.management newsgroup.

  • Label report with user defined input -

    I am trying to make a report that will print out the data onto avery labels 5163(which is 2 across u2013 5down =total 10 labels per sheet) with my information.  The program already sets your boundaries for the labels so thatu2019s not a issue. 
    My current select statement works somewhat : if I enter 1 inventory.itemnum and whatever qty I want it prints fine.  However when I enter multiple inventory.itemnums it prints each one of those itemnums at whatever qty I enter in the second parameter. So say I enter 2 itemnums and enter qty 2 to print- I get 2 labels of each item num.  Currently I this format I have the second parameter set to NOT allow multiple fields u2013 however when I change this to allow my report fails u2013 please see my info and layout stuff below
    Here is what I have:
    INVENTORY.ITEMNUM} = {?Control Id:} and
    {Sheet1_.Column1} <= {?number of labels}
    Inventory.itemnum u2013field from database
    {?Control Id:}---parameter 1
    {?number of labels}---parameter 2
    {Sheet1_.Column1}----excel table brought in as secondary database to serve as count feature for report u2013 currently set at 20 but can change from 20 to 10 or higher- whatever qty I want.  The most labels I will need for any 1 item is 24 u2013 but I can print 2 sheets of 10 then 1 of 4 if we reduce it to qty 10 in the table.
    I have 2 parameters that prompt for data
    Parameter 1: it prompts for .itemnum (I have this parameter set to allow multiple inputs of inventory.itemnum)
    Parameter 2: it prompts for qty of labels needed. currently not set to allow multiple numbers as I get a failure when I change my parameter to this.
    As my info above sits I can enter 1 random inventory.itemnum (parameter 1) and  a qty (parameter 2)(1-20 u2013 which is set by a table I built in excel 1-20 u2013 above which is sheet1_.column1)
    What I want to be able to do is
    1.     (Parameter 1 here)Enter inventory.itemnums from random  qtyu2019s of 1-10 at any given input time from user prompt in parameter
    2.     (parameter 2 here)Print label of qtys ranging from 1 label per each item to as many as 10 labels per item
    a.     For example: I enter
    b.     Parameter 1:
    c.     Xitem1.itemnum
    d.     Xitem2.itemnum
    e.     Xitem3.itemnum
    f.     Parameter 2:
    g.     Qty 1- is the amount of labels needed for xitem1(from parameter 1)
    h.     Qty 3- is the amount of labels needed for xitem2(u201C u201D)
    i.     Qty 6- is the amount of labels needed for xitem3(u201C u201C)
    3.     I need the qtys in parameter 2(labels to print) to work with the inventory.itemnums as they are entered in parameter 1.
    I have tried using arrays but they force me to use the same amount of data that I have clauses. Which does not work because I have varying amounts of labels needed at different time-If I have  2 labels and have more clauses than this the report fails. I will not always have 2 or 3 labels to make maybe more maybe less.
    Here is a example of what I was trying with arrays:
    {field.xitem}=(?item.num)[1] and
    {?qty}[1]>={numbertable.number})or
    {field.xitem}=(?item.num)[2] and
    {?qty}[2]>={numbertable.number})or  etc.,etcu2026u2026
    This would force me to input as many item.itemnums and qty labels as there are arrays or the report would fail.
    Edited by: max274 on Mar 30, 2009 3:11 PM

    max40385
    SELECT "INVENTORY"."ITEMNUM", "INVENTORY"."ORDERUNIT",
    "INVENTORY"."BINNUM", "INVENTORY"."MODELNUM",
    "ITEM"."DESCRIPTION", "POLINE"."ITEMNUM", "POLINE"."ENTERDATE",
    "POLINE"."PONUM", "POLINE"."ORDERQTY"
    FROM   "MAXIMO"."INVENTORY" "INVENTORY",
    "MAXIMO"."POLINE" "POLINE", "MAXIMO"."ITEM" "ITEM"
    WHERE  ("INVENTORY"."ITEMNUM"="POLINE"."ITEMNUM") AND ("POLINE"."ITEMNUM"="ITEM"."ITEMNUM") AND
    "POLINE"."PONUM"='24142' AND "POLINE"."ITEMNUM"='1201020021N'
    EXTERNAL JOIN POLINE.ORDERQTY>={?C:\Documents and Settings\kpowell\My Documents\test table.xls: Sheet1_.Column1}
    *****************my counting table here********
    C:\Documents and Settings\kpowell\My Documents\test table.xls
    SELECT `Sheet1_`.`Column1`
    FROM   `Sheet1$` `Sheet1_`
    WHERE  `Sheet1_`.`Column1`<={?max40385: POLINE.ORDERQTY}
    Here is my select statement
    POLINE.PONUM} > "23000" and
    {POLINE.PONUM}={?My Parameter} and
    {POLINE.ITEMNUM}={?Control ID}AND IF
    {POLINE.ITEMNUM} in ["1107011010N", "1201020021N"]THEN
    {?Control ID}*({@qtY})
    my label printing works except when I  my inventory item conversion is like the exmaple below - this is trying to get my label program to work
    but i want to add some execeptions to my statement currently the
    link is as a leftouter join to my counting table which give me my qty of labels to print per user input {?control id} however - some of the items i order with different  order units and conversion qtys for example
    qty 2 - box-10 - going into inventory 20 - I need 20 labels printed vs just 2  - since the labels to print are directly tied to the requested order qty - i need to add the exceptions because some I order with conversions that I will not convert and I just want to add them list "one of" in the selection formula

  • Problem calling stored procedure with user-defined type of input parameters

    Hi,
    I have to call a stored procedure with IN parameters, but these are user-defined types of input parameters.
    function fv_createnews (
    pit_groups in T_APPLICATION_USER_GROUPS,
    pit_documents in T_DOCUMENTS
    return varchar2;
    TYPE T_APPLICATION_USER_GROUPS IS
    TABLE OF varchar2(500)
    INDEX BY binary_integer;
    TYPE T_DOCUMENT IS record (
    name varchar2(256)
    ,url varchar2(1024)
    ,lang varchar2(30)
    ,foldername varchar2(150)
    TYPE T_DOCUMENTS IS
    TABLE OF T_DOCUMENT
    INDEX BY binary_integer;
    How can I do this using the TopLink 10.1.3 API.
    I already found following related posts, but I still can' t make it up:
    Using VARRAYs as parameters to a Stored Procedure
    Pass Object as In/Out Parameter in Stored Procedure
    Or do I have to create my own PreparedStatement for this special stored procedure call using Java and Toplink?

    As the related posts suggest, you will need to use direct JDBC code for this.
    Also I'm not sure JDBC supports the RECORD type, so you may need to wrap your stored functions with ones that either flatten the record out, or take OBJECT types.

  • Batch Input for user defined fields (SRM 4.0)

    Hello.
    Now in my project,we are developping Batch Input function about PO,CONF in SRM 4.0.
    and in this time, we will use over 20 user defined fields.so we have to enter the value to user defined fields by using Batch Input function.
    But if we will enter over the 10 value for user defined fields,we have to scroll the screen.
    How do I scroll in SRM?(What's the command to scroll in SRM)
    Regards
    Ogiwara

    better lock the user since he may some business documnt open and you can not proceed further.
    br
    muthu

  • SRM User defined fields -- can not input values

    Hi,
    We are using SRM 4.0. I have created a user defined field at the PO header according to note 672960. But I can not input anything to this field.
    This is what I did:
    1. in both structures INCL_EEW_PD_HEADER_CSF and INCL_EEW_PD_HEADER_CSF_PO add the append structure with the new field ZZCONTRACT.
    2. in BADI BBP_CUF_BADI_2 created an implementation Z_BBP_CUF_BADI_2. In method MODIFY_SCREEN set: xdisplay = 'X' and xinput = 'X' for this new field.
    This new field showed up in SRM, but it is greyed out. I can not type in anything. Could anyone tell me what I did wrong or what I have missing? Thanks a lot!

    hi,
      If you can see the custom fields,the problem is with the BADi implementation.You can write something like this in the method for the PO cust fields:
    IF iv_doc_type = 'BUS2201'.
      *Hide all customer fields
    *Will change this coding if any other document type needs
    *customer fields
          LOOP AT et_fields INTO wa_et_fields.
            wa_et_fields-xdisplay = 'X'.
            MODIFY et_fields FROM wa_et_fields.
          ENDLOOP.
         ENDIF.
    Save and activate the implementation.
    HTH.
    BR,
    Disha.
    Pls reward points for useful answers.

  • User defined methods as variable input

    Hello everyone.
    I'm reading through a teach yourself java programming guide and am a little confused about a couple things when it comes to variables and methods.
    I was wondering if it is "legal" to use a method as a variable input. Ex:
    variable = usermethod(num1, 23.43, 32.13); /* Assuming the variable and method parameters
    are of the same data type */
    I was also wondering if you can call a method as output to the stand output such as:
    System.out.println(usermethod(num1, 23.43, 32.13));
    I think that these are vaild uses but this book is not very clear on this point, it simply says that a user defined method is called from the method main and if it is a return type it will return a value. I assume that the returned value can be store in a variable using the syntax above, am I correct?

    Whenever the compiler sees a method name, it calls the method to get a return value from it. Both of those lines above are legal.
    You can use a method call pretty much anywhere you would put an expression; for example, if you had a function foo() which took an int, and you had another function bar() which returned an int, you could call foo() like this:
    foo(bar());Just make sure that methods you pass to other methods don't result in any unintended side-effects, such as printing to the screen.

  • How to execute function takes user defined type parameters as input &output

    Hi All,
    I want to execute a function which takes user defined type as input & output parameters. But i don't know how to execute that function in pl/sql statements.
    CREATE TYPE T_INPUT AS OBJECT
    USER          VARCHAR2(255),
    APPLICATION     VARCHAR2(255),
    REFERENCE          VARCHAR2(30)
    ) NOT FINAL;
    CREATE TYPE T_ID UNDER T_INPUT
    E_ID                    VARCHAR2 (50),
    CODE                    VARCHAR2 (3),
    SERVICE                    VARCHAR2 (10),
    C_TYPE                    VARCHAR2 (1)
    ) NOT FINAL;
    CREATE TYPE T_OUTPUT AS OBJECT
         R_STATUS               NUMBER(10),
         E_DESC_LANG_1          VARCHAR2(1000),
         E_DESC_LANG_2          VARCHAR2(1000),
         A_REFERENCE          VARCHAR2(30)
    ) NOT FINAL;
    CREATE TYPE T_INFO UNDER T_OUTPUT
    E_INFO XMLTYPE
    CREATE FUNCTION Get_Dtls
    I_DETAILS IN T_ID,
    O_DETAILS OUT T_INFO
    RETURN NUMBER AS
    END;
    Here
    1. T_ID is an input parameter which is a combination of T_ID + T_INPUT,
    2. T_INFO is an output parameter which is a combination of T_INFO + T_OUTPUT.
    Here i'll assign the T_ID values.
    --- T_INPUT values
    USER          = "admin";
    APPLICATION     = "test";
    REFERENCE     = "null";
    ---- T_ID values
    E_ID               = "1234";
    CODE               = "TTT";
    SERVICE               = "NEW";
    C_TYPE = "P";
    Now i want to execute Get_Dtls function with T_ID,T_INFO parameters in pl/sql statements.
    I want to catch the E_INFO value from T_INFO type.
    How can i Do this ?
    Pls Help. Thanxs in advance.
    Anil.

    I am very new to this. New to Oracle, PL/SQL, OO programming or testing?
    set serveroutput on
    declare
      tst_obj ctype;
    begin
      tst_obj := pkg.proc(11);
      dbms_output.put_line('id='||tst_obj.id||'::code='||tst_obj.code||'::usage='||tst_obj.usage);
    end;
    /Generally I disapprove of the use of DBMS_OUTPUT (for just about anything) but it is sufficient to demonstrate the basic principle.
    Really you should start using proper testing practices, ideally with an automated test harness like QUTE.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

Maybe you are looking for

  • Shortdump ASSIGN_TYPE_CONFLICT

    Hi, when i start a DTP (with info source), I get a runtime error (ASSIGN_TYPE_CONFLICT), especially flatfiles DEMOSYSTEM: Netweaver 2004s SPS5 Can anybody help me, please. Thanks. Bernd

  • 0FIGL_C01 Financial Statement Hierarchy 0GLACCEXT

    Hi Guys, I am using 0FIGL_C01 to develop a projectwise P&L report. I have loaded the 0GLACCEXT hierarchy and have added the object in cube. I have designed the query using FSV restriction. But when I execute the report I am not getting the data again

  • Regarding Approver agent determination

    Hi,         I am new to SRM and i have a requirement to change the Workflow which is trigerred whenever a shopping cart is created and mail is sent to the approver for approval of the same.        Here on creation of shopping cart i need to do some c

  • Gnome 3.6 "Clock" has quit unexpectedly

    Just like in this thread I wasn't able to log in after sys upgrade. To read the wiki article I started X and gnome-session manually. This was the first time when the clock-applet failed to load. Then following the article I did 3 things: In grub.cfg

  • Change Data Capture: DBMS_CDC_PUBLISH.PURGE

    How can I manage this job? I don't need to delete data from change tables.