Read data from xml files and  populate internal table

Hi.
How to read data from xml files into internal tables?
Can u tell me the classes and methods to read xml data..
Can u  explain it with a sample program...

<pre>DATA itab_accontextdir TYPE TABLE OF ACCONTEXTDIR.
DATA struct_accontextdir LIKE LINE OF itab_accontextdir.
DATA l_o_error TYPE REF TO cx_root.
DATA: filename type string ,
             xmldata type xstring .
DATA: mr      TYPE REF TO if_mr_api.
mr = cl_mime_repository_api=>get_api( ).
mr->get( EXPORTING  i_url     = 'SAP/PUBLIC/BC/xml_files_accontext/xml_accontextdir.xml'
              IMPORTING  e_content = xmldata ).
WRITE xmldata.
TRY.
CALL TRANSFORMATION id
      SOURCE XML xmldata
      RESULT shiva = itab_accontextdir.
  CATCH cx_root INTO l_o_error.
ENDTRY.
LOOP AT itab_accontextdir INTO struct_accontextdir.
    WRITE: / struct_accontextdir-context_id,
           struct_accontextdir-context_name,
           struct_accontextdir-context_type.
    NEW-LINE.
    ENDLOOP.</pre>
<br/>
Description:   
In the above code snippet I am storing the data in an xml file(you know xml is used to store and transport data ) called 'xml_accontextdir.xml' that is uploaded into the MIME repository at path 'SAP/PUBLIC/BC/xml_files_accontext/xml_accontextdir.xml'.
The below API is used to read a file in MIME repo and convert it into a string that is stored in ' xmldata'. (This is just a raw data that is got by appending the each line of  xml file).
mr = cl_mime_repository_api=>get_api( ).
mr->get( EXPORTING  i_url     = 'SAP/PUBLIC/BC/xml_files_accontext/xml_accontextdir.xml'
              IMPORTING  e_content = xmldata ).
    Once the 'xmldata' string is available we use the tranformation to parse the xml string that we have got from the above API and convert it into the internal table.
<pre>TRY.
CALL TRANSFORMATION id
      SOURCE XML xmldata
      RESULT shiva = itab_accontextdir.
  CATCH cx_root INTO l_o_error.
ENDTRY.</pre>
Here the trasnsformation 'id ' is used to conververt the source xml 'xmldata' to resulting internal table itab_accontextdir, that have same structure as our xml file 'xml_accontextdir.xml'.  In the RESULT root of the xml file has to be specified. (In my the root is 'shiva'). 
Things to be taken care:
One of the major problem that occurs when reading the xml file is 'format not compatible with the internal table' that you are reading into internal table.  Iin order to get rid of this issue use one more tranformation to convert the data from the internal table into the xml file.    
<pre>TRY.
      CALL TRANSFORMATION id
        SOURCE shiv = t_internal_tab
        RESULT XML xml.
    CATCH cx_root INTO l_o_error.
  ENDTRY.
  WRITE xml.
  NEW-LINE.</pre>
<br/>
This is the same transformation that we used above but the differnce is that the SOURCE and RESULT parameters are changed the source is now the internal table and result is *xml *string. Use xml browser that is available with the ABAP workbench to read the xml string displayed with proper indentation. In this way we get the format of xml file to be used that is compatable with the given internal table. 
Thank you, Hope this will help you!!!
Edited by: Shiva Prasad L on Jun 15, 2009 7:30 AM
Edited by: Shiva Prasad L on Jun 15, 2009 11:56 AM
Edited by: Shiva Prasad L on Jun 15, 2009 12:06 PM

