Problem in extracting data

Hi All
i am getting problem while extracting data.
XML is .
<po:PurchaseOrder xmlns:po="http://www.oracle.com/PO.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oracle.com/PO.xsd
http://www.oracle.com/PO.xsd">
<PONum>1005</PONum>
     <Company>Oracle</Company>
<Item>
<Part>9i Doc Set</Part>
<Price>2550</Price>
</Item>
<Item>
<Part>8i Doc Set</Part>
<Price>350</Price>
</Item>
</po:PurchaseOrder>
and i am writing SELECT query as
select p.extract('/(PurchaseOrder/Company)').getStringVal() from po_tab2 p
then i get blank rows.
SQL> select p.extract('/PurchaseOrder/Company').getStringVal() from po_tab2 p;
P.EXTRACT('/PURCHASEORDER/COMPANY').GETSTRINGVAL()
6 rows selected.
but if i use only root element in xpath then it displays result with xml data.
SQL> select p.extract('/PurchaseOrder').getStringVal() from po_tab2 p;
P.EXTRACT('/PURCHASEORDER').GETSTRINGVAL()
<po:PurchaseOrder xmlns:po="http://www.oracle.com/PO.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchem
a-instance" xsi:schemaLocation="http://www.oracle.com/PO.xsd http://www.oracle.com/PO.xsd">
<PONum>1001</PONum>
<Company>Oracle</Company>
<Item>
<Part>9i Doc Set</Part>
<Price>2550</Price>
</Item>
<Item>
<Part>8i Doc Set</Part>
<Price>350</Price>
how can i extract data from child nodes.

seems like problem with the namespace.
pls add the third argument to the extract function i.e the namespace.
select p.extract('/PurchaseOrder/Company', 'target namespace').getStringVal() from po_tab2 p;

