Help needed in regrouping data in bi publisher

Hi All,
I have the XML Data like below: I want to re-group the data by G_PROJ and then by EXPENDITURE_CATEGORY. (So that for a pair of values of C_PROJECT_ID and EXPENDITURE_CATEGORY, it returns one row. How can do this?
- <XXVPDR>
<P_PROJECT_ID>17142</P_PROJECT_ID>  
- <LIST_G_PROJ> 
- <G_PROJ> 
<C_PROJECT_ID>17142</C_PROJECT_ID>  
- <LIST_G_COST_DATA> 
- <G_COST_DATA> 
<ACTUAL_COST>1174.99</ACTUAL_COST>  
<COMMITMENT_COST>0</COMMITMENT_COST>  
<BURDENED_COST>0</BURDENED_COST>  
<EXPENDITURE_CATEGORY>Travel</EXPENDITURE_CATEGORY>  
<PROJECT_NUMBER>997</PROJECT_NUMBER>  
<PROJECT_NAME>jun_7</PROJECT_NAME>  
</G_COST_DATA>
- <G_COST_DATA> 
<ACTUAL_COST>1174.99</ACTUAL_COST>  
<COMMITMENT_COST>0</COMMITMENT_COST>  
<BURDENED_COST>0</BURDENED_COST>  
<EXPENDITURE_CATEGORY>Software</EXPENDITURE_CATEGORY>  
<PROJECT_NUMBER>997</PROJECT_NUMBER>  
<PROJECT_NAME>jun_7</PROJECT_NAME>  
</G_COST_DATA>
- <G_COST_DATA> 
<ACTUAL_COST>1174.99</ACTUAL_COST>  
<COMMITMENT_COST>0</COMMITMENT_COST>  
<BURDENED_COST>0</BURDENED_COST>  
<EXPENDITURE_CATEGORY>Internal Labor Benefits Contra</EXPENDITURE_CATEGORY>  
<PROJECT_NUMBER>997</PROJECT_NUMBER>  
<PROJECT_NAME>jun_7</PROJECT_NAME>  
</G_COST_DATA>
</LIST_G_COST_DATA> 
</G_PROJ>
</LIST_G_PROJ>
</XXVPDR>

If this is the expected output,
17142 Travel
17142 Software
17142 Internal Labor Benefits Contra
then you can use the following code:
<?for-each-group:G_COST_DATA;concat(../../C_PROJECT_ID, ./EXPENDITURE_CATEGORY)?>
<?../../C_PROJECT_ID?><?EXPENDITURE_CATEGORY?><?end for-each-group?>
Thanks,
Bipuser

Similar Messages

  • Help needed on meta data export

    I need a meta data export dump of a source database of two schemas and import to a fresh new database.
    COuld you please help with the steps to be followed.

    Assuming you are using 10g and exp utility
    You can say rows=N
    exp help=yes
    Export: Release 10.2.0.1.0 - Production on Thu Jul 23 13:36:59 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    You can let Export prompt you for parameters by entering the EXP
    command followed by your username/password:
    Example: EXP SCOTT/TIGER
    Or, you can control how Export runs by entering the EXP command followed
    by various arguments. To specify parameters, you use keywords:
    Format: EXP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
    Example: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)
    or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
    USERID must be the first parameter on the command line.
    Keyword Description (Default) Keyword Description (Default)
    USERID username/password FULL export entire file (N)
    BUFFER size of data buffer OWNER list of owner usernames
    FILE output files (EXPDAT.DMP) TABLES list of table names
    COMPRESS import into one extent (Y) RECORDLENGTH length of IO record
    GRANTS export grants (Y) INCTYPE incremental export type
    INDEXES export indexes (Y) RECORD track incr. export (Y)
    DIRECT direct path (N) TRIGGERS export triggers (Y)
    LOG log file of screen output STATISTICS analyze objects (ESTIMATE)
    {color:red}*ROWS export data rows (Y)* {color} PARFILE parameter filename
    CONSISTENT cross-table consistency(N) CONSTRAINTS export constraints (Y)
    OBJECT_CONSISTENT transaction set to read only during object export (N)
    FEEDBACK display progress every x rows (0)
    FILESIZE maximum size of each dump file
    FLASHBACK_SCN SCN used to set session snapshot back to
    FLASHBACK_TIME time used to get the SCN closest to the specified time
    QUERY select clause used to export a subset of a table
    RESUMABLE suspend when a space related error is encountered(N)
    RESUMABLE_NAME text string used to identify resumable statement
    RESUMABLE_TIMEOUT wait time for RESUMABLE
    TTS_FULL_CHECK perform full or partial dependency check for TTS
    TABLESPACES list of tablespaces to export
    TRANSPORT_TABLESPACE export transportable tablespace metadata (N)
    TEMPLATE template name which invokes iAS mode export
    Export terminated successfully without warnings.

  • Help needed to insert data from different database

    Hi ,
    I have a requirement where i need to fetch data from different database through database link .Depending on user request , the dblink needs to change and data from respective table from mentioned datbase has to be fetched and populated .Could i use execute immediate for this, would dblink work within execute immediate .If not , could pls let me know any other approach .

    What does "the dblink needs to change" mean?
    Are you trying to dynamically create database links at run-time? Or to point a query at one of a set of pre-established database links at run-time?
    Are you sure that you really need to get the data from the remote database in real time? Could you use materialized views/ Streams/ etc to move the data from the remote databases to the local database? That tends to be far more robust.
    Justin

  • Pros help needed with post data code

    i needed to change the code below to post the userAnswer from radio button group,  to an ASPX page so i can read the data in and post it to a database. can anyone help. thanks
    btnCheck.addEventListener(MouseEvent.CLICK, checkAnswer);
    function checkAnswer(evt:MouseEvent):void {
    userAnswer = String(rbg.selectedData);
        messageBox.text =  userAnswer + " has been clicked";

    //Create the loader object
    var prodloader:URLLoader = new URLLoader ();
    //Create a URLVariables object to store the details
    var variables: URLVariables = new URLVariables();
    //Createthe URLRequest object to specify the file to be loaded and the method ie post
    var url:String = "url here";
    var prodreq:URLRequest = new URLRequest (url);
    prodreq.method = URLRequestMethod.POST;
    prodreq.data = variables;
    function submitHandler(event:Event):void {
        variables.productId = whatever;
        prodloader.load(prodreq);
        btnSubmit.addEventListener(MouseEvent.CLICK, submitHandler);
        function contentLoaded(event:Event):void {
           //Stuff here
            prodloader.addEventListener(Event.COMPLETE, contentLoaded);

  • Help needed in inserting data using a query

    I need to have some data as a result of the following query:
    select sched_num,load_id,ord_id,split_id from ord_load_seq
    where (ord_id,split_id,sched_num) in (select ord_id,split_id,sched_num from ord_load_seq where seq_num = '2'
    group by ord_id,split_id,sched_num having count(1) >1)
    order by ord_id,split_id,sched_num;
    But currently it retunrns no rows. The problem is in the having count(1)> 1 clause.
    When i make =1, it returns rows. But no rows on > 1. I even tried inserting some rows to get the result >1
    But still the query on a whole returns no rows.Please help.

    ohhh... lets start our lesson children:
    here is code to consider:
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.2.0
    SQL>
    SQL> --Q1
    SQL> with tbl as
      2  (select 1 fld1, 1 fld2, 1 fld3 from dual
      3  union all
      4  select 1 fld1, 1 fld2, 2 fld3 from dual
      5  union all
      6  select 1 fld1, 1 fld2, 3 fld3 from dual
      7  union all
      8  select 1 fld1, 2 fld2, 3 fld3 from dual
      9  union all
    10  select 1 fld1, 3 fld2, 3 fld3 from dual)
    11  select  fld1, fld2, fld3 from tbl
    12  order by fld1, fld2, fld3
    13  /
          FLD1       FLD2       FLD3
             1          1          1
             1          1          2
             1          1          3
             1          2          3
             1          3          3
    SQL> --Q2
    SQL> with tbl as
      2  (select 1 fld1, 1 fld2, 1 fld3 from dual
      3  union all
      4  select 1 fld1, 1 fld2, 2 fld3 from dual
      5  union all
      6  select 1 fld1, 1 fld2, 3 fld3 from dual
      7  union all
      8  select 1 fld1, 2 fld2, 3 fld3 from dual
      9  union all
    10  select 1 fld1, 3 fld2, 3 fld3 from dual)
    11  select  fld1, fld2, fld3, count(1) from tbl
    12  group by fld1,fld2,fld3
    13  order by fld1, fld2, fld3
    14  /
          FLD1       FLD2       FLD3   COUNT(1)
             1          1          1          1
             1          1          2          1
             1          1          3          1
             1          2          3          1
             1          3          3          1
    SQL> --Q3
    SQL> with tbl as
      2  (select 1 fld1, 1 fld2, 1 fld3 from dual
      3  union all
      4  select 1 fld1, 1 fld2, 2 fld3 from dual
      5  union all
      6  select 1 fld1, 1 fld2, 3 fld3 from dual
      7  union all
      8  select 1 fld1, 2 fld2, 3 fld3 from dual
      9  union all
    10  select 1 fld1, 3 fld2, 3 fld3 from dual)
    11  select  fld1, fld2, fld3 from tbl
    12  group by fld1,fld2,fld3
    13  having count(1) > 1
    14  order by fld1, fld2, fld3
    15  /
          FLD1       FLD2       FLD3
    SQL> --Q4
    SQL> with tbl as
      2  (select 1 fld1, 1 fld2, 1 fld3 from dual
      3  union all
      4  select 1 fld1, 1 fld2, 2 fld3 from dual
      5  union all
      6  select 1 fld1, 1 fld2, 2 fld3 from dual
      7  union all
      8  select 1 fld1, 1 fld2, 3 fld3 from dual
      9  union all
    10  select 1 fld1, 2 fld2, 3 fld3 from dual
    11  union all
    12  select 1 fld1, 3 fld2, 3 fld3 from dual)
    13  select  fld1, fld2, fld3 from tbl
    14  order by fld1, fld2, fld3
    15  /
          FLD1       FLD2       FLD3
             1          1          1
             1          1          2
             1          1          2
             1          1          3
             1          2          3
             1          3          3
    6 rows selected
    SQL> --Q5
    SQL> with tbl as
      2  (select 1 fld1, 1 fld2, 1 fld3 from dual
      3  union all
      4  select 1 fld1, 1 fld2, 2 fld3 from dual
      5  union all
      6  select 1 fld1, 1 fld2, 2 fld3 from dual -- inserted duplicate row
      7  union all
      8  select 1 fld1, 1 fld2, 3 fld3 from dual
      9  union all
    10  select 1 fld1, 2 fld2, 3 fld3 from dual
    11  union all
    12  select 1 fld1, 3 fld2, 3 fld3 from dual)
    13  select  fld1, fld2, fld3, count(1)   from tbl
    14  group by fld1,fld2,fld3
    15  order by fld1, fld2, fld3
    16  /
          FLD1       FLD2       FLD3   COUNT(1)
             1          1          1          1
             1          1          2          2
             1          1          3          1
             1          2          3          1
             1          3          3          1
    SQL> --Q6
    SQL> with tbl as
      2  (select 1 fld1, 1 fld2, 1 fld3 from dual
      3  union all
      4  select 1 fld1, 1 fld2, 2 fld3 from dual
      5  union all
      6  select 1 fld1, 1 fld2, 2 fld3 from dual -- inserted duplicate row
      7  union all
      8  select 1 fld1, 1 fld2, 3 fld3 from dual
      9  union all
    10  select 1 fld1, 2 fld2, 3 fld3 from dual
    11  union all
    12  select 1 fld1, 3 fld2, 3 fld3 from dual)
    13  select  fld1, fld2, fld3 from tbl
    14  group by fld1,fld2,fld3
    15  having count(1) > 1
    16  order by fld1, fld2, fld3
    17  /
          FLD1       FLD2       FLD3
             1          1          2
    SQL> Q1. As you may see we have an bunch of data where each row is unique combination of the columns value.
    Q2. lets try to group it by fld1 and fld2 and fld3 columns. We don't expect any miracle and got the same data as Q1. Why? Because each row is unique combination(group) in scope of fld1, fld2, fld3 - count(1) exactly shows us that.
    Q3. Q2 is explanation why we got no rows filter (having count(1) > 1)because the result of the clause is always false.
    Q4. Lets put some duplication.
    Q5. Now we got some new result. Count shows us group with more then one rows.
    Q6. Shows us exact group which we've found in Q5.

  • Help needed please -Master data loading- error with text loading.

    Hi,
    Iam S.Sushma. Iam getting error while loading master data from flat file- attributes and texts.
    I have loaded attribute data successfully. But when iam monitoring the text data then iam getting following error.
    ""SET THE LANGUAGE FIELD IN THE SOURCE SYSTEM-LONG TEXT.""
    ""RECORD1: SRPID_1:DATA RECORD 1(EN S):DUPLICATE DATA RECORD.
    "ERROR 4 IN UPDATE"
    I took 2flat files for attributes and texts.
    SRPID is key field.(sales representative id)
    attributes:- SRPID, NAME1, AGE1, ADD1,PHONE1.
    text:-  SRPID,LANG,SHTXT,MDTXT,LGTXT.
    Iam just a begginer so need your guidence. Thank you in advance.
    Message was edited by: sushma sandepogu
    Message was edited by: sushma sandepogu

    Hi Eugene,
    Thank you for your guidence. I have changed the order in flat file and got the results successfully. But when iam viewing the Master data text the S10 in coming in 2nd position  in maintain master data-list screen i mean :-
    SRPID LANG NAME AGE ADD PHONE SHTXT MDTXT LGTXT
    S1         EN  ABC   34  GDS 1234  AS    ASD   ASDDF
    S10
    S2
    S3
    S9.
    Iam not understading why. Hope yu can help me. I have assigned full points to you for your previous solution.
    Thank you in advance.
    S.Sushma.

  • Help needed! ADF Data Control: Navigation Buttons + Table  issue.

    Hey all!
    We are working on a new application using ADF JSF+EJB 3.0 stack and are experiencing a problem with a simple feature we need to implement.
    Scenario:
    - Creating a data control for a facade session bean and drag a List returned by one of its methods as table;
    - Dragging its corresponding navigation buttons (first, previous, next, last) from the data control onto the page.
    Issue:
    As we press those buttons, we see the page being submitted but but nothing changes in the table...It keep showing the same records all the time (buit-in range navigation works fine though). However, when we manage to drop the collection as a form (with nav buttons included), everything works fine.
    We have inspected pagedefs for both cases and could not identify the difference.
    Any help would be much appreciated as we need to address the issue asap..
    Thanks in advance,
    Gustavo
    PS: Sorry for my English! ;)

    Hey, i have the solve to my problem.
    In the definition page of the table page i change the propert Refresh (ifNeeded is his default value) to always of the iterator who im using to the table.But i use Toplink, then i had to change the property "Refresh Identity Map Results" to "enabled", that option is in the options of the named queries on queries in the toplinkmap of the current table who im using to my page.
    i hope this will be util for you.
    That's all
    Dany

  • "Help Needed" passing ResultSet data to JList having JCheckBox  !!!

    hi every body I am facing this problem since two days I tried but could't get correctly,I am new to java and I need to pass the result set data from the database to a JList having JCheckBox
    I tried but could't get it
    please do help me out, please
    need some sample code for passing resultset data to JList having JCheckBox anybody please help me out
    thanking you,
    with regards

    hello
    try this to pass the recordset to the jlist
    String strlist[];// string array to store the resultsvalues
    JList tempList;//list
    protected void getList()
         Connection conn = null;
         try
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              // Get Connections
              conn = DriverManager.getConnection ("jdbc:odbc:tablename", "", "");
    resultSet = ----------
    strlist= new String[delSecCnt];
         int i = 0;
         while (resultSet.next())
         // Get the table name
         tempList[i] = resultSet.getString(3);
              i++;
         resultSet.close();
         conn.close();
         catch (Exception e)
              tempList = new JList();
              for(int i=0;i < strList.length; i++)
              tempList.add(strList,i);
    //or if you want to use directly the values of recordset
    tempList.add(recordSet[3]);
    in this code i am using a string to store the results values and then passing it to the list.

  • Help needed setting specific date in GregorianCalendar object?

    Hi All!
    I have set SimpleTimeZone object in GregorianCalendar object. How can I set a new date to the GregorianCalendar object, such that i can find DAY_OF_YEAR specific to this date's day?
    URGENT replies will be appreciated!

    Thanks for ur reply!
    but the problem is that i have to create a method:
    public int getDayOfYear(int day, int month, int year)
    return day_of_the year;
    This method should accept user specified day, month and year and passes to GregorianCalendar/Calendar object. I need want to get DAY_OF_YEAR value from Calendar.DAY_OF_YEAR which it will provide, but the change is not affecting!
    ACTUAL CODE
    ===========
    public static double getDayofYear(int hr, int min, int sec)
    String[] ids = TimeZone.getAvailableIDs(5 * 60 * 60 * 1000);
    SimpleTimeZone pdt = new SimpleTimeZone(5 * 60 * 60 * 1000, ids[0]);      
    for (int i=0; i<ids.length; i++)
    System.out.println (ids);
    //setting DLS start and end rule
    pdt.setStartRule(Calendar.MAY, 1, Calendar.SUNDAY, 00 * 60 * 60 * 1000);
    pdt.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 00 * 60 * 60 * 1000);
    Calendar calendar = new GregorianCalendar(pdt);
    //Date trialTime = new Date();//SET DATE
    //calendar.setTime(trialTime);
    calendar.set(Calendar.HOUR,hr);
    calendar.set(Calendar.MINUTE,min);
    calendar.set(Calendar.SECOND,sec);
    return ((double) calendar.get(Calendar.DAY_OF_YEAR));          
    This method is giving true output for today [2nd Dec. 2002 -> 336], but only when it accepts current time, not date. Also giving same output on changing arguments!
    Hoping ur help!

  • Help needed with missing data problem in CRVS2010

    We recently upgraded the reporting engine in our product to use Crystal Reports for Visual Studio 2010 (previously engine was CR9). Our quote report, which has numerous subreports and lots of conditional formatting, started losing data when a quote took more than a single page to be printed. We knew the SQL results included the data, but the report was not printing those lines at all or sometimes printing a partial line. In addition, the running total on the report would exclude the lines that were being missed on the next page. In one example submitted by a customer, 3 lines were skipped between pages.
    I think I have identified two potential issues that document the possibility of data not being included in the report.
    The first potential issue is an issue with the "suppress blank section" option being checked. This issue is supposedly fixed with ADAPT01483793, being released someday with service pack 2 for CRVS2010.
    The second potential issue is using shared variables. This issue is supposedly fixed with ADAPT01484308, also targeted for SP2.
    Our quote report does not explicitly use shared variables with any of the subreports, but it does have several subreports, each in its own section that has the "supress blank section" option checked. We have other reports that use this feature, as well, and they are not exhibiting the problem.
    One different thing about the quote report is that it has a section with multiple suppression options selected. The section has a conditional suppression formula, which controls whether the section is included at all within the report. The section also has the suppress blank section option selected. There are multiple fields within the report that are each conditionally suppressed. In theory, the section's suppress formula could evaluate to true, yet all of the fields within the section are suppressed (due to null values), and then the "suppress blank section" option would kick in.
    The missing data only seems to happen when the section is not being suppressed, and at least one of the fields is being included in the report. If I clear the "suppress blank section" check box, and change the section formula to also include the rules applied to the fields in the section, the missing data problem seems to be resolved.
    Is this related to ADAPT01483793? Will it be fixed in service pack 2?
    If more details are needed, I would be happy to provide a sample report with stored data.

    Hi Don,
    Have a look at the Record Selection formula in CR Designer ( stand alone ) and when exported to RPT format opening that report in the Designer also. 
    There's been a few issues with => logic in the record selection formula. It could be you are running into this problem. Look for NOT inserted into your selection formula.
    Oh and SP2 is coming out shortly so it may resolve the issue. But if you want you could purchase a support, or if you have a support contract then create a case in SMP and get a rep to work with you to debug the issue.
    If you have not try the Trial Version of CR 2011, put it on a VM-ware image or Test PC so you don't corrupt anything for production and have a look at and test it in that designer also. If you purchase a case and it is a bug then you'll get a credit back for the case.
    Don
    Edited by: Don Williams on Oct 26, 2011 7:40 AM

  • Help needed in storing data in DSO or InfoCube

    Hi Experts ,
       I have a set of data which comes from R/3 in the following Format:
    FG     Base Model     Option 1     Option 2     Option 3
    FG1     BM 1                       Opt1       Opt2         opt3
    FG2     BM1                       Opt 1       Opt2        Opt 4
    FG3     BM3                       Opt5       Opt6        Opt7
    The data gets stored in the PSA in the above format.
    But i want to load the data from the PSA to the DSO or InfoCube in the following format.I want that if i do a display data in the DSO or the Infocube the output should look like the below :
    FG     Base Model     Option
    FG1     BM1                      Opt1
    FG1     BM1                      Opt2
    FG1     BM1                      Opt3
    FG2     BM1                      Opt1
    FG2     BM1                      Opt2
    FG2     BM1                      Opt4
    FG3     BM3                      Opt5
    FG3     BM3                      Opt6
    FG3     BM3                      Opt7
    Is there any way to do this please help. Thanks in advance...

    Hi Samir,
    Use transformation rule group in the transformations.
    Here is one of the examples...the way you wanted.
    http://help.sap.com/saphelp_nw70/helpdata/EN/44/32cfcc613a4965e10000000a11466f/content.htm
    Thanks
    Ajeet

  • Problem with regrouping data in BI Publisher

    I have tried all that has been suggested in Oracle documentation but still can't get my report to work.
    I am working on our Benefits Confirmations and Summary report. I am getting the records as I need them except that I am getting only the number of records right. The dependent names and beneficiary names are always only the first record in the data file!
    I have included the tree structure below that we have in the file. From the layout below, I need to retrieve the data element "A" and few elements from group "i".
    i have used for-each-group for getting the data in A and for-each-group:current_group();./B/i
    This is the layout we have in the file (There are many more elements above A and below C but this part of the tree is all that we are concerned with):
    -A
    -B
    --i
    ---1
    ---2
    ---3
    ---4
    ---5
    ---6
    ---7
    --i
    ---1
    ---2
    ---3
    ---4
    ---5
    ---6
    ---7
    --iii
    -C

    check for the SECURITY_MODEL in the file xmlp-server-config.xml under Configuration Folder (Repository). I will have to check the exact term but I think its value should be LDAP. I think the SSO is working fine, just that its not able to connect to LDAP. Check if there is any error in the console / log file. I have not checked each step of the document that you referred to, but please verify the steps for LDAP integration from the user guide.

  • Help needed-Survey template data not flowing from CRM to Mobile & V V

    Hi experts,
    We have a requirement to create a custom survey template and pass it to mobile. The data flow should be to and fro. as in; from CRM to Mobile Application and vice versa.
    Currently we are facing an issue in this that the data if not being passed properly from the CRM TO Moblie.
    As i am new to the middleware concepts, i am not sure how to go about analysing if my data in the BDocs for the survey template if correct or not.Some data is present for the survey in the Bdoc(xml), but i am not sure if this xml value is correct or not as the Bdoc table entry (xml value)seems to have been truncated(i cannot view the entire xml there wen i try to open the BDoc fields in SMW01).
    any pointers to this is highly appreciated.
    Thanks
    Swapna.

    May be this thread will help
    v('APP_USER') not returning HTMLDB user
    regards,
    Shijesh

  • Help needed with loading data from ODS to cube

    Hi
    I am loading data from an ODS to a cube in QA. The update rules are active and definition seems right. I am getting the following error, in the update rules.
    "Error in the unit conversion. Error 110 occurred"
    Help.
    Thanks.

    Hi Chintai,
    You can see the record number where the error occured in the monitor (RSMO) for this data load > goto the details tab and open up the Processing area (+ sign). Try it out...
    Also about ignoring the error record and uploading the rest, this is done if you have set Error Handling in your InfoPackage (Update tab), but this would have to be done before the load starts, not after the error happens.
    Hope this helps...
    And since you thanked me twice, also please see here:-) https://www.sdn.sap.com/irj/sdn?rid=/webcontent/uuid/7201c12f-0701-0010-f2a6-de5f8ea81a9e [original link is broken]

  • Help needed with Export Data Pump using API

    Hi All,
    Am trying to do an export data pump feature using the API.
    while the export as well as import works fine from the command line, its failing with the API.
    This is the command line program:
    expdp pxperf/dba@APPN QUERY=dev_pool_data:\"WHERE TIME_NUM > 1204884480100\" DUMPFILE=EXP_DEV.dmp tables=PXPERF.dev_pool_data
    Could you help me how should i achieve the same as above in Oracle Data Pump API
    DECLARE
    h1 NUMBER;
    h1 := dbms_datapump.open('EXPORT','TABLE',NULL,'DP_EXAMPLE10','LATEST');
    dbms_datapump.add_file(h1,'example3.dmp','DATA_PUMP_TEST',NULL,1);
    dbms_datapump.add_file(h1,'example3_dump.log','DATA_PUMP_TEST',NULL,3);
    dbms_datapump.metadata_filter(h1,'NAME_LIST','(''DEV_POOL_DATA'')');
    END;
    Also in the API i want to know how to export and import multiple tables (selective tables only) using one single criteria like "WHERE TIME_NUM > 1204884480100\"

    Yes, I have read the Oracle doc.
    I was able to proceed as below: but it gives error.
    ============================================================
    SQL> SET SERVEROUTPUT ON SIZE 1000000
    SQL> DECLARE
    2 l_dp_handle NUMBER;
    3 l_last_job_state VARCHAR2(30) := 'UNDEFINED';
    4 l_job_state VARCHAR2(30) := 'UNDEFINED';
    5 l_sts KU$_STATUS;
    6 BEGIN
    7 l_dp_handle := DBMS_DATAPUMP.open(
    8 operation => 'EXPORT',
    9 job_mode => 'TABLE',
    10 remote_link => NULL,
    11 job_name => '1835_XP_EXPORT',
    12 version => 'LATEST');
    13
    14 DBMS_DATAPUMP.add_file(
    15 handle => l_dp_handle,
    16 filename => 'x1835_XP_EXPORT.dmp',
    17 directory => 'DATA_PUMP_DIR');
    18
    19 DBMS_DATAPUMP.add_file(
    20 handle => l_dp_handle,
    21 filename => 'x1835_XP_EXPORT.log',
    22 directory => 'DATA_PUMP_DIR',
    23 filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
    24
    25 DBMS_DATAPUMP.data_filter(
    26 handle => l_dp_handle,
    27 name => 'SUBQUERY',
    28 value => '(where "XP_TIME_NUM > 1204884480100")',
    29 table_name => 'ldev_perf_data',
    30 schema_name => 'XPSLPERF'
    31 );
    32
    33 DBMS_DATAPUMP.start_job(l_dp_handle);
    34
    35 DBMS_DATAPUMP.detach(l_dp_handle);
    36 END;
    37 /
    DECLARE
    ERROR at line 1:
    ORA-39001: invalid argument value
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 3043
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 3688
    ORA-06512: at line 25
    ============================================================
    i have a table called LDEV_PERF_DATA and its in schema XPSLPERF.
    value => '(where "XP_TIME_NUM > 1204884480100")',above is the condition i want to filter the data.
    However, the below snippet works fine.
    ============================================================
    SET SERVEROUTPUT ON SIZE 1000000
    DECLARE
    l_dp_handle NUMBER;
    l_last_job_state VARCHAR2(30) := 'UNDEFINED';
    l_job_state VARCHAR2(30) := 'UNDEFINED';
    l_sts KU$_STATUS;
    BEGIN
    l_dp_handle := DBMS_DATAPUMP.open(
    operation => 'EXPORT',
    job_mode => 'SCHEMA',
    remote_link => NULL,
    job_name => 'ldev_may20',
    version => 'LATEST');
    DBMS_DATAPUMP.add_file(
    handle => l_dp_handle,
    filename => 'ldev_may20.dmp',
    directory => 'DATA_PUMP_DIR');
    DBMS_DATAPUMP.add_file(
    handle => l_dp_handle,
    filename => 'ldev_may20.log',
    directory => 'DATA_PUMP_DIR',
    filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
    DBMS_DATAPUMP.start_job(l_dp_handle);
    DBMS_DATAPUMP.detach(l_dp_handle);
    END;
    ============================================================
    I dont want to export all contents as the above, but want to export data based on some conditions and only on selective tables.
    Any help is highly appreciated.

Maybe you are looking for

  • Workitem assignment on User workplace - FS-CM

    There is a issue on workitem assignment to user(agent), there are more workitem which is not assigned to user. How to know exactly findout those workitem which is not assigned to user(agent). Where to find the user details to whome the workitem has b

  • Does anyone have "Best Practices" to move GRC 5.2 to its own environment?

    Hello, Has anyone else put the GRC applications on a shared server and then decided to move them?  We have been running Access Enforcer, & Compliance Calibrator on a box shared with Solution Manager.  We now have permission to put it on a separate se

  • Creating a Brochure + Help Needed

    Hello Everyone, I am seeking help in trying to make a brochure.  As you see in the photos i am trying to make a brochure that has slots  and pockets, where you can place other pamphlets, also be able to place  cards (e.g. business cards) using little

  • StuckThreadMaxTime, exceeds(more than 600s) server is getting crashed

    Hi All, We have one functionality like bulk warranty and entitlement, where user can upload a text file which contain more than 1000 lines. If multiple users are uploading at a time, separate thread is creating for each users and it exceeds StuckThre

  • Import copied project

    Hi, I am moving a project from one computer to the other. I have Premiere Elements 11 on both computers. From the first one I did a Project Archive, and chose Copy. Can I import this project on the new computer in just one click? BR A