Populate collection type from XMLType

Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE     11.1.0.7.0     Production
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
Please bear with me as I'm new to this XML DB thing and also this is my first post.
I'm trying to populate collection type from XMLType. I was able to populate a table from XMLType but
couldn't figure out a way to populate the collection type. Here is the description of my problem:
Object Type:
CREATE OR REPLACE TYPE DOC_ROWTYPE AS OBJECT
     REFERENCENUMBER VARCHAR2(255),
     REQID NUMBER(12),
     REQDETID NUMBER(12),
     FROMAMOUNT VARCHAR2(31),
     TOAMOUNT VARCHAR2(31),
     TOACCOUNTID NUMBER(12),
     TOACCOUNTNUMBER VARCHAR2(35),
     FROMACCOUNTID NUMBER(12),
     FROMACCOUNTNUMBER VARCHAR2(35),
Collection Type:
CREATE OR REPLACE TYPE DOC_TABLETYPE IS TABLE OF DOC_ROWTYPE;
I have a physical table which is created when I registered a schema.
A table (Temp_Result) got created with column SYS_NC_ROWINFO$ which is of XMLType.
As you can see this is only a temporary table which will store the response XML which I want to finally get it to collection type.
XML to parse:
<code>
<TFSResponse>
<TFS>
<refNumber>12345</refNumber>
<reqId>123</reqId>
<reqDetId>111</reqDetId>
<fromAmount>20</fromAmount>
<toAmount>20</toAmount>
<fromAccount>
<accountId>22222</id>
<accountNumber>12345678</number>
</fromAccount>
<toAccount>
<accountId>33333</id>
<accountNumber>123456789</number>
</toAccount>
</TFS>
.... many TFS Tags
</TFSResponse>
</code>
So each object in the collection is one TFS tag.
Any advice on how to implement this?

Does this help
SQL> CREATE OR REPLACE TYPE ACCOUNT_T as OBJECT (
  2    "accountId"       NUMBER(12),
  3    "accountNumber"   VARCHAR2(35)
  4  )
  5  /
Type created.
SQL> show errors
No errors.
SQL> --
SQL> CREATE OR REPLACE TYPE TFS AS OBJECT(
  2     "refNumber"  VARCHAR2(255),
  3     "reqId"      NUMBER(12),
  4     "reqDetId"   NUMBER(12),
  5     "fromAmount" VARCHAR2(31),
  6     "toAmount"   VARCHAR2(31),
  7     "fromAccount" ACCOUNT_T,
  8     "toAccount"   ACCOUNT_T
  9  );
10  /
Type created.
SQL> show errors
No errors.
SQL> --
SQL> CREATE OR REPLACE TYPE TFS_C
  2      as TABLE of TFS
  3  /
Type created.
SQL> show errors
No errors.
SQL> --
SQL> CREATE OR REPLACE Type TFS_RESPONSE_T as OBJECT(
  2    "TFSResponse" TFS_C
  3  );
  4  /
Type created.
SQL> show errors
No errors.
SQL> /
Type created.
SQL> CREATE OR REPLACE type CODE_T as OBJECT(
  2    "code" TFS_RESPONSE_T
  3  );
  4  /