Similar Messages

  • Reading data From XML file and setting into ViewObject to Pouplate ADF UI

    Hi,
    I have following requirement.
    I would like to read data from XML file and populate the data in ViewObject so that the data can be displayed in the ADF UI.
    Also when user modifies the data in the ADF UI, it should be modified back into to ViewObject.
    Here is an example - XML file contains Book Title and Author. I would like to read Book Title and Author from XML file and set it into ViewObject Attribute and then display Book title and Author in ADF UI page. Also when user modifies Book title and Author, I would like to store it back in View Object.
    Please help me with this requirement and let me know if any solution exist in ADF, for populating the ADF UI screen fields with external XML file data.
    Thanks

    Read chapter 42 http://download.oracle.com/docs/cd/E16162_01/web.1112/e16182/bcadvvo.htm of the fusion developer guide
    Section 42.7, "Reading and Writing XML"
    Section 42.8, "Using Programmatic View Objects for Alternative Data Sources"
    Timo

  • Read data from XML file and plot graph on Ms Words

    Hi,
    I'm using Visual Studio 2010, what I want to do is written in the title.
    so far i was able read and plot graph on a Form but i unable to use the same method on Crystal Reporting.
    The method plotting in Crystal Reporting is complicated and it require a fix data set or database which is not suitable for my case because every time the number of column and row or data will be different. (this is what i think base on what i found)
    is there a way for me to display the output on a ms words?
    and what is the method.
    thanks.

    Hi Huangcongmazhananzi,
    Based on your description, I’m afraid that it is not the correct forum for this issue, since this forum is to discuss the VS IDE.
    I might not have the correct detailed answer you need, but I might lead you into the right direction to solve your problem.
    If this issue is related to the Windows Forum app, this forum would be better:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    But if it is related to the Crystal Reporting, you could post the issue here:
    http://forums.sdn.sap.com/forum.jspa?forumID=313&start=0
    is there a way for me to display the output on a ms words?
    If it is related to the Office, maybe you could select the correct forum here:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?category=officedev
    Best Regard,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to read the data from XML file and insert into oracle DB

    Hi All,
    I have below require ment.
    I will receive data in the XML file. then i need to read that data and insert into oracle tables. please let me know how this can be handled.
    Many Thanks.

    Sounds a lot like this question, only with less details.
    how to read data from XML  variable and insert into table variable
    We can only help if you provide us details to help as we cannot see what you are doing and only know what you tell us.  Plenty of examples abound on the forums that cover the topics you seek as well.

  • Reads data from xml file

    i need a procedure that reads data from xml file and stores into an oracle table.

    Hi,
    Check the below links:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:27523665852829
    http://www.experts-exchange.com/Database/Oracle/Q_20932242.html
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com

  • Reading Data from Unix file and write into an Internal table

    Dear all,
                     I am having an requirement of reading data from unix file and write the same into an internal table..how to do that ...experts please help me in this regard.

    Hi,
    do like this
    PARAMETERS: p_unix LIKE rlgrap-filename OBLIGATORY.
    DATA: v_buffer(2047) TYPE c.
    DATA: BEGIN OF i_buffer OCCURS 0,
            line(2047) TYPE c,
    END OF i_buffer.
    * Open the unix file..
    OPEN DATASET p_unix FOR INPUT IN TEXT MODE.
    <b>IF sy-subrc NE 0.
    *** Error Message "Unable to open file.
    ELSE.</b>
       DO.
         CLEAR: v_buffer.
         READ DATASET p_unix INTO v_buffer.
         IF sy-subrc NE 0.
            EXIT.
         ENDIF.
         MOVE v_buffer TO i_buffer.
         APPEND i_buffer.
      ENDDO.
    ENDIF.
    CLOSE DATASET p_unix.
    <b>Reward points if it helps,</b>
    Satish

  • Hi, extract data from xml file and insert into another exiting xml file

    i am searching code to extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    1st xml file which has two lines(text1.xml)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xs:PrintDataRequest xmlns:xs="http://com.unisys.com/Anid"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    <xs:Person>
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    These two lines has to be inserted in the existing another xml(text 2.xml) file(at line 3 and 4)
    Regards,
    bubbly

    Jadz_Core wrote:
    RandomAccessFile? If you know where you want to insert it.Are you sure about this? If using this, the receiving file would have to have bytes inserted that exactly match the number of bytes replaced. I'm thinking that you'll likely have to stream through the second XML with a SAX parser and copy information (or insert new information) as you stream with an XML writer of some sort.

  • Extract data from xml file and insert into another exiting xml fil

    hello,
    i am searching extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    Regards,
    Zhuozhi

    If the files are small, you can load the target file in a DOM document, insert the data from the source file and persist the DOM.
    If the files are large, you probably want to use a StAX or SAX.

  • Join data from a file with an internal table

    Hi to everybody!!
    I need help, I don't know how to join two differents data, one of them is internal...
    This select fill my itab
        SELECT PERNR PERID VORNA NACHN  FROM PA0002 APPENDING TABLE itab_tabla
            WHERE
            PA0002~BEGDA <= SY-DATUM AND
            PA0002~ENDDA >= SY-DATUM AND
            PERID  = G_PERID.
         ENDLOOP.
    Now I have to insert inside the table more data that pass from a file...but I don't know how to join this... can anybody help me?
    Thanks a lot
    Regards,
    Rebeca

    HI,
    you will need to upload the file by Using the FM GUI_UPLOAD.
    this will take the data from the file to an internal table that you will have to declare.
    once you get the data in to your table,you can merge both the tables in to another final table or in the 1st internal table if all the fields are there and modify the table.so the table will have the records of both the tables.
    after you get the data in your second table"
    loop at itab2.
    move: <field 1> to itab1.
              <field 2> to itab1.
    modify itab1.
    endloop.

  • Reading from XML file and updating the table ????

    Hi
    I have package which reads the hier.XML file and does Update inserts into the 5 tables
    i have table called MAIN_tbl with the column cur_date.
    The package kicks if this cur_date is one day less than the hier.XML file DT.
    Currently i m manually checking this date's to make sure the Main_tbl cur_date is n sync with
    hier.XML file DT.
    for example :- hier.xml file DT is "20091020" then main_table cur_date should be 10/19/2009
    in order to kicks of the pakage.
    what i m looking to do ??
    compare the hier.xml DT with the main_table cur_date,
    if cur_date is -1(Preivous day) of hier.xml DT then run hier_pkg(Package)
    if not then update main_table cur_date to -1(previous day) of the hier.xml DATE
    Then later write the above logic to update the main_table in a procedure, and
    then call the package from the procedure.
    below are the top few lines of the hier.XML file which is relevant to the one which we are trying to do
    <?xml version = '1.0'?>
    <HIER_POSTING num ="111" HIER_TYP="CD" DT="20091020" Global="Y">
    FYI : The hier.XML file is located in UNIX space.
    How do i accomplish this. any idea ????
    Thank you so much in advance. For giving a thought on this problem!!!

    Any thought on this guys ???
    Thanks!!

  • Read data from Excel file and diaplay in Webdynpro

    Hi all,
    I need some help. I have a Excel file with set of  name, phonenumbers . I want to know how to display the data using Webdynpro. Could some one help me. help is appreciated and I promise to award points for right answer.
    Thank you
    Maruti

    <b>Hi
    i can explain you to read data from Excel file
    First You have to download the jxl.jar file. You can get this file from the Below site
    </b><a href="http://www.andykhan.com/jexcelapi/download.html">jexcelapi jar</a>
    It will be in Compressed Fromat So Unzip it to get the Contents
    After Unzipping The File You will get a Folder (jexcelapi/jxl.jar)
    Now in NWDS open web dynpro explorer, Right Click Your Project, a popup menu will appear and in that click Properties
    You will get window displaying your Project Properties
    On Left Side of the window You Will Find "Java Build Path"
    Click That "Java Build Path" and you will get 4 Tabs Showing ( Source,Projects,Libraries,Order and Export)
    Click Libraries Tab
    You will find options many options buttons
    In that click the Button "Add External Jars"
    You will get Window in order to fecth the jxl.jar file from the location you had stored
    After selecting the jxl.jar i will get displayed and click ok
    Now Open Navigator
    Open Your Project
    You will find Lib folder
    Copy the jxl.jar to that lib folder
    Note : You cannot Read the Content from the excel file directly
    First You Have to copy that file to the Server,
    And from the Server you can get the file absolute path
    With the absolute path you can read the contents of the Excel file
    You have to save the Excel file as .xls Format and Not as xlsx format i will not accept that...
    You have Upload the Excel file from the Server Using the File Upload UI Element
    This Coding will extract 3 columns from the Xls File
    Coding
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import jxl.Cell;
    import jxl.Sheet;
    import jxl.Workbook;
    import com.sap.fileupload.wdp.IPrivateFileUpload_View;
    import com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource;
    public void onActionUpload_File(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload_File(ServerEvent)
        IPrivateFileUpload_View.IContextElement element1 = wdContext.currentContextElement();
        IWDResource resource = element1.getFileResource();
        element1.setFileName(resource.getResourceName());
        element1.setFileExtension(resource.getResourceType().getFileExtension());
        //@@end
    public void onActionUpload_File_in_Server(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload_File_in_Server(ServerEvent)
        InputStream text=null;
        int temp=0;
        try
             File file = new File(wdContext.currentContextElement().getFileResource().getResourceName().toString());
             FileOutputStream op = new FileOutputStream(file);
             if(wdContext.currentContextElement().getFileResource()!=null)
                  text=wdContext.currentContextElement().getFileResource().read(false);
                  while((temp=text.read())!=-1)
                       op.write(temp);                                      
             op.flush();
             op.close();
             path = file.getAbsolutePath();
             wdComponentAPI.getMessageManager().reportSuccess(path);
        catch(Exception e)
             e.printStackTrace();
        //@@end
    public void onActionUpload_Data_into_Table(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload_Data_into_Table(ServerEvent)
        try
              Workbook wb =Workbook.getWorkbook(new File(path));
              Sheet sh = wb.getSheet(0);
              //wdComponentAPI.getMessageManager().reportSuccess("Columns = "+sh.getColumns());
              //wdComponentAPI.getMessageManager().reportSuccess("Rows = "+sh.getRows());
              int columns = sh.getColumns();
              int rows = sh.getRows();
              int i=0;
             for(int j=1;j<=rows;j++)
                       ele=wdContext.nodeTable_Data().createTable_DataElement();
                       Cell c1 = sh.getCell(i,j);
                      ele.setTab_Name(c1.getContents());
                       Cell c2 = sh.getCell(i+1,j);
                       ele.setTab_Degree(c2.getContents());
                          Cell c3 = sh.getCell(i+2,j);
                       ele.setTab_Percentage(c3.getContents());
                       wdContext.nodeTable_Data().addElement(ele);
        catch(Exception ex)
             wdComponentAPI.getMessageManager().reportSuccess(ex.toString());
        //@@end
       * The following code section can be used for any Java code that is
       * not to be visible to other controllers/views or that contains constructs
       * currently not supported directly by Web Dynpro (such as inner classes or
       * member variables etc.). </p>
       * Note: The content of this section is in no way managed/controlled
       * by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      String path;
      IPrivateFileUpload_View.ITable_DataElement ele;
    //@@end
    Regards
    Chandran S

  • Read data from XML file

    I have column (CLOB data type) with XML data in it. How to read data from that column and insert into myTable? This XML represent one report divided by Location. Every location has analytic data and total at the end.
    How to get something like this:
    bilbo bagins Total BBB (tran: 6) 12.00 13.00 14.10
    bilbo bagins Total EEE (tran: 2) 12.50 44.59 72.52
    bilbo bagins Total bilbo bagins (tran: 8) 34.89 17.85
    Data in CLOB column:
    <?xml version="1.0" encoding="UTF-8" ?>
    <CrystalReport xmlns="urn:crystal-reports:schemas:report-detail" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:crystal-reports:schemas:report-detail http://www.businessobjects.com/products/xml/CR2008Schema.xsd">
    <ReportHeader>
    <Section SectionNumber="0">
    </Section>
    </ReportHeader>
    <Group Level="1">
    <GroupHeader>
    <Section SectionNumber="0">
    <Field Name="GroupNameLocation1" FieldName="GroupName ({SubAgentSettlement.Location})"><FormattedValue>bilbo bagins</FormattedValue><Value>bilbo bagins</Value></Field>
    </Section>
    </GroupHeader>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total BBB (tran: 6)</FormattedValue><Value>Total BBB (tran: 6)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>12.00</FormattedValue><Value>12.00</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>13.00</FormattedValue><Value>13.00</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>14.10</FormattedValue><Value>14.10</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total EEE (tran: 2)</FormattedValue><Value>Total EEE (tran: 2)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>12.50</FormattedValue><Value>12.50</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>44.59</FormattedValue><Value>44.59</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>72.52</FormattedValue><Value>72.52</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="LocationGroupFooterText1" FieldName="{@LocationGroupFooterText}"><FormattedValue>Total bilbo bagins (tran: 8)</FormattedValue><Value>Total bilbo bagins (tran: 8)</Value></Field>
    <Field Name="SumofCommissionBbb2" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Location})"><FormattedValue>34.89</FormattedValue><Value>34.89</Value></Field>
    <Field Name="SumofCommissionEee2" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Location})"><FormattedValue>17.85</FormattedValue><Value>17.85</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="1">
    <GroupHeader>
    <Section SectionNumber="0">
    <Field Name="GroupNameLocation1" FieldName="GroupName ({SubAgentSettlement.Location})"><FormattedValue>Bruce Lee</FormattedValue><Value>Bruce Lee</Value></Field>
    </Section>
    </GroupHeader>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total BBB (tran: 5)</FormattedValue><Value>Total BBB (tran: 5)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>18.11</FormattedValue><Value>18.11</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>3.24</FormattedValue><Value>3.24</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>1.33</FormattedValue><Value>1.33</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total EEE (tran: 8)</FormattedValue><Value>Total EEE (tran: 8)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>10.17</FormattedValue><Value>10.17</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>7.62</FormattedValue><Value>7.62</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>1.53</FormattedValue><Value>1.53</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total UUU (transactions: 7)</FormattedValue><Value>Total UUU (transactions: 7)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>2.01</FormattedValue><Value>2.01</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>3.71</FormattedValue><Value>3.71</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>2.58</FormattedValue><Value>2.58</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="LocationGroupFooterText1" FieldName="{@LocationGroupFooterText}"><FormattedValue>Total Bruce Lee (tran: 60)</FormattedValue><Value>Total Bruce Lee (tran: 60)</Value></Field>
    <Field Name="SumofCommissionBbb2" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Location})"><FormattedValue>99.74</FormattedValue><Value>99.74</Value></Field>
    <Field Name="SumofCommissionEee2" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Location})"><FormattedValue>55.81</FormattedValue><Value>55.81</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="1">
    <GroupHeader>
    <Section SectionNumber="0">
    <Field Name="GroupNameLocation1" FieldName="GroupName ({SubAgentSettlement.Location})"><FormattedValue>Katar pipin</FormattedValue><Value>Katar pipin</Value></Field>
    </Section>
    </GroupHeader>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total BBB (tran: 5)</FormattedValue><Value>Total BBB (tran: 5)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>7.00</FormattedValue><Value>7.00</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>7.00</FormattedValue><Value>7.00</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>3.82</FormattedValue><Value>3.82</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total EEE (tran: 3)</FormattedValue><Value>Total EEE (tran: 3)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>65.50</FormattedValue><Value>65.50</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>1.75</FormattedValue><Value>1.75</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>55.50</FormattedValue><Value>55.50</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total UUU (tran: 1)</FormattedValue><Value>Total UUU (tran: 1)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>1.00</FormattedValue><Value>1.00</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>17.35</FormattedValue><Value>17.35</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>10.69</FormattedValue><Value>10.69</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="LocationGroupFooterText1" FieldName="{@LocationGroupFooterText}"><FormattedValue>Total Katar pipin (tran: 9)</FormattedValue><Value>Total Katar pipin (tran: 9)</Value></Field>
    <Field Name="SumofCommissionBbb2" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Location})"><FormattedValue>9.10</FormattedValue><Value>9.10</Value></Field>
    <Field Name="SumofCommissionEee2" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Location})"><FormattedValue>2.01</FormattedValue><Value>2.01</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="1">
    <GroupHeader>
    <Section SectionNumber="0">
    <Field Name="GroupNameLocation1" FieldName="GroupName ({SubAgentSettlement.Location})"><FormattedValue>Samsung</FormattedValue><Value>Samsung</Value></Field>
    </Section>
    </GroupHeader>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total BBB (tran: 5)</FormattedValue><Value>Total BBB (tran: 5)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>16.00</FormattedValue><Value>16.00</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>17.00</FormattedValue><Value>17.00</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>17.46</FormattedValue><Value>17.46</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="LocationGroupFooterText1" FieldName="{@LocationGroupFooterText}"><FormattedValue>Total Samsung (tran: 15)</FormattedValue><Value>Total Samsung (tran: 5)</Value></Field>
    <Field Name="SumofCommissionBbb2" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Location})"><FormattedValue>5.00</FormattedValue><Value>5.00</Value></Field>
    <Field Name="SumofCommissionEee2" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Location})"><FormattedValue>17.46</FormattedValue><Value>17.46</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="1">
    <GroupHeader>
    <Section SectionNumber="0">
    <Field Name="GroupNameLocation1" FieldName="GroupName ({SubAgentSettlement.Location})"><FormattedValue>Erica</FormattedValue><Value>Erica</Value></Field>
    </Section>
    </GroupHeader>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total BBB (tran: 5)</FormattedValue><Value>Total BBB (tran: 5)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>6.10</FormattedValue><Value>6.10</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>6.12</FormattedValue><Value>6.12</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>88.08</FormattedValue><Value>88.08</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total EEE (tran: 2)</FormattedValue><Value>Total EEE (tran: 2)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>13.00</FormattedValue><Value>13.00</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>15.87</FormattedValue><Value>15.87</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>13.00</FormattedValue><Value>13.00</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <Group Level="2">
    <GroupHeader>
    <Section SectionNumber="0">
    </Section>
    </GroupHeader>
    <Details Level="3">
    <Section SectionNumber="0">
    </Section>
    </Details>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="GroupFooterText1" FieldName="{@GroupFooterText}"><FormattedValue>Total UUU (transactions: 1)</FormattedValue><Value>Total UUU (transactions: 1)</Value></Field>
    <Field Name="SumofCommission1" FieldName="Sum ({SubAgentSettlement.Commission}, {SubAgentSettlement.Currency})"><FormattedValue>22.00</FormattedValue><Value>22.00</Value></Field>
    <Field Name="SumofCommissionBbb1" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Currency})"><FormattedValue>32.70</FormattedValue><Value>32.70</Value></Field>
    <Field Name="SumofCommissionEee1" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Currency})"><FormattedValue>41.38</FormattedValue><Value>41.38</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <GroupFooter>
    <Section SectionNumber="0">
    <Field Name="LocationGroupFooterText1" FieldName="{@LocationGroupFooterText}"><FormattedValue>Total Erica (tran: 8)</FormattedValue><Value>Total Erica (tran: 8)</Value></Field>
    <Field Name="SumofCommissionBbb2" FieldName="Sum ({SubAgentSettlement.CommissionBBB}, {SubAgentSettlement.Location})"><FormattedValue>4.87</FormattedValue><Value>4.87</Value></Field>
    <Field Name="SumofCommissionEee2" FieldName="Sum ({SubAgentSettlement.CommissionEEE}, {SubAgentSettlement.Location})"><FormattedValue>2.66</FormattedValue><Value>2.66</Value></Field>
    </Section>
    </GroupFooter>
    </Group>
    <ReportFooter>
    <Section SectionNumber="0">
    <Text Name="Text11"><TextValue>Total num of tran:</TextValue>
    </Text>
    <Field Name="CountofDate1" FieldName="Count ({SubAgentSettlement.Date})"><FormattedValue>126</FormattedValue><Value>126</Value></Field>
    <Field Name="CurrencyRateLine1" FieldName="{@CurrencyRateLine}"><FormattedValue>Curr on date: 12/03/2009</FormattedValue><Value>Curr on date: 12/03/2009</Value></Field>
    <Subreport Name="Subreport1">
    <ReportHeader>
    </ReportHeader>
    <Details Level="1">
    <Section SectionNumber="0">
    <Field Name="CurrencyLine1" FieldName="{@CurrencyLine}"><FormattedValue>1 EEE = 10.12345 UUU</FormattedValue><Value>1 EEE = 10.12345 UUU</Value></Field>
    </Section>
    </Details>
    <Details Level="1">
    <Section SectionNumber="0">
    <Field Name="CurrencyLine1" FieldName="{@CurrencyLine}"><FormattedValue>1 EEE = 7.12345 BBB</FormattedValue><Value>1 EEE = 7.12345 BBB</Value></Field>
    </Section>
    </Details>
    <Details Level="1">
    <Section SectionNumber="0">
    <Field Name="CurrencyLine1" FieldName="{@CurrencyLine}"><FormattedValue>1 UUU = 6.12345 BBB</FormattedValue><Value>1 UUU = 6.123456 BBB</Value></Field>
    </Section>
    </Details>
    <ReportFooter>
    <Section SectionNumber="0">
    </Section>
    </ReportFooter>
    </Subreport>
    </Section>
    <Section SectionNumber="1">
    </Section>
    </ReportFooter>
    </CrystalReport>

    Here's a starter :
    SQL> SELECT x1.GroupName
      2       , x2.Field1
      3       , x2.Field2
      4       , x2.Field3
      5       , x2.Field4
      6  FROM my_clob_table t
      7     , XMLTable(
      8         XMLNamespaces(default 'urn:crystal-reports:schemas:report-detail'),
      9         '/CrystalReport/Group'
    10         passing xmltype(t.xml_data)
    11         columns
    12           GroupName varchar2(30) path 'GroupHeader/Section/Field/Value'
    13         , Groups    xmltype      path 'Group|GroupFooter'
    14       ) x1
    15     , XMLTable(
    16         XMLNamespaces(default 'urn:crystal-reports:schemas:report-detail'),
    17         '/Group/GroupFooter/Section|/GroupFooter/Section'
    18         passing x1.Groups
    19         columns
    20           Field1 varchar2(30) path 'Field[1]/Value'
    21         , Field2 varchar2(30) path 'Field[2]/Value'
    22         , Field3 varchar2(30) path 'Field[3]/Value'
    23         , Field4 varchar2(30) path 'Field[4]/Value'
    24       ) x2
    25  ;
    GROUPNAME          FIELD1                         FIELD2    FIELD3    FIELD4
    bilbo bagins       Total BBB (tran: 6)            12.00     13.00     14.10
    bilbo bagins       Total EEE (tran: 2)            12.50     44.59     72.52
    bilbo bagins       Total bilbo bagins (tran: 8)   34.89     17.85    
    Bruce Lee          Total BBB (tran: 5)            18.11     3.24      1.33
    Bruce Lee          Total EEE (tran: 8)            10.17     7.62      1.53
    Bruce Lee          Total UUU (transactions: 7)    2.01      3.71      2.58
    Bruce Lee          Total Bruce Lee (tran: 60)     99.74     55.81    
    Katar pipin        Total BBB (tran: 5)            7.00      7.00      3.82
    Katar pipin        Total EEE (tran: 3)            65.50     1.75      55.50
    Katar pipin        Total UUU (tran: 1)            1.00      17.35     10.69
    Katar pipin        Total Katar pipin (tran: 9)    9.10      2.01     
    Samsung            Total BBB (tran: 5)            16.00     17.00     17.46
    Samsung            Total Samsung (tran: 5)        5.00      17.46    
    Erica              Total BBB (tran: 5)            6.10      6.12      88.08
    Erica              Total EEE (tran: 2)            13.00     15.87     13.00
    Erica              Total UUU (transactions: 1)    22.00     32.70     41.38
    Erica              Total Erica (tran: 8)          4.87      2.66     
    17 rows selected

  • How to extract data from xml file and store that data inti data base table

    Hii All
    I have one table that table contains one column that column contain an XML file
    I want to extract data from that XML file and want to store that extracted data into an other table.
    That xml file has different different values
    I want to store that values into table in diff diff columns

    Hi,
    I am also facing the same problem.I have a .xml file and i need to import the data into the custom table in oracle database.
    Can you please let me know if you know the solution how to do it in oracle apps.
    Thanks,

  • Reading data in XML files and outputting information into xl spreadsheet

    Can anyone help??? i want to read an XML file, and after reading the file, store certain data into a XL speadsheet. i am new to all this and dont know where to start. Can anyone provide me with coded examples or links to certain sites that can provide me with examples. I would be very grateful, thanks!!!

    you will either have to use a third party toolkit or develop your own for this purpose. In case you develop your own, please be kind to share it with me ;)
    I am not sure about the free ones. But Sitraka is know for developing such kits. For instance you may use sitraka's JClass which will be more then what you need. I guess JClass is free for evaluation, but you have to pay them after that.
    all the best, and update this thread if you find anything for free !!
    Here are some usefull inks(It seems the very first link provide some free and useful apis. Let me know, if you are able to use them)
    http://www.andykhan.com/jexcelapi/
    http://www.sitraka.com/software/jclass/
    http://www.grapecity.com/india/Product/Database/ (From the JAva drop down, select Formula One for Java)
    Rakesh

  • Fetch Data from BI system and populate a Table in webdynpro

    Hi,
    I have to fetch the data from BI system into a model and populate the Table.
    The data resides in BI system. I am creating model from adaptive RFC and the function module is RRW3_GET_QUERY_VIEW_DATA. This is the max information i have got to execute the query
    Infoprovider ZM_SC_GR
    Query T_SUPGR003
    Variable: Vendor Number
    VAR_NAME_1 SPRPVEN
    VAR_OPERATOR_1 EQ
    VAR_VALUE_LOW_EXT_1 Value
    VAR_VALUE_HIGH_EXT_1
    VAR_SIGN_2 I
    Variable: Purchasing Group
    VAR_NAME_2 CSMPGRP
    VAR_OPERATOR_2 EQ
    VAR_VALUE_LOW_EXT_2 Value
    VAR_VALUE_HIGH_EXT_2
    VAR_SIGN_2 I
    Variable: Calendar Day Range
    VAR_NAME_3 SPGRDT01
    VAR_OPERATOR_3 BT
    VAR_VALUE_LOW_EXT_3 Value1
    VAR_VALUE_HIGH_EXT_3 Value2
    VAR_SIGN_3 I
    I am not able to understand which parameters of the model I should map for context mapping to map cotroller with model.
    Thanks and Regards,
    Pankaj

    after you imported Rrw3_Get_Query_View_Data function as adaptive rfc model in your component and mapped its node controller context Rrw3_Get_Query_View_Data_Input model to your controller context do the following:
    i.e.
    Rrw3_Get_Query_View_Data_Input model = new Rrw3_Get_Query_View_Data_Input();
    model.setI_Infoprovider("0FIA_MDS2");
    model.setI_Query("FIA_MDS2_Q0005MP");
    wdContext.nodeGetQueryView().bind(model);
    W3Query paramElement1 = new W3Query();
    paramElement1.setName("VAR_NAME_1");
    paramElement1.setValue("0P_CSDAT");
    W3Query paramElement2 = new W3Query();
    paramElement2.setName("VAR_OPERATOR_1");
    paramElement2.setValue("LE");
    W3Query paramElement3 = new W3Query();
    paramElement3.setName("VAR_VALUE_EXT_1");
    paramElement3.setValue(cdate);
    W3Query paramElement5 = new W3Query();
    paramElement5.setName("VAR_NAME_2");
    paramElement5.setValue("0S_CCTR");
    W3Query paramElement6 = new W3Query();
    paramElement6.setName("VAR_OPERATOR_2");
    paramElement6.setValue("EQ");
    W3Query paramElement7 = new W3Query();
    paramElement7.setName("VAR_VALUE_LOW_EXT_2");
    paramElement7.setValue(mvz);
    W3Query paramElement8 = new W3Query();
    paramElement8.setName("VAR_VALUE_HIGH_EXT_2");
    paramElement8.setValue(mvz);
    W3Query paramElement9 = new W3Query();
    paramElement9.setName("VAR_SIGN_2");
    paramElement9.setValue("1");
    model.addI_T_Parameter(paramElement1);
    model.addI_T_Parameter(paramElement2);
    model.addI_T_Parameter(paramElement3);
    model.addI_T_Parameter(paramElement5);
    model.addI_T_Parameter(paramElement6);
    model.addI_T_Parameter(paramElement7);
    model.addI_T_Parameter(paramElement8);
    model.addI_T_Parameter(paramElement9);
    then execute
    wdContext.currentGetQueryViewElement().modelObject().execute();
    and invalidate output node
    and then you get the data from r3 system.
    then you should correctly parse output node and read the data from E_Axis_Data node E_Cell_Data node.