Similar Messages

  • Problem with extract data from R/3 to BW

    I want extract data from R/3 system.the problem is when I run the infopackage,I can see the status is yellow In the Monitor and the data can't extract to BW.but in the source system,the job of extracting data has been finished.
    (use the Tcode: WE02)the Outbound IDocs and Inbound IDocs are OK,but in the BW system ,I canu2019t see the Inbound IDocs.
    In the source system use Tcode: SM50,I can see the process SAPLQOWK is running for a long time and run out system memory.
    use Tcode : SM58, I execute LUW, the data can transfer to BW system,but the report SAPLQOWK is not stop.
    it would be stopped by canceling the process manually in operating system or it run out time.
    why can't i extract data from R/3 system successfully ?
    why the process SAPLQOWK can't finish?
    how can i do?

    Hi,
    I hope the note 527481 would help you to sort out this problem.
    Regards,
    Anil Kumar Sharma .P

  • I have a problem to  extract data from oracle dump file (.dmp) using oracle database or any other tools.

    There is IMP utility which provides me data as graphical way. But i need extract data in such a way so that i could able to use in my application.
    thanks,
    mohan

    Hi,
    EdStevens
    Actually I was using SQL Developer. Sorry for the wrong define question. Now the real problem is:
    I want to read or extract data in a txt file from Oracle Dump (.dmp) file without using Oracle sqlPlus or Oracle Database.
    No need to say that i am able to extract dump data using sqlPlus. But for that, there is a little burden to install oracle database
    or sql Developer.
    I also listen about Oracle Loader a little bit. Is it a tool for providing extraction of data from Oracle dump file.
    Thanks for your previous reply,
    And now waiting for your suggestion.
    thanks,
    mohan

  • Problem when extracting data from R/3 to BI

    Hi Experts,
    I am facing a strange problem. While i am extracting data from R/3 yo BI. One Infopackage is running successfully and i can see the data at Bi side. But while I am running another infopackage for another data source it is taking long time and at last loading results into failure.
    I have gone through SDN also but not able to find any inputs.
    I think it might be the reason with the Idocs.  The error it is giving is
    Request still running
    Diagnosis
    No errors found. The current process has probably not finished yet.
    System Response
    The ALE inbox of BI is identical to the ALE outbox of the source system
    or
    the maximum wait time for this request has not yet been exceeded
    or
    the background job has not yet finished in the source system.
    Current status
    All of the packets from the source system arrived
    I am not able to see list of Idocs in sm58.
    What might be the reoson?
    Regards,
    sridhar

    Hi,
    See if its a full schedule it again by deleting any old requests....
    And then when going thru job overview>in the sourcesystem>u can execute there itself and chk the status of the job...
    If its no there then the job might have missed up due to some unfair reason....it happens sometimes also..some times it will be in scheduled only....once select all active/cancled/finished and so on...
    And also chk under details tab...under extraction....whether data selection scheduled and requested and finished....????
    If not there try to run it again and at the same moment monitor in source with jobname as BIREQU_* and select all input entries as canceled/active/finished......
    rgds,

  • Problems to extract data from 0HR_PY_1

    Hi Experts,
    I'm using BW v.7 to extract data from standard data source 0HR_PY_1 of SAP-ECC, with delta update.
    When I try to extract the data job finishes with error (red status) and all data-packages have error message ABORT in customer routine 9998.
    Although I'm using BW v.7 I have activated 3.x extraction (DataSouce -> InfoSource -> Update Rule).
    Any help will be welcome!
    Alex

    I've found the problem by myself

  • Problems in extracting data from r/3

    Hi Guys
    I am extracting data from r/3(QA) to BW(QA), into an ODS. Now, my previous load failed but i saw from RSMO that the load had more than 4 million records. I am scheduled the load again. And in monitor(RSMO) it says:
    (yellow symbol) 17:24:50 ( 762040 From 0 Records )
    and in status, it says everything ok, no error, process is still goin on. And in details this is the last line at the moment:
    "Transfer (IDocs and TRFC): Missing messages or warnings"
    Data Package 29 : arrived in BW ; Processing : Selected number does not agree with transferred n
    "Processing (data packet): Warning received"
    Data Package 29 ( 23810 Records ) : Everything OK.
    I am assuming that there are 100 packages like this in total. Will my data load into the ODS finally??
    Thanks.

    Hi Chintai,
    If you are extracting delta records, then you can view the number of records in RSA7.
    I suggest you go to details tab of the monitor, you would be knowing the activites that are taking place..
    Check if your transfer rules, update rules are done for atleast for few of the data packages.
    Regards
    Manga(Assign points)

  • Problem in extracting data from source system

    HI
       I am comparing source system and data in bW for a particular datasource.In this process in source system transaction RSA3 when i am trying to extract data its not showing the exact count.I couldnt able to understand the setting options like Datarecord/calls & Displa extr.calls in transaction RSA3.can some one assist in this..?

    Vara Prasad,
    I do know about the popup , but then the popup is displayed only AFTER the extraction completes. Asusming that you have about 10 million records - I cannot find the number of records without actually extracting it and my RSA3 will fail because it is too large of RSA3 , I was talking about if there was a method by which I could fins the number of records alone without extracting the data / running RSA3.
    Also if your extractor has 20,000 records , and if you set 10 datapackets of 1000 each the popup will display 10000 whih is incorrect and you would have to increase the data packet / package size to finally arrive at the right number...

  • Problem in extracting data from Z totals table (special Ledger)

    Hi Gurus,
    I am in a task of pulling in specific fields from the Z Totals Table of Special Purpose Ledger into the cube. We only need totals records and do not need line items.
    In SBIW, i have generated the transfer structure and datasource for totals table as per the steps of Generic extraction.
    The problem is that am not able to see all the fields (like balance carried forward, total transactions) in the selection fields screen. While extracting i choose totals records only. But now my datasource got generated and am able to see that it is active (green). But some important fields like balance are missing.
    Please let me know your suggestions / ideas.
    Thanks
    Shreya

    We have the exact same Challenge and Issue.   When I view my generated extract structure 3FI_SL_ZB_TT, I don't see any of my key figures.  This was created off the Special Ledger Summary or totals table.
    For Instance, I need fields KSLVT through KSL16. That is, Balance Carried forward in Group currency (period 0) and, total of transactions of the period in group currency, (periods 1-16).  I don't see these at all in the generated extract structure.  Does that mean it must be appended in via transaction RSA6?
    Also, to get the Balance Carried forward do I have to add 0BALANCE to the extract structure?
    Finally, besides the beginning balance, which wiil remain constant, can I get Month-end Year To Date Balances using this approach.  Note, I don't need detail from the line items table.  I just want to make sure I don't need to use that in concert with a Delta and ODS to get my Month End YTD Balance.  I only need this cube for Balances.
    Thanx,
    Joe M

  • Problem to extract data using DS 2LIS_11_VAHDR & 2LIS_11_VAITM

    Hello Experts,
    my requirement is to extract the SD sales Item & sales header data int BI.  while executing the Reports in BI  I find some incosistencies in data
    Ex:  for for some Sales organizations  
          0CRM_NUMDOC = 17 and the corresponding   0NETVALORD = 0,00  
    and for some sales organization
         0CRM_NUMDOC = 0 and the corresponding   0NETVALORD = 5200,00  
    we are using  the data sopurce 2LIS_11_VAHDR to load Document header data  and the data sopurce 2LIS_11_VAITM to get  Item Net value data. and used two trtansformations to the same SAP standard cubes 0CSAL_C05 & 0CSAL_C03.
    asper  my analysis in development system I find 
           VBAK contains  1405 records but the DS 2LIS_11_VAHDR extracts only 1235 records.
    but
           VBAP conains   2665  records and the DS 2LIS_11_VAITM extracts all 2665  records.
    is it creats the problem?
    I deleted the setuptables and again fill them  even thought I have the same problem ?
    If you have any idea regarding this issue please share with me.
    Thanks in advance.
    cheers.............

    HI,
    Check indeed the extraction in your source system with RSA3.
    Also perform the load and check your data in PSA (before any transformation takes place).
    Are you going to use delta or full loading? I assume it's delta? So if you perform your initial load with data, no use of the setup table is required...
    If you have too much data to do this, try an initial load without data, first delta load and next a full repair load (which will read your setup table). Do not forget to fill your setup table with all the historical data you need in transaction SBIW.
    Hope this helps.
    Best Regards,
    Michel Hoefkens

  • Problem in extracting data from another BW server

    Hello Experts
    I have two BW servers in landscape. One is used as stagins server and second server exctracts data form this server and is used as reporting server.
    I can see data in DSOs in stagins server, also checked export datasources in RSA3 in staging server and works fine.
    In reporting server delta infopackage runs fine but extracts 0 records. i tryied deleting and redoing init still dosent help. its not throwing any error.
    what could be problem and how can i troubleshoot and correct it?
    Thanks in advance
    Regards
    Sudeep

    Try these Steps:
    1.Replicate and activate the datasource(if BI 7) else activate Transfer Rules.
    2.Create an infopackage without selections as Full update and run..
    3.If no records are still coming (0)  then check the RFC connection b/n Staging & Reporting BI.
    Go to SM59 ,first in Reporting BI and chk the :authorizaiton test & rfc test
    again go to Staging BI and test for RFC connection to Reporting BI -->authorization test & rfc test
    Sometimes password etc are changed just be careful and chk them properly.
    4.create a Dummy DSO and load data to it from flat file on staging server.Now replicate its export datasource to Reporting BI.
    If you can load data to PSA of this dummy datasource then there is some other problem.If there is no record comign then definately you need to go through step-1 to 3.
    Regards,
    RK

  • Problem in Extracting Data for one cube to another

    Hi,
    This problem exists in Quality Environment of 3.x version.We have two financial cube.
    Cube A1 - Sourced through R/3 system (delta update)  and Cube B1- Sourced through A1 cube.(Full update). These two cubes are connected through update rules with one to one mapping without any routines.
    Basis did a copy of  back-end R/3 system from Production to Quality server.This happened approximately 2 months back.
    The Cube A1 which extracts delta load from R/3 is loading  fine. but for the second cube,  (fextraction from previous cube A1)  i am not getting full volume of data instead i m getting meagre value but the loading shows successful status in the monitor.
    I tried through giving conditions in my infopackage (as it was given in previous year's loading) but then also its fetching the same meagre volume of data.
    Any lights on this will be more appreciable...
    Swami

    Hi Swami
    As you said below issues is in QA system, please check with below and revert back to me if this doesnt solve your problem
    Please check update rules of InfoCube  B1 for all key figures and characteristics, you may find certain objects with "NO UPDATE", (this happens sometimes while copying production system to any other system), if you find any object with"NO UPDATE" then compare this object mapping with Production system update rules, if its not sync then change update mode accordingly
    Please check number of characteristics and key figures existing at InfoCube  B1(production) and compare with InfoCube  B1 (QA), if this doesn't match then check for missing object and add to InfoCube B1
    Hope this will solve your issues!
    -DU

  • Xquery  Problem to Extract Data

    Hi,
    Here is my code, can some one help me to find how to extract the data of individual node like Address, etc,
    declare
    vTempData SYS.Xmltype :=
    xmltype('<?xml version="1.0" encoding="UTF-8" ?>
    <GetAddressResponse xmlns="http://soap.advantagecs.com/WebService/WEB/2005/R1/Customer/">
    <Address AddressCode="ORIGINAL" FullName="WBC 3" PrimaryName="WBC 3" CompanyName="WBC" Department="" PhoneNumber="" FaxNumber="" BusinessPhone="" EmailAddress="" JobTitle="" JobPosition="" CommunicationPreference="M" PromoteByPhone="false" PromoteByFax="false" PromoteByEmail="false" PromoteByMail="false" IsOkAsBillTo="true" IsOkAsShipTo="true" xmlns="http://schemas.advantagecs.com/WebService/WEB/2005/R1/DataType/Customer">
    <NameElements First="WBC" Middle="" Last="3" Suffix="" Title=""/>
    <PostalAddress Line1="" Line2="" Line3="" City="FW" StateCode="TX" PostalCode="76114" County="" CountryCode=""/>
    </Address>
    </GetAddressResponse>');
    begin
    dbms_output.put_line(substr(vTempData.extract('/GetAddressResponse/PostalAddress/@City','xmlns="http://soap.advantagecs.com/WebService/WEB/2005/R1/Customer/"').getstringval(),1,255));
    end;
    Thanks

    Two basis issues..
    #1 Postal Address is inside Address...
    #2. Address defines a new default namespace
    So you need the following
    SQL> set serveroutput on
    SQL> declare
      2    vTempData SYS.Xmltype := xmltype(
      3  '<?xml version="1.0" encoding="UTF-8" ?>
      4  <GetAddressResponse xmlns="http://soap.advantagecs.com/WebService/WEB/2005/R1/Customer/">
      5    <Address AddressCode="ORIGINAL" FullName="WBC 3" PrimaryName="WBC 3" CompanyName="WBC" Department="" PhoneNumber="" FaxNumber="" Busi
    nessPhone="" EmailAddress="" JobTitle="" JobPosition="" CommunicationPreference="M" PromoteByPhone="false" PromoteByFax="false" PromoteByEma
    il="false" PromoteByMail="false" IsOkAsBillTo="true" IsOkAsShipTo="true" xmlns="http://schemas.advantagecs.com/WebService/WEB/2005/R1/DataTy
    pe/Customer">
      6      <NameElements First="WBC" Middle="" Last="3" Suffix="" Title=""/>
      7      <PostalAddress Line1="" Line2="" Line3="" City="FW" StateCode="TX" PostalCode="76114" County="" CountryCode=""/>
      8    </Address>
      9  </GetAddressResponse>'
    10  );
    11  begin
    12    dbms_output.put_line
    13    (
    14      vTempData.extract
    15      (
    16        '/ns1:GetAddressResponse/ns2:Address/ns2:PostalAddress/@City',
    17        'xmlns:ns1="http://soap.advantagecs.com/WebService/WEB/2005/R1/Customer/"
    18         xmlns:ns2="http://schemas.advantagecs.com/WebService/WEB/2005/R1/DataType/Customer"'
    19      ).getstringval()
    20    );
    21  end;
    22  /
    FW
    PL/SQL procedure successfully completed.
    SQL>

  • Problem with extracting data

    I am creating one custom report for that i have to extract Part Type,BUYER_ID,PRESENT_PART_COST,NEW_PART_COST these all are classification fields.. is there any FM for extracting all these fields...
    Or any other method of doing it..
    waiting for reply...
    Thanks.

    784633 wrote:
    i use ado in c++ builder 5.0That version is from 1999 right?
    http://www.embarcadero.com/products/cbuilder/previous-versions
    Support ended about the time Oracle 10g first was released.
    this field has value for an update: update "APP"."MASTER" set "INFO" = 'orraa 9' where ROWID = 'AAANmfAAEAAAACOAAA';
    when i extract the data i get the infrmation update "APP"."MASTER" set "INFO" = "ORA" where ROWID = "AAANmfAAEASo row is truncated only in the specific app/dev tool?

  • Can not extract data into BW from SQL SERVER

    Dear All,
      I meet a problem to extract data from database(MS SQL Server 2000(sp3)) into BW now and can not extract data into BW ODS, even PSA, In the monitor, display yellow light(0 from 0 record), detail message just display message "data request arranged" "confirmed with: confirmation" in requests(message) step; "missing message: request received" in extract (message)  step; "no data" in processing(data packet) step and so on. but in fact, there are two records in my database test table and DB connection is OK. Even I can extract data from another test oracle database into BW ODS successfully.
       Our BW system has two BW applicaton server and use oracle database. the one application server locates on IBM AIX host. the another one locates on one NT server. the application server on NT server is used for data extration from MS SQL SERVER  database into BW oracle database. and MS SQL SERVER and NT platform application server locate on same one host. DBSL was installed on the NT application server already. and DB connector also was created successfully for MS SQL SERVER and datasource also was generated. DBSL type is Kernel640-WIN-IA32bit-unicode. my BW system is ECC5.0/UNICODE/ORACLE. all table/view/field name of MS SQL server is upcase and have not any specific character. for example: ZDEMO etc.
    wait your help.
    Thanks in advance.
    Billy

    Hi  Ravi,
    Could you help me to get knowledge about the followings:
    approximately how many records    extracting and transfering  from SAP R/3 to BIW  in an organisation. for that how much time  will take .
    How to extract data from  two are three source system  to BIW. Kindly help me with step by step explanation .If any screen shots with documents pls fwd to my ID. "[email protected]"
    Your help highly appreciated.
    Thanks.
    Hema

  • Error while extracting data from a remote system

    Hi,
    I am facing problem while extracting data from a remote system. The connection is alright I can extract the table required from the remote system,but when I deploy it I get this error
    ORA-04052: error occurred when looking up remote object [email protected]@ORACLE_UBN_15_LOCATION1
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28000: the account is locked
    ORA-02063: preceding line from UBNDW@ORACLE_UBN_15_LOCATION1
    here Scott.demo1 is the table and UBNDW is the sid of the remote system and ORACLE_UBN_15_LOCATION1 is the location. Please help me out with this
    Thanks

    Hi,
    IDOC's need to be processed manually either in OLTp or in BW depending on the failure. Error msg in monitor status will take u to either BW or OLTP whernever there is a prob. Process IDOC's , this will start the left over packets and will finish the load.
    we hav to check IDOC in WE05(t-code) and know the status these are WE51,WE52,WE53 AND GOTO WE19 there we hav to execute the exist Idoc will succesfully loaded Idoc
    Goto St22 see the short dump error msg..
    post if there any inf..
    Thanks,
    Shreya

Maybe you are looking for

  • Editing in Photoshop saves jpeg to "Originals", not "Modified"

    I recently started using Photoshop CS6 to edit my photos from iPhoto 8.1.2. I've set up the preferences to use CS6 as my external editor, and "Use Raw when using external editor" (I am shooting raw format). The file opens fine in Adobe Bridge, I make

  • Major ipod problem, glitched music. help.

    Ok, so here goes the story. 2nd gen ipod, 16GB. this just randomly happened- around a week after i homeshared with my friend and bought some new music. THERE ARE NO DUPLICATES IN MY LIBRARY CONCERNING THIS MUSIC!!! Around a week ago, I bought the alb

  • Select Query in Want unique time.

    Please go through below detail I have one table. File Id, Date, Time 00001 10/12/2010 10:10 00001 10/12/2010 10:10 00001 10/12/2010 10:10 00001 10/12/2010 10:11 00002 10/12/2010 10:10 00002 10/12/2010 10:10 I want unique fileid,date and time in selec

  • Ibook g4 keeps crashing

    Hi, I bought my iBook G4 off a friend whos upgraded to a macbook pro a few weeks ago and it was fine, i decided to re-install OS X 10.3 on it to clear everything on it and that was also fine. But within a few days it started freezing and not allowing

  • Can we change company code in maintenance order

    Hi All, We have changed the maintenance plant of Equipment from 1100 plant to 1200 plant. Planner group is by default appears in work order once the technical object is selected in order creation. Can we change the planning plant and company code in