Passing XML in CLOB and processing data from CLOB

Hi All,
I am facing problem when trying to access xml data from CLOB.
My stored procedure is as below:
CREATE OR REPLACE PROCEDURE usp_XMLTEST2
in_XmlDoc IN CLOB
IS
BEGIN
UPDATE XML_TEST
SET SETFLAG='N'
WHERE (ITEMCODE,WAREHOUSE) IN
SELECT
TO_NUMBER(EXTRACT(COLUMN_VALUE,'//Entry/@ItemCode')) ,
TO_NUMBER(EXTRACT(COLUMN_VALUE,'//Entry/@Warehouse'))
FROM TABLE(XMLSEQUENCE( EXTRACT(XMLTYPE(in_XmlDoc), '//List/*' )))
END usp_XMLTEST2;
Exec usp_XMLTEST2('<List Daemon="2"><Entry ItemCode="112333" Warehouse="4101" /><Entry ItemCode="112333" Warehouse="4103" /></List>');
It gives error:
ERROR at line 1:
ORA-22905: cannot access rows from a non-nested table item
ORA-06512: at "PUBLIX.USP_XMLTEST2", line 8
ORA-06512: at line 1
Please devise solution to this problem.
Regards
Nitin Bajaj

Try casting it:
SELECT TO_NUMBER(EXTRACT(COLUMN_VALUE,'//Entry/@ItemCode'))
TO_NUMBER(EXTRACT(COLUMN_VALUE,'//Entry/@Warehouse'))
FROM TABLE(cast( XMLSEQUENCE( EXTRACT(XMLTYPE(in_XmlDoc), '//List/*' )) as XMLSequenceType ) )
Anton