Type created.
SQL> show errors
No errors.
SQL> --
SQL>
SQL> with "MY_XML" as
  2  (
  3    select XMLTYPE(
  4  '<code>
  5     <TFSResponse>
  6             <TFS>
  7                     <refNumber>12345</refNumber>
  8                     <reqId>123</reqId>
  9                     <reqDetId>111</reqDetId>
10                     <fromAmount>20</fromAmount>
11                     <toAmount>20</toAmount>
12                     <fromAccount>
13                             <accountId>22222</accountId>
14                             <accountNumber>12345678</accountNumber>
15                     </fromAccount>
16                     <toAccount>
17                             <accountId>33333</accountId>
18                             <accountNumber>123456789</accountNumber>
19                     </toAccount>
20             </TFS>
21             <TFS>
22                     <refNumber>12346</refNumber>
23                     <reqId>123</reqId>
24                     <reqDetId>111</reqDetId>
25                     <fromAmount>20</fromAmount>
26                     <toAmount>20</toAmount>
27                     <fromAccount>
28                             <accountId>22222</accountId>
29                             <accountNumber>12345678</accountNumber>
30                     </fromAccount>
31                     <toAccount>
32                             <accountId>33333</accountId>
33                             <accountNumber>123456789</accountNumber>
34                     </toAccount>
35             </TFS>
36             <TFS>
37                     <refNumber>12347</refNumber>
38                     <reqId>123</reqId>
39                     <reqDetId>111</reqDetId>
40                     <fromAmount>20</fromAmount>
41                     <toAmount>20</toAmount>
42                     <fromAccount>
43                             <accountId>22222</accountId>
44                             <accountNumber>12345678</accountNumber>
45                     </fromAccount>
46                     <toAccount>
47                             <accountId>33333</accountId>
48                             <accountNumber>123456789</accountNumber>
49                     </toAccount>
50             </TFS>
51     </TFSResponse>
52  </code>') as "XML"
53    from DUAL
54  )
55  select
56    "TMOBILE"."CODE_T"(
57      "TMOBILE"."TFS_RESPONSE_T"(
58        CAST(
59          MULTISET(
60            select
61              "TMOBILE"."TFS"(
62                "refNumber_000002",
63                "reqId_000003",
64                 "reqDetId_000004",
65                "fromAmount_000005",
66                "toAmount_000006",
67                "TMOBILE"."ACCOUNT_T"(
68                  "accountId_000007",
69                  "accountNumber_000008"
70                ),
71                 "TMOBILE"."ACCOUNT_T"(
72                  "accountId_000009",
73                  "accountNumber_000010"
74                )
75              )
76              FROM
77                XMLTABLE(
78                  '/TFS'
79                  passing "TFSResponse_000001"
80                   COLUMNS
81                   "refNumber_000002"                  VARCHAR2(255)                       PATH 'refNumber',
82                   "reqId_000003"                      NUMBER                              PATH 'reqId',
83                    "reqDetId_000004"                   NUMBER                              PATH 'reqDetId',
84                   "fromAmount_000005"                 VARCHAR2(31)                        PATH 'fromAmount',
85                    "toAmount_000006"                   VARCHAR2(31)                        PATH 'toAmount',
86                     "accountId_000007"                  NUMBER                              PATH 'fromAccount/accountId',
87                      "accountNumber_000008"              VARCHAR2(35)                        PATH 'fromAccount/accountNumber',
88                     "accountId_000009"                  NUMBER                              PATH 'toAccount/accountId',
89                      "accountNumber_000010"              VARCHAR2(35)                        PATH 'toAccount/accountNumber'
90                )
91          ) as "TMOBILE"."TFS_C"
92        )
93      )
94    )
95    FROM MY_XML,
96      XMLTABLE(
97        '/'
98        passing "XML"
99        COLUMNS
100              "TFSResponse_000001"                XMLTYPE                             PATH 'code/TFSResponse/TFS'
101       )
102
SQL> /
CODE_T(TFS_RESPONSE_T(TFS_C(TFS('12345', 123, 111, '20', '20', ACCOUNT_T(22222, '12345678'), ACCOUNT_T(33333, '123456789')), TFS('12346', 123, 111, '20', '20',
ACCOUNT_T(22222, '12345678'), ACCOUNT_T(33333, '123456789')), TFS('12347', 123, 111, '20', '20',
ACCOUNT_T(22222, '12345678'), ACCOUNT_T(33333, '123456789')))))
SQL>

Similar Messages

  • Need to Populate Material Type from ECC to APO Product Master

    Hi All,
    I need to update the material type field from ECC to APO.
    I am using the userexit CIFMAT01 and component EXIT_SAPLCMAT_001.
    I need to extract field MTART from MARA table and need to Populate it in APO Product master.
    In APO i am using the ATT01 field of table /SAPAPO/MATKEY.
    But this does not work the data of material type is not getting populated in APO.
    We have tried to use a break point in the user exit and while executing the transaction CFM2 it does not stop at the break point.
    Can anyonwe guide me as to how to go about in implemeting this user exit.
    Regards
    Nitin

    Hi Nitin,
           Make sure that u r pass the material type as a below :
    CT_CIF_MATKEY-ATT01 = Pass the Material Type.
    CIF_MATKYX -ATT01      = 'X'.
    Check the below thread to debug the CIF queue:
    debugging CIF user exit
    Regards,
    Siva.

  • How to exclude stock of a particular storage type from collective availabil

    How to exclude stock of a particular storage type from collective availability check in MDVP.

    you can set the storage location as 'Storage location stock excluded from MRP' value '1' in the field
    Sloc MRP indicator , in MRP view $ when you enter a storage location accessing the material master.
    Thsi is the only way to exclude the storage location, you have to do it per each material and also it is excluded from the MRP.
    With this option the stock is not considered in ATP.
    IF you need the storage location in the MRP, then you should consider the use of MRP Areas.
    With the MRP Areas you define which plants/storage locations belong to each MRP area and the ATP is performed for eah area with the stocks that exist in each of them.
    Please if the issue is solved set the thread  as answered and provide the points to the useful replies.
    thanks for your cooperation

  • Problems with "import from catalog" & "collection type mismatch"

    I'm attempting to keep 2 catalogs on 2 different computers sunchronized.  I'm exporting photos
    and collections (actually a web gallery) from one computer to another, and
    I'm getting a "collection type mismatch" error, that prevents the photos from being a
    dded to the collection.  I've exported and imported the flash gallery template
    from one system to the other to make sure the templates were identical.  A
    ll the photos, keywords, and attributes seem to be imported properly, but the photos aren't added
    to the collection. Anyone having success exporting/importing collections between computers?
    I'm using LR 2.7 on Win 7 & Vista.
    Thanks,
    Mark

    Thanks Dorin.  I tested it with a "regular" collection, and it works.
    I hope they fix this in v. 3 too!

  • Losing datatype definition from a collection type

    Hi,
    When I reload a model design from an xml repository, I am losing the datatype definition from a collection type.
    It goes like this:
    - In a collection type, the datatype is selected from a list of structure types (pre-defined).
    - I save the whole model.
    - So far, the datatype assignment is kept.
    - If I exit from Data Modeler, the next time I reload the saved model, the collection datatype definition is lost...
    Does anyone know how to resolve this issue?
    Note: this looks very similar to a previous thread named 'Losing source-target mapping from a data flow diagram process'.
    Thanks,
    /Mario

    Hi Mario,
    Thanks for letting us know about this problem. I have logged a bug on this.
    If you should find any more problems like this, please let us know.
    Thanks,
    David

  • Range partition by a virtual column derived from XMLTYPE

    I want to create table and partition it by interval partion (range partition) on a virtual column which is derived from XMLTYPE i get ora-14513 error.
    create table dicom_archive_virtual
    id integer not null primary key,
    parent_id integer, -- where this image is created from
    dcm_filename varchar2(60), -- DICOM image file name from import
    description varchar2(100), -- description of the image
    dicom orddicom, -- DICOM data
    image ordimage, -- DICOM data in JPEG format
    thumb ordimage, -- DICOM data in JPEG thumbnail
    metadata xmltype, -- user customized metadata
    isAnonymous integer, -- accessible flag for the research role.
    study_date date as
    (to_date(substr(extractValue(metadata,'//DATE/text()'),1,10),'yyyy-mm-dd')) virtual)
    PARTITION BY RANGE (study_date)
    INTERVAL(NUMTOYMINTERVAL(1, 'MONTH'))
    ( PARTITION p_2005 VALUES LESS THAN (TO_DATE('1-1-2006', 'DD-MM-YYYY')),
    PARTITION p_2006 VALUES LESS THAN (TO_DATE('1-1-2007', 'DD-MM-YYYY')),
    PARTITION p_2007 VALUES LESS THAN (TO_DATE('1-1-2008', 'DD-MM-YYYY'))
    Study_date is a virtual colum which is derived from the column metadata which is of type XMLTYPE,so when i partition on this virtual column i get the follwoing error
    SQL Error: ORA-14513: partitioning column may not be of object datatype
    So i want to know whether this is not possible or there is any other alternative to achieve this.

    I want to create table and partition it by interval partion (range partition) on a virtual column which is derived from XMLTYPE Congratulations on trying to fit as many cutting edge techniques into a single line as possible.
    So i want to know whether this is not possible ...The error message is pretty unequivocal.
    ...or there is any other alternative to achieve this.What you could try is materializing the virtual column, i.e. adding an actual date column which you populate with that code in the insert and update triggers. Inelegant but then complexity often is.
    Cheers, APC
    blog : http://radiofreetooting.blogspot.com

  • Populate  Collection

    Hi
    I have a collection and will like populate with data from table
    DECLARE
    TYPE name_rec IS RECORD ( COD VARCHAR2(3), DESCR VARCHAR2(30) );
    TYPE names IS VARRAY(250) OF name_rec;
        t_tab     names := names();
    BEGIN
        t_tab.extend(1);
       dbms_output.put_line(t_tab.count());
      t_tab.delete;
      dbms_output.put_line(t_tab.count());
    end;     How can I to do it ?

    Michaels, please look into this,
    It is not going beyond 'after exit' condition.
    SQL> declare
      2     cur_emp sys_refcursor;
      3      type t_obj is record( empno number,
      4                           ename varchar2(25)
      5                           );
      6      type t_tab is table of t_obj index by binary_integer;
      7      tt t_tab;
      8      cnt_in number:=0;
      9      cnt_out number:=0;
    10      begin
    11       open cur_emp for
    12       select empno,ename from emp where deptno=10;
    13        loop
    14         fetch cur_emp BULK collect into tt;
    15         cnt_out:=cnt_out+1;
    16         dbms_output.put_line('cnt_out :'||(cnt_out));
    17         exit when cur_emp%notfound;
    18           dbms_output.put_line('after exit');   
    19        end loop;
    20        for i in 1..tt.count loop
    21           dbms_output.put_line('empno :' ||tt(i).empno||'     ename  :'||tt(i).ename);
    22           cnt_in:=cnt_in+1;
    23          dbms_output.put_line('cnt_in :'||(cnt_in));
    24        end loop;
    25      end;
    26  /
    cnt_out :1
    empno :7782     ename  :CLARK
    cnt_in :1
    empno :7839     ename  :KING
    cnt_in   :2
    empno :7934     ename  :MI_LL_ER
    cnt_in   :3
    empno :7501     ename  :T*_1NU
    cnt_in   :4

  • Passing collection parameters from/to Oracle 8i stored procedure to/from Weblogic java program

    Environment- Oracle DB 8.1.7 (Sun) - JDBC OCI 8.1.7 - Application Server (WebLogic 6.0 or 6.1)QuestionHow to pass oracle collection data types from PL/SQL stored procedures to Weblogic java program as in/out stored procedures parameters. I am hitting oracle error 2006 unidentified data type trying to pass the following data types:-o java.sql.Structo java.sql.Arrayo oracle.sql.STRUCTo oracle.sql.ARRAYo oracle.jdbc2.Structo oracle.jdbc2.Arrayo any class implemented oracle.jdbc2.SQLData or oracle.sql.CustomDatumInformationAbout PL/SQL stored procedure limitation which only affects the out argument types of stored procedures calledusing Java on the client side. Whether Java methods cannot have IN arguments of Oracle 8 object or collection type meaning that Java methods used to implement stored procedures cannot have arguments of the following types:o java.sql.Structo java.sql.Arrayo oracle.sql.STRUCTo oracle.sql.ARRAYo oracle.jdbc2.Structo oracle.jdbc2.Arrayo any class implemented oracle.jdbc2.SQLData or oracle.sql.CustomDatum

    this is becoming a mejor problem for me.And are you storing it as a blob?
    Oracle doesn't take varchars that big.
    And isn't LONG a deprecated field type for Oracle?
    From the Oracle docs......
    http://download-west.oracle.com/docs/cd/B13789_01/server.101/b10759/sql_elements001.htm#sthref164
    Oracle strongly recommends that you convert LONG RAW columns to binary LOB (BLOB) columns. LOB columns are subject to far fewer restrictions than LONG columns. See TO_LOB for more information.

  • How to use oracle collection type with JDBC?

    I try to use oracle collection type in java program. So I made some package and java program, however Java program was not found "package.collectiontype"(JDBC_ERP_IF_TEST.NUM_ARRAY) . please, show me how to use this.
    Java Version : Java 1.4
    JDBC Driver : Oracle Oci Driver
    DB: Oracle 9i
    No 1. Package
    ===========================================
    create or replace package JDBC_ERP_IF_TEST AS
    type NUM_ARRAY is table of number;
    procedure JDBC_ERP_IF_ARRAY_TEST(P_NUM_ARRAY IN NUM_ARRAY, ERR_NO OUT NUMBER, ERR_TEXT OUT VARCHAR2);
    procedure TEST(ABC IN NUMBER);
    END JDBC_ERP_IF_TEST;
    ==================================================
    No 2. Package Body
    ===============================================
    CREATE OR REPLACE package BODY JDBC_ERP_IF_TEST is
    procedure JDBC_ERP_IF_ARRAY_TEST(p_num_array IN NUM_ARRAY,
    ERR_NO OUT NUMBER,
    ERR_TEXT OUT VARCHAR2) is
    begin
    ERR_NO := 0;
    ERR_TEXT := '';
    dbms_output.enable;
    for i in 1 .. p_num_array.count() loop
    dbms_output.put_line(p_num_array(i));
    insert into emp (empno) values (p_num_array(i));
    commit;
    end loop;
    EXCEPTION
    WHEN OTHERS THEN
    ERR_NO := SQLCODE;
    ERR_TEXT := ERR_TEXT ||
    ' IN JDBC INTERFACE TEST FOR ORACLE ERP OPEN API..';
    ROLLBACK;
    RETURN;
    end JDBC_ERP_IF_ARRAY_TEST;
    procedure TEST(ABC IN NUMBER) IS
    begin
    insert into emp(empno) values (ABC);
    commit;
    end TEST;
    end JDBC_ERP_IF_TEST;
    ===============================================
    NO 3. Java Program
    ===============================================
    ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor("JDBC_ERP_IF_TEST.NUM_ARRAY", getConnection());
    ARRAY array = new ARRAY(descriptor, getConnection(), arrs);
    cstmt = getConnection().prepareCall(LQueryFactory.getInstance().get("Meta/Basic/testJdbcErpArrayIf").getSql());
    cstmt.setArray(1, array);
    cstmt.registerOutParameter(2, Types.INTEGER);
    cstmt.registerOutParameter(3, Types.VARCHAR);
    ====================================================
    couldn't find this phase => JDBC_ERP_IF_TEST.NUM_ARRAY
    what can i do for this package and program? please help me..

    Something like this:
    create or replace type t_record as  object (
    id number,
    no number
    CREATE or replace type t_table AS TABLE OF t_record;
    set serveroutput on
    declare
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    begin
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /Untested!
    P;
    Edited by: bluefrog on Mar 5, 2010 5:08 PM

  • Use Java to collect data from HTML

    Hi Guys
    I am doing a online stock trading project, the main part is to collect raw data from http://finance.yahoo.com User can retrieve the stock detail by inputting the right stock symbol, such as "AOL". I dont have too much problem in this part because yahoo provde a spreedsheet format to display the result. If you type the URL below, it can bring you a set of stock data separating by comma. So, I can use StringTokenizer(date, ",") to collect each data from yahoo into my system.
    ========================================================================
    http://finance.yahoo.com/d/quotes.csv?f=sl1d1t1c1ohgv&e=.csv&s=AOL&
    "AOL",15.57,"8/12/2003","4:01pm",+0.04,15.47,15.63,15.40,12097200
    ========================================================================
    However beside this function, I also need to search Stock Symbol, because user may only know the company name. Although Yahoo finance also provide this function, with no spreedsheet format provided. So, if I type the URL below, it will only give me a set of result BUT in HTML format.
    ========================================================================
    http://finance.yahoo.com/l?s=AOL&t=S&m=
    ========================================================================
    So, can anyone tell me what is the best way to collect data from a HTML page? Or anyone know any good stock quoting sites which also provide spreedsheet format?
    Thank you very much
    Kel

    I am doing a online stock trading project, the
    the main part is to collect raw data from
    http://finance.yahoo.com
    Sounds fun.
    So, can anyone tell me what is the best way to
    to collect data from a HTML page? Or anyone know any
    good stock quoting sites which also provide
    spreedsheet format?I really don't know any other stock quote sites. But if you want to implement a search function for stock names, I would do it like this
    1) Code the HTTP SUBMIT/POST to lookup the possible stock names
    2) Use XSL to filter out the HTML path to the table with results, the layout is consistent, so there are no strange exceptions. You can check the DOM structure by using Mozilla's DOM inspector. Just write down the path to the TABLE element and select it, and transform it to CSV for example.
    3) Reparse the CSV to fill some boxes
    To possibly save some server load use a small fixed size in memory cache to store N requests based on some strategy.
    The other part is actual a separate part of what you want to code and should be a separate class in which you can feed the stock name.
    If the user types in a bad stock name, you can retrieve a list of possible names using the input as the company name.
    Greets.
    Maybe there is a SOAP service out there somewhere.

  • How to use a collection type of bind variable for execute dynamic statement

    Hi,
    We have a case where we copy selective data from Schema A To Schema B in one oracle database. The copy is achieved by using
    execute immediate 'insert into '||target_schema||'.tablea select * from '||from_schema||'.table a where a.id in (select test_id from '||from_schema||'.table c);';
    This works fine it takes an average of 10 seconds to copy around 14 tables. We have a requirement to bring this time to 2 seconds. One observation has been the clause
    "select test_id from '||from_schema||'.table c" in the above sql statement repeats for many inserts . Thus we were thinking to bulk fetch this set of tests ids and use a bind vatiable of collection type for the execute immediate clause. Any suggestions on how to achieve it?
    Thanks,
    Chandana

    >
    One observation has been the clause
    "select test_id from '||from_schema||'.table c" in the above sql statement repeats for many inserts
    >
    So what? Constructing a string for a table level insert and parsing it can't possibly be a performance problem. If you were creating a string in a loop to insert rows into a table by getting the data FROM a collection - that's a problem that keeps showing up in the forums.
    I'm with bravid and Nikolay on this one. First find out which side, select/insert, the problem is on.
    As they said you need to provide more information about the process.
    And using collections for your use case is definitely not the thing to do.
    1. How many rows are we talking about?
    2. Are the rows being inserted into an empty table?
    3. Are you running these queries during peak production hours or in a batch windows?
    Tune the SELECT if the problem is on that side.
    Post an execution plan for the SELECT part of a query you think should run faster.
    SET SERVEROUTPUT ON
    SET AUTOTRACE TRACEONLY
    SQL> select * from emp;
    Execution Plan
    Plan hash value: 3956160932
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      |    14 |   546 |     3   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| EMP  |    14 |   546 |     3   (0)| 00:00:01 |
    SQL>On the INSERT side you might be able to use bulk inserts
    ALTER TABLE myTable NOLOGGING;
    INSERT /*+ append */ INTO myTable . . .
    ALTER TABLE myTable LOGGINGIf the insert tables are always reused you could just leave them as NOLOGGING. Since you can't recover bulk data you need to make sure to get a good backup after the loads if you need to recover the data from the logs rather than just reload it yourself.

  • Need to pull License type from GTS to R3 in case of STO documents

    Hi Gurus,
    Currently, In standard sales order process, we are using 2 functional modules in R3 to get the ECCN number and license type from GTS. This is required to populate on some billing output.
    Functional modules used are:
    /SAPSLL/***_DOCS_SD0C_FETCH_R3
    /SAPSLL/***_DOCS_SD0C_GET_R3
    Using above mentioned functional modules, we can only pull ECCN number and license type from GTS only if we pass sales document number to this FM and further system pulls ECCN and license type from GTS by referring the sales document number.
    Issue:
    We have a requirement is to pull the License type in case of STO documents also but STO documents/STO deliveries are not checked for GTS check, so we can not use above mentioned functional modules to pull the license type from GTS to R3 because STO/PO / deliveries do not exist in GTS.
    I just have the material number with me and I need to pull the license type from GTS to R3.
    Could anyone please advise the table name or any structure where i can pass the material number in GTS and can pull the license type to R3.
    Your kind response would be appreciated.

    Hi DG,
    Thanks for your kind response. Regarding your second point, I am already pulling the ECCN number by using one customized functional module so I already have ECCN number with me. Could you please brief me how I can pull the License type linked to an ECCN number. What is the relationship table/ logic for pulling the license type by passing the ECCN number ??
    Looking forward to your response.
    Regards,
    Anoop

  • SQL*Modeler - creation of VARRAY or Collection Type of scalar type errors

    In SQl*Modeler 2.0.0 Build 584, I can create either VARRAY or Collections. These work fine for usre defined structured types but I encounter huge problems when I use a simple scalar type of number or varchar2.
    For instance I create a new collection type, give it a name, specify its a collection (or VARRAY, same problem) then click datatype. On the select Data type box I select logical type. A new window opens, I select VARCHAR from the drop down list.
    Enter the size 15, everything appears fine. I click OK, the select data type screen now shows a logical type of VARCHAR(15).
    So far I'm happy. I generate the DDL, everthing is fine, the DDL contains my collection of VARCHAR2(15).
    Now I save the model, close it and re-open the same model. My collection is now of VARCHAR so the next time I generate it will get an error because the syntax is wrong because it has no length. Same problem happens when selecting a NUMBER, looses the precision and scale but at least that command still works, just with a maximum numeric value.
    Ok, so lets try creating distinct types. Why we can't access domains when specifying types from here remains a mystery to me.
    So I create a distinct type Varchar2_15 which is of Logical type VARCHAR and give it a size. Similarly, create another distinct type of NUMERIC_22_0 precision 22 scale 0. This seems to get around the problem of losing the data but the DDL generated shows the datatype to be either VARCHAR (not VARCHAR2) and NUMERIC(22), not number(22). Now I know that VARCHAR currently maps to VARCHAR2 but isn't guaranteed to in the future (even though its been like that since V6) and NUMERIC is just an alias for NUMBER but its going to confuse a lot of java people and its totally inconsitent and just plain wrong.
    Any suggestions or workarounds will be gratefully received.
    Ian Bainbridge

    Hi Ian,
    I see a bug in save/load of collection types and as result no size or precision and scale information. It's fixed in new release.
    However I cannot reproduce the problem with distinct types - I have them generated as varchar2 and number (this is for Oracle).
    You can check:
    - database you use in DDL generation - I got varchar and numeric for MS SQL Server;
    - mapping of logical types VARCHAR and NUMERIC to native types in "Types Administration".
    Philip
    PS - I was able to reproduce it - I looked at wrong place - DDL generation for collection types is broken - it's ok for columns. I logged bug for that.
    Edited by: Philip Stoyanov on Jun 28, 2010 8:55 PM

  • Want to insert a XSL file's data into a column of type SYS.XMLTYPE??

    Hello Friends
    I want to insert a XSL file's data into a column of a table of type SYS.XMLTYPE. Following is the XSL which i want to add into a table please help in.....
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:fn="http://www.w3.org/2005/xpath-functions">
         <xsl:output method="html" encoding="UTF-8" />
         <xsl:template match="clinical_study">
         <xsl:variable name="status">
              <xsl:apply-templates select='overall_status' />
         </xsl:variable>
    <html>
    <head>
    <title>Summary</title>
    <link href="merckcancer.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
         <div id="trialtop" class="trialtop">
              <div id="trialtophead" class="trialtophead">
                   <H1>Summary</H1>
              </div>
    <!-- start of trial body-->
         <div id="trialmiddle" class="trialmiddle">
                             <span class="trialtitle1"><xsl:apply-templates select='brief_title'/></span>
                   <span class="tealbold">Official Title: </span><xsl:apply-templates select='official_title' />
                   <span class="tealbold" title="ClinicalTrials.gov Identifier">NCT Id: </span><xsl:apply-templates select='//nct_id'/>
    <span class="tealbold">Conditions: </span><xsl:for-each select="//condition[position()!=last()]"><xsl:value-of select="normalize-space(.)" /><xsl:text>, </xsl:text></xsl:for-each>
    <xsl:for-each select="//condition[position()=last()]"><xsl:value-of select="normalize-space(.)" /></xsl:for-each>
    <span class="tealbold">Phase: </span><xsl:apply-templates select='phase' />
    <span class="tealbold">Status: </span><xsl:value-of select="$status" />
    <span class="tealbold">Interventions: </span><xsl:for-each select="//intervention[position()!=last()]"><xsl:value-of select="normalize-space(intervention_type)" />: <xsl:value-of select="normalize-space(intervention_name)" /><xsl:text>, </xsl:text></xsl:for-each><xsl:for-each select="//intervention[position()=last()]"><xsl:value-of select="normalize-space(intervention_type)" />: <xsl:value-of select="normalize-space(intervention_name)" /></xsl:for-each>
    <xsl:apply-templates select='eligibility'><xsl:with-param name="type">short</xsl:with-param></xsl:apply-templates>
    </div><!-- end of middle -->
    </div><!-- end of top-->                         
    <div id="detail" class="detail">
         <div id="detailtophead" class="detailtophead">
              <H1>Details</H1>
         </div>
    <!-- end of detailtop-->
    <!-- start of detail body-->
    <div id="detailmiddle" class="detailmiddle">
    <span class="trialtitle2">Trial Description:</span>
         <span class="trialtitle4"><xsl:apply-templates select='brief_summary/textblock' /></span>
         <span class="trialtitle1">Eligibility: </span>
              <xsl:apply-templates select='eligibility'><xsl:with-param name="type">long</xsl:with-param></xsl:apply-templates>
    </div><!--end of detail middle-->
    </div><!-- end of detail top-->
    <div id="enroll" class="enroll">
    <div id="enrolltophead" class="enrolltophead">
    <H1>Enrollment</H1>
    </div>
    <!-- end of enroll top head-->
    <!-- start of enroll body-->
    <div id="enrollmiddle" class="enrollmiddle">
    <xsl:choose>
                                       <xsl:when test="$status = 'Recruiting'">
         This study has participating centers in a number of locations.
         To take the next step in learning more about participating in this clinical study please call one of these trial contacts.<p/>
         The trial contacts will know this study as <span class="tealbold"><xsl:apply-templates select='//org_study_id'/></span>
         or may know the study under the ClinicalTrials.gov identifier <span class="tealbold"><xsl:apply-templates select='//nct_id'/></span>.<p/>
         <p/>
                                       <xsl:apply-templates select='overall_contact'/>
                                       <xsl:for-each select="location">
                                            <xsl:call-template name='location'/><p/>
                                       </xsl:for-each>
                                       </xsl:when>
                                       <xsl:otherwise>
         This study is not currently Recruiting, it is <xsl:value-of select="$status" />.
                                       </xsl:otherwise>
                                       </xsl:choose>
    </div><!--end of enroll middle-->
    </div><!-- end of enroll -->
    <div id="credit" class="credit">
    <div id="credittophead" class="credittophead">
    <H1>Credits</H1>
    </div>
    <!-- end of credit top head-->
    <!-- start of credit body-->
    <div id="creditmiddle" class="creditmiddle">
                                  Information about this trial has been gathered from ClinicalTrials.gov. Please see
                                  <a>
                                       <xsl:attribute name="href" >
                                            /ctcpub/redirect.jsp?redirectURL=http://ClinicalTrials.gov
                                       </xsl:attribute>
                                       ClinicalTrials.gov
                                  </a> for more complete information.<p/>
                                  <xsl:apply-templates select='required_header/download_date'/><p/>
                                  <a>
                                       <xsl:attribute name="href" >
                                            /ctcpub/redirect.jsp?redirectURL=<xsl:apply-templates select='required_header/url'/>
                                       </xsl:attribute>
                                       <xsl:apply-templates select='required_header/link_text'/>
                                  </a> <p/>
                                  This trial data was last updated on <xsl:apply-templates select='//lastchanged_date'/><p/>
    </div><!--end of credit body-->
    </div><!--end of credit-->
    </body>
    </html>
    </xsl:template>
    <xsl:template match="brief_title">
              <span class="trialtitle"><xsl:value-of select="normalize-space(.)" /></span>
         </xsl:template>
         <xsl:template match="official_title">
              <span class="tealbold">Official Title: </span>     <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="phase">
              <span class="tealbold">Phase: </span> <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="overall_status">
              <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="eligibility">
              <xsl:param name="type" />
              <xsl:choose>
                   <xsl:when test="$type = 'short'">
                        <span class="tealbold">Eligibility: </span> <xsl:call-template name="ages">
                             <xsl:with-param name="min"><xsl:value-of select="normalize-space(minimum_age)" /></xsl:with-param>
                             <xsl:with-param name="max"><xsl:value-of select="normalize-space(maximum_age)" /></xsl:with-param>
                        </xsl:call-template>, <xsl:apply-templates select='gender' />
                   </xsl:when>
                   <xsl:when test="$type = 'long'">
                        <span class="trialtitle">Eligibility: </span>
                             <span class="tealbold">Age: </span> <xsl:call-template name="ages">
                                       <xsl:with-param name="min"><xsl:value-of select="normalize-space(minimum_age)" /></xsl:with-param>
                                       <xsl:with-param name="max"><xsl:value-of select="normalize-space(maximum_age)" /></xsl:with-param>
                                  </xsl:call-template>
                             <span class="tealbold">Genders Eligible for Study: </span> <xsl:apply-templates select='gender' />
                             <xsl:text>
                             </xsl:text>
                             <span class="tealbold">Eligibility Criteria: </span>
    <xsl:apply-templates select='criteria/textblock' />
                   </xsl:when>
                   <xsl:otherwise></xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="gender">
              <xsl:choose>
                   <xsl:when test=". = 'Both'">Male or Female</xsl:when>
                   <xsl:otherwise>
                        <xsl:value-of select="normalize-space(.)" />
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="overall_contact">
         <span class="trialtitle">Central Contact: </span>
              <xsl:apply-templates select='./first_name' /><xsl:text> </xsl:text>
              <xsl:apply-templates select='./middle_name' /><xsl:text> </xsl:text>
              <xsl:apply-templates select='./last_name' />
              <xsl:apply-templates select='./phone' />
              <xsl:apply-templates select='./email' />
         </xsl:template>
         <xsl:template name="ages">
              <xsl:param name="min" />
              <xsl:param name="max" />
              <xsl:choose>
                   <xsl:when test="($min != '') and ($max != '')">Between <xsl:value-of select="$min" /> and <xsl:value-of select="$max" /></xsl:when>
                   <xsl:when test="($min != '') and ($max = '')"><xsl:value-of select="$min" /> and Above</xsl:when>
                   <xsl:when test="($min = '') and ($max != '')">Under <xsl:value-of select="$max" /></xsl:when>
                   <xsl:otherwise></xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="brief_summary/textblock">
              <span class="trialtitle">Trial Description: </span> <xsl:call-template name="substitute">
    <xsl:with-param name="string" select="." />
    </xsl:call-template>
         </xsl:template>
         <xsl:template name="location">
              <span class="trialtitle"><xsl:apply-templates select='.//country' /><xsl:apply-templates select='.//state' /></span>
              <xsl:apply-templates select='./facility/name' /><xsl:apply-templates select='.//city' /><xsl:apply-templates select='.//zip' /><xsl:apply-templates select='.//status' />
              <xsl:apply-templates select='./contact' />
         </xsl:template>
         <xsl:template match="contact">
              <span class="tealbold">Site Contact: </span>
              <xsl:apply-templates select='first_name' />
              <xsl:apply-templates select='middle_name' />
              <xsl:apply-templates select='last_name' />
              <xsl:apply-templates select='phone' />
              <xsl:apply-templates select='email' />
         </xsl:template>
         <xsl:template match="criteria/textblock">
              <xsl:call-template name="substitute">
         <xsl:with-param name="string" select="." />
         </xsl:call-template>     
    </xsl:template>     
         <xsl:template match="facility/name"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="country"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="city">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="zip">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="state">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="status">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="first_name"><xsl:value-of select="normalize-space(.)" />&#160;</xsl:template>     
         <xsl:template match="middle_name"><xsl:value-of select="normalize-space(.)" />&#160;</xsl:template>     
         <xsl:template match="last_name"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="phone">Phone: <xsl:value-of select="normalize-space(.)" />
    </xsl:template>     
         <xsl:template match="email"><xsl:if test='. != ""'>EMail: <xsl:value-of select="normalize-space(.)" />
    </xsl:if></xsl:template>     
    <xsl:template name="substitute">
    <xsl:param name="string" />
    <xsl:param name="from" select="'&#xA;'" />
    <xsl:param name="to">
    </xsl:param>
    <xsl:choose>
    <xsl:when test="contains($string, $from)">
    <xsl:value-of select="substring-before($string, $from)" />
    <xsl:copy-of select="$to" />
    <xsl:call-template name="substitute">
    <xsl:with-param name="string"
    select="substring-after($string, $from)" />
    <xsl:with-param name="from" select="$from" />
    <xsl:with-param name="to" select="$to" />
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$string" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>
    Please do as early as possible..
    thanks in advance

    Hi I tried with below querry but iam getting an error message?
    SQL> Insert into temp_clob_tab
    2 SELECT XMLELEMENT("soap:Envelope",
    3 XMLATTRIBUTES ('http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi",
    4 'http://www.w3.org/2001/XMLSchema' as "xmlns:xsd",
    5 'http://schemas.xmlsoap.org/soap/envelope/' as "xmlns:soap"),
    6 XMLELEMENT("soap:Body"),XMLELEMENT("AddListing",
    7 XMLATTRIBUTES ('http://www.christielites.com' as "xmlns" )),
    8 XMLELEMENT ( "SCOMCODE",a.SCOMCODE), XMLELEMENT ( "SLOCCODE",SLOCCODE),
    9 XMLELEMENT ( "DSTART",DSTART),XMLELEMENT ( "DEND",DEND),XMLELEMENT ( "SECODE",SECODE),
    10 XMLELEMENT ( "IAVAIL",IAVAIL),XMLELEMENT ("IOWNED",IOWNED),XMLELEMENT ("SPOSTTRANS",SPOSTTRANS))
    11 from LiteExchangeAvailablity a;
    SELECT XMLELEMENT("soap:Envelope",
    ERROR at line 2:
    ORA-00932: inconsistent datatypes: expected CLOB got -

  • In Mail 7.3 on my Retina MacBook Pro on OS 10.9.4, how can I type from the keyboard into a mail message using the Apple Symbols font?

    In Mail 7.3 on my Retina MacBook Pro on OS 10.9.4, how can I type from the keyboard into a mail message using the Apple Symbols font?
    When I select the Apple Symbols font from the list accessed from under Format/"Show fonts"/collection-all fonts/Apple Symbol, and then continue typing, I get normal letters, if in a slightly different font.
    How can I type using the Apple Symbol font?  I want to use that font to include keyboard and cursor selections of actual screen symbols to help write easily understood explicit computer lesson emails to my 92 year-old mom from a few hundred miles away.
    Steve

    In Mail 7.3 on my Retina MacBook Pro on OS 10.9.4, how can I type from the keyboard into a mail message using the Apple Symbols font?
    When I select the Apple Symbols font from the list accessed from under Format/"Show fonts"/collection-all fonts/Apple Symbol, and then continue typing, I get normal letters, if in a slightly different font.
    How can I type using the Apple Symbol font?  I want to use that font to include keyboard and cursor selections of actual screen symbols to help write easily understood explicit computer lesson emails to my 92 year-old mom from a few hundred miles away.
    Steve

Maybe you are looking for

  • Jdevloper11g+weblogic integrated server  -Hibernate jars not loading

    I'm trying to call Session bean from manged bean.Session bean internall calls Hibernate DAO. I did project setup and everything looks OK.But keep getting Hibernate calsses not found error when i try to run jsp page. Please advise me..how to load hibe

  • How does cycle count recommendation works.

    I setup my cycle count codes as well as assigning them to the item master, when I run cycle count recommendations there are lots of items need to be counted. Here are my questions 1.     Where do I go to enter the new counts? 2.     When I enter the

  • Fixed duration tasks and time budget

    I am fighting with MS Project 2013 and cant figure out how to do this task: I am creating a schedule for a project. It is to be used as an estimate for planning purposes.    What I want to do is list a number of Fixed Duration tasks and assign the ta

  • WAD print error

    Hi, I have created multiple webtemplates with BEx WAD. A couple of them have print buttons and are able to print. When I want to group them inside one webtemplate with tabbed pages, I am no longer able to print to PDF. My pdf is empty or I get the im

  • Cfform type="flash"  and javascript

    <!--- THIS IS THE CODE - some code removed, however you get the idea) ---> <script type="javascript"> function redirectPage() window.location = "form.cfm?p=control_par.cfm?p=term_edit"; </script> <cfform format="flash" name="visitrequest" method="pos