Maybe you are looking for

  • Scan ip not working in 11.2.0.1 RAC

    Hi, I have set up 11gR2 (11.2.0.1) in OEL 5.My scan ip is not working properly.Here i have shown the output of the some commands on node1 and node2.Can anyone let me know how to rectify this issue. [oracle@markdb bin]$ nslookup db1-scan.oracle.com Se

  • Why won't my charts continuall​y update while running a case structure?

    I'm making a VI to drive an actuator and read a force on a load cell.  I have programmed the actuator to run through a flat sequence using millisecond timers to delay its drives outward and inward, which is necessary for its intended use.  However, m

  • Display Linked Data Source

    I created a Linked Data Source in SharePoint Designer 2010.  Is there any way to display the Link Data Source with a web part outside of SharePoint Designer?  I do not have enough rights to create a web part page in Designer.   Thanks! David L. Crook

  • How to restore contact from iPod Touch to iPod Nano in iTunes

    I have all my contacts on my iPod Touch and they are backed up onto my computer. I got a iPod Nano so I created a new Library of Playlist I wanted on the Nano. Synced the Music fine but I would like to put my Contacts and possibly Apps onto the Nano.

  • Any way possible to have different New Eamil alret sounds for each account

    I have 4 different email accounts on my iPhone. Is there a way to have a different New Email Alert sound for each account. Most of the times I am only interested in emails I get in one or two of the accounts and if I had a different Alert for them I