Similar Messages

  • How to store ,retreive and edit  data from an xml file

    I am new to XML. I am creating a phone book in JSP with backend as an XML file.How can I store retrieve and edit datas from a jsp file.
    Please provide me with examples.I dont want to use bean.
    Please provide examples

    You will have to do some leg-work yourself. You will probably want to use DOM to parse and manipulate your XML data. Xerces (xml.apache.org) is a good open source parser. There are extensive examples on their site.
    - Saish

  • BI process has gotten stuck and the data from CRM hasn't gotten updated

    hai friends am working for BI in CRM....
    BI process has gotten stuck and the data from CRM hasn't gotten updated in the BI cubes.
    can any one help me to solve this issue???
    WHAT MAY BE THE PROBLEM AND WHAT WILL BE THE SOLUTION???
    IS THERE I NEED TO RESTART THE PROCESS CHAINS OR WHAT?

    Is it already scheduled for a daily run or manually you are running the process chain?
    If its manually running then you can select your process chain, and then right click on the start process --> Maintain variant --> Scheduling --> in the scheduler screen , you can click on the Immediate, save the changes and save in the next screen, once it comes back in the main screen, you have a scheduling Icon (Clock idoc). Click on it. Once done then it will be oK.
    Or firs the process only failed, then you can right click on the failed process and then choose "Repeat" option to repeat the  process.
    Also you can check the source system connection is fine or not? RSa1 --> Source system --> CHECK
    Edited by: Murali M on Sep 2, 2010 6:37 AM

  • Good for processing data from a web application?

    It seems like all the examples provided for ASA are about processing data streaming in from IoT or mobile apps. Is ASA appropriate for processing data from websites? For example, I have a multi-tenant web API and I need to roll up usage and calculate billing
    for my clients. My clients can upload resources with me which I store in blob storage. But blob storage gives me no way of knowing how many resources have been uploaded and how long I have stored them. Would ASA be a good fit for calculating these figures?

    I have solved this task in folowing way:
    I have add ADF read only form to my page (which I need anyway). The form displays data selected in the graph (using another VO, which is linked to graph VO). Command button calls my managed bean, which handles the data via the bindings executables (view iterators).

  • TO Get  Ensuring Exactly Once Processing data from sender soap adapt

    To XI Specialists
    Now Im trying to get Ensuring Exactly Once Processing data from sender soap adapteter.
    My plan is that send data from Receiver adapter, to Sender adapter by SOAP.
    (1st interface is ABAP to Soap "BE", 2nd interface is Soap to File "EO")
    Sender SOAP adapter will returun Ensuring Exactly Once Processing data.
    (see SAP HELP, http://help.sap.com/saphelp_nw70/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm )
    AND I want to get Ensuring Exactly Once Processing data, I want to determine what to do in ABAP proxy.
    SO I made and tested 2interface. but error occuered.
    I checked the error, and Now I know what is the cause.
    The cause is that Ensuring Exactly Once Processing data didnt enter the payload, at Receiver Adapter.
    1st interface coulnt get the payload data, so mapping error occuered....
    Please give me help,
    <b>"How to get Ensuring Exactly Once Processing data From Sender SOAP ADAPTER"</b>
    or
    <b>"How to enter Ensuring Exactly Once Processing data into Payload of Receiver SOAP ADAPTER"</b>
    and more excelent way....
    our XI is version7.0 and SP10
    Please teach me your wisdom!
    Naoki Kurihara

    I seeked and I noticed that
    maybe I catched the message but the message dont have payload.
    so I got no_payload error.
    I checked SAP note.
    I noticed, no_payload error will be managed to nomal message at SP13....
    my XI is SP12....
    I ll seek for another way!!
    Thank you! noaki

  • Downloading MA, Contract and Attachments data from CLM

    Hi,
    Can someone please let me know how to download MA, Contracts and attachment data from SAP CLM? Meaning, contracts created in CLM needs to be treated as legacy data and then uploaded into another system. I understand that the Search Master agreement report and Sub Agreement report can pull any field level data from the MA and SA. But how does one download data from Contracts UI and Attachments?
    Any help is appreciated.
    Thank you,
    Vikram

    Hi Vikram,
    If I can get you exactly you are talking about downloading data,
    You can go for 'search all Master agreements' or 'Search all MA and Contract Documents'click on excel/pdf icon mentioned at top right corner and download it.
    To Download specific Contract you go for 'Search master Agreements and Contract doucuments' click on specific CD and it will be auto downloaded.
    The other way is exporting oma files, which is done in setup>system setting>export, go for options, data set/single object and export it.
    Other way you can do via Workbook process which is a bit lengthy one.
    Regards,
    Ravi

  • How to Create an R/3 source system and load data from there

    Hello All,
    Till now I have only worked with Flat files. I want to create an R/3 source system and extract data from there on to my Info Providers.
    Does anyone has detailed steps for that. I am using BW 3.5 system
    Thanks n Regards,
    Abhishek

    1. Type Transaction WE30. Check iDoc types
    2. Type Transaction SM59. Maintain RFC destinations
    a.) Open the RFC Destinations. b.) Find your Source System and double click on it. c.) Technical setting should contain information regarding yoursource system d.) Logon Information should contain source system client and name & password for you remote logon. We use RFC_SAB for BW logon to R/3 and RFC_AAE for R/3 logon to BW. Password for both is always xxxxxxx. e.) Execute your 'Test Connection' & 'Remote Logon'. You should NOT be prompted for a password, if you are then the logon info is incorrect. f.) Repeat above to verify RFCs for other systems (CRM etc)
    3. Type Transaction WE21. iDoc Processing Ports.
    a.) Select 'Ports' and then 'Transactional RFC'. b.) Click on the Port # for you source system. c.) Verify description & SAP R/3 version.(BW 2.1C should be release 4.x) d.) RFC Destination should be one created in SM59. If non-existent then create one
    4. Type Transaction SE16. Data browser (for R/3 &#61663;&#61664; BW Connections)
    5. Type Transaction SM30. Msg Types & Assignment to iDocs
    Enter 'EDIMSG' in the Table/View field. Click on the 'Enter Conditions' option for Restrict Data Range. Click 'Maintain'. Select Message Type. Then enter 'RSSEND' in "From' field. Verify that the Basic Type matches what is in your RSBASIDOCtable for each of your connections. If any are missing any entries you must create them as follows: Create another session and type Transaction WE30. Enter IDoc Type (ZSBAXXX) in Obj. Name field (Suggestion: Start new type with 'ZS' + Transfer Structure Prefix + (3)#'s) Select Create. Select "Create from Copy'. Enter 'RSSEND" in 'Copy From' field Enter Description (i.e. IDoc Type for BW Development) Execute (Green Check). Repeat for other missingentries.
    6. Go to the SM30 main screen. Clients Overview
    Enter 'T000' in the Table/View field. Click 'Maintain'. Verify correct Client and Description. If incorrect enter.
    8. On BW Type Transaction WE20. Partner Profiles
    9. On R/3 Type Transaction WE20. Partner Profiles
    10. Check all is correct

  • I recently purchased a MacBook Pro and transferred data from my MacBook via Ethernet cable. I did not consolidate my accounts and kept using my MacBook. Can I update the data transfer now using Ethernet and can I consolidate my accounts?

    I recently purchased a MacBook Pro and transferred data from my MacBook using Migration Assistant via Ethernet cable.  I was confused about consolidating my accounts, so I continued to use my old MacBook.  Can I now update the data transfer using the same process and begin using my new MacBook Pro exclusively?  How do I consolidate my existing accounts?
    Thank you.

    Of course. It does everything it did before Yosemite. You just won't be able to send or receive SMS messages with it.

  • ADF 11g can not select and copy data from cell of readonly table in IE

    hi,
    In ADF 11g, when render view object as readonly table with Single RowsSelection, using IE browser can not select and copy data from the cell, but it work in firefox.
    is it a bug?
    Edited by: kent2066 on 2009-5-18 上午8:46

    Hi Timo,
    Sorry forgot to mention versions.
    We are using 11.1.1.7 and IE 9.
    I tried in Google but could not get the solution.
    Kindly let me know solution for this.
    PavanKumar

  • I need to back up and sync multiple iPhones to a single iMac.  Each iPhone has a separate Apple ID and the data from each iPhone needs to be backed up separately from the others.  How can I do this without getting all of the contacts, etc. mixed? Tnx

    I need to back up and sync multiple iPhones to a single iMac.  Each iPhone has a separate Apple ID and the data from each iPhone needs to be backed up separately from the others.  How can I do this without getting all of the contacts, etc. mixed? Tnx

    This might help: http://support.apple.com/kb/HT1495.

  • Best way to export and import data from an iPhone app?

    How do people here prefer to export and import data from an iPhone app?
    For example, suppose your app creates or modifies a plist. It might be nice to provide that plist to the user for separate backup and later allow them to re-import it.
    How do people do that? Email the plist to an address? If so, how would one later get it back in?
    Is there a common way people do this kind of thing?
    Thanks,
    doug

    Or maybe the best approach for this is some sort of file synchronization feature? Is there a way of having files from the app's filesystem automatically get stored on the computer's filesystem when synchronizing and vice-versa?
    doug

  • Help with writing and retrieving data from a table field with type "LCHR"

    Hi Experts,
    I need help with writing and reading data from a database table field which has a type of "LCHR". I have given an example of the original code but don't know what to change it to in order to fix it and still read in the original data that's stored in the LCHR field.
    Basically we have two Function modules, one that saves list data to a database table and one that reads in this data. Both Function modules have an identicle table which has an array of fields from type INT4, CHAR, and type P. The INT4 field is the first one.
    Incidentally this worked in the 4.7 non-unicode system but is now dumping in the new ECC6 Unicode system.
    Thanks in advance,
    C
    SAVING THE LIST DATA TO DB
    DATA: L_WA(800).
    LOOP AT T_TAB into L_WA.
    ZDBTAB-DATALEN = STRLEN( L_WA ).
    MOVE: L_WA to ZDBTAB-RAWDATA.
    ZDBTAB-LINENUM = SY-TABIX.
    INSERT ZDBTAB.
    READING THE DATA FROM DB
    DATA: BEGIN OF T_DATA,
                 SEQNR type ZDBTAB-LINENUM,
                 DATA type ZDBTAB-RAWDATA,
               END OF T_TAB.
    Select the data.
    SELECT linenum rawdata from ZDBTAB into table T_DATA
         WHERE repid = w_repname
         AND rundate = w_rundate
         ORDER BY linenum.
    Populate calling Internal Table.
    LOOP AT T-DATA.
    APPEND T_DATA to T_TAB.
    ENDLOOP.

    Hi Anuj,
    The unicode flag is active.
    When I run our report and then to try and save the list data a dump is happening at the following point
    LOOP AT T_TAB into L_WA.
    As I say, T_TAB consists of different fields and field types whereas L_WA is CHAR 800. The dump mentions UC_OBJECTS_NOT_CONVERTIBLE
    When I try to load a saved list the dump is happening at the following point
    APPEND T_DATA-RAWDATA to T_TAB.
    T_DATA-RAWDATA is type LCHR and T_TAB consists of different fields and field types.
    In both examples the dumps mention UC_OBJECTS_NOT_CONVERTIBLE
    Regards
    C

  • What are the settings master data and transaction data from r/3 to in APO.

    Hi all,
    Can u suggest me ,I need to conform in apo what are the setting when transfering master data and transaction data from r/3 to APO.
    frm
    babu

    Hi
    The data get transfered from R3 to APO via CIF which is SAP standard.
    Please find enclosed herewith the link which will provide you detail information regarding it.
    http://help.sap.com/saphelp_scm41/helpdata/en/9b/954d3baf755b67e10000000a114084/frameset.htm
    Please let us know if it helps you. Please also let us know if you have any more specific question.
    Thanks
    Amol

  • Retrieving calendar and contacts data from OSX Server Time Machine

    Due to a system failure I went out an brought a Macbook Air. My other Mac is away being assessed by a repair shop.
    By plugging in the Time Machine drive from the other Mac I have managed to recover my files, videos, photos etc. Contacts and Calendars however are proving to to more difficult.
    The old Mac was setup using Mavericks Server as a workaround for the removal of Calendar and Contacts iTunes sync in Mavericks.
    The Contacts and Calendars are currectly synced with an iPad and an iPhone.
    Is there anyway of recovering the Contacts and Calendars data from the Time Machine backup drive, My iPad or iPhone?
    Any help appreciated with this complicated problem.
    John

    It sounds as if it is the same, or closely related, to this thread  Time Machine Service Page in Server App says "Error Reading Settings"

  • HT201250 Circle and cross through iTunes icon afte the seagate hard drive replaced and restored data from time machine backup.

    Circle and cross through iTunes icon: had the seagate hard drive replaced and restored data from time machine backup. Why does the iTunes icon have a circle and cross through it? As though incomplete? tried everything and still Circle and cross through iTunes icon.

    No it isn't something you'd find on the computer, it has to be custom installed from the 10.6 installer disc or Software Update if it wasn't before.  It allows you to use older PowerPC applications on your Mac.   On the other hand double check the version of iTunes you have does not require 10.7 minimum either.

Maybe you are looking for