APD from query to flat file - Results not correct

Hi All,
  Need your help to resolve the issue.
I am using APD with query as source and target as file download.
For small sets of data the reults are dowloaded correct, howver if there is a large set more than 30K records the results dowloaded are incorrect.
BEX results are fine, the issue is only with APD dowload.
Appreciate all your responses at the earliest.i
Thanks
Hari

Hi Hari,
By using the tcode RSCRM_BAPI  you can Extract the date into Table or CSV file or save the file to the Application server .
please check the below link:
https://websmp103.sap-ag.de/~sapdownload/011000358700004400232004E/HowToRSCRM_BAPI.pdf
Thanks and Regards
Sekhar

Similar Messages

  • Unattended Daily Exporting of Query to Flat File

    I am VERY new to Oracle and SQL Plus. I've been tasked with automating a query to run unattended daily to export data and store it in a flat file with structured naming convention (CC_MMDDYY.exp). I need to have it be able to an "on demand" query to flat file too. Any help would be appreciated.

    search asktom.oracle.com (temporary unavailable right now) for keyword flat file to obtain a procedure to write the result of a given query to a flat file and that's it. You can then schedule it's execution using DBMS_SCHEDULER or execute it on demand.
    Regards
    Etbin
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:68212348056
    Message was edited by: Etbin
    user596003

  • Export security-Info from planning to flat file

    <p>In planning there's the possibility of <b><span style=" color: #008000;">importing</span></b> security information (assignedaccess) by the utility ImportSecurity.exe.</p><p> </p><p>Is there the possibility of <b><span style=" color:#ff0000;">exporting</span></b> this information (e.g. access todimensions or forms) from planning to flat file.</p><p> </p><p>Note: In shared services there's another utility for import andexport of provisioning information (command-line tool) but thisdoesn't comprise import/export of security info of anapplication.</p><p> </p><p>Regards</p><p>Geri</p>

    Hello Geri,<BR><BR>Currently, Planning 3.5.1 does not have any utility to export security out of planning. <BR><BR>What you can do is this that generated PDF files through the application itself and then convert it in to text files and so on to load security via importsecurity.exe. <BR><BR><BR>Thanks,<BR>Scorpio<BR><BR><BR><BR>

  • How to query the flat files?

    Hi
    How to query the flat files that are used in Etl From EBS source.

    That can be done in OBIEE. Save the flat file as .csv format. Then go to ODBC Administrator on windows machine where you BI server is running, and create an System DSN and select "Microsft Access Text Driver (*.txt, *.csv)" as driver type.
    Next, import tables in RPD using this ODBC connection. Rest of the steps as same as building model from a table source.
    Hope this helps.

  • How to extract data from Essbase to Flat File using ODI

    Hi,
    Anyone know how to extract data from Essbase to Flat File using ODI?
    Thanks in advance.
    Regards,
    Sumardi

    Hi,
    Have you read through :-
    Oracle Data Integrator Adapter for Hyperion Essbase Getting Started - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_getting_started.pdf
    Oracle Data Integrator Adapter for Hyperion Essbase User's Guide - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_users.pdf
    If you have read them and are still have a problem at what stage are you having the issues?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Files are not correctly named and only 1kb in size - Music Downloads

    I have encountered a different problem. I bought a music album on my Z10, and when i download it, the files are not correctly named and only 1kb in size.
    No error is given when downloading, but when i open it, the phone switches to the music player and clains the file does not exist. When i look on the sdcard, there are files which contain something like this:
    <html><head><title>Object moved</title></head><body>
    <h2>Object moved to <a href="http://media.geo.7digital.com/media/error.aspx?errorCode=2001&amp;errorMsg=The%2btrack%2b'8638556'%2...">here</a>.</h2>
    </body></html>
    Is there any way how I can deal with this problem?

    Ok, does anyone from support read here? I bought this album on 23rd of March. Emails to the appworldsupport email adress from the confirmation email give me just the information back that "direct support is unavailable through this address" I would really like to finally listen to my music... As i paid for it. It still does not download... Is there any email address i can contact for this issue?

  • Saving result from query into CSV file

    Hi folks,
    in our application we're generating pages source using general packages (like htp, owa_util, ...). and in this part I'm a really beginner.
    I want to modify source one of our page, I want to add functionality to enable save result from query (cursor) into CSV file, to enable user choose place where generated file will be created and also change file name.
    I searched this forum and I found procedure, that could be useful:
    procedure p_getcsv is
    cursor cur is
           select 'a1' col1, 'b1' col2, 'c1' col3 from dual
       union  select 'a2' col1, 'b2' col2, 'c2' col3 from dual
       union  select 'a3' col1, 'b3' col2, 'c3' col3 from dual;
       begin
            -- Set the MIME type
            owa_util.mime_header( 'application/octet', FALSE );
            -- Set the name of the file
            htp.p('Content-Disposition: attachment; filename="test.csv"');
            -- Close the HTTP Header
            owa_util.http_header_close;
            -- Loop through all rows in EMP
            for x in cur
            loop
                -- Print out a portion of a row,
                -- separated by commas and ended by a CR
                 htp.prn(x.col1||','|| x.col2||','||x.col3|| chr(13));
            end loop;        
       end;What peace of code should I add to procedure that is generating web page to enable calling this procedure and whole saving process?
    Can anybody help me with this?
    Many thanks,
    Tomas
    Message was edited by:
    Tomeo

    Hi Marc,
    thanks for reply, problem is that I'm not using APEX application, I'm just generating web page code straight using oracle general packages.
    But I found this solution (maybe some tunning will be good):
    In page where I want to display Download i have
      begin
             htp.anchor2 (
                           curl  =>  ... .p_getcsv'||'?term=2005&crn=123,
                           ctext => 'Download Class List'
             HTP.br;
          end;
    ...si I'm calling p_getcsv procedure:
      procedure p_getcsv( term  IN stvterm.stvterm_code%TYPE DEFAULT NULL,
                           crn   IN sirasgn.sirasgn_crn%TYPE DEFAULT NULL) is
       v_length      NUMBER;
       v_file_name   VARCHAR2 (2000);
       temp_blob  blob;
       line RAW(32767);
       begin
             DBMS_LOB.CREATETEMPORARY(temp_blob, TRUE);
             FOR i IN 1..6  LOOP
                line := UTL_RAW.CAST_TO_RAW(i||','||term||','||crn||',AAA,BBB,CCC'||chr(10));
                DBMS_LOB.WRITEAPPEND(temp_blob, LENGTH(UTL_RAW.CAST_TO_VARCHAR2(line)), line);
             END LOOP;
              v_file_name := 'ClassList.csv';
              v_length  := DBMS_LOB.getlength (temp_blob);
              -- set up HTTP header
                 -- use an NVL around the mime type and
                 -- if it is a null set it to application/octect
                 -- application/octect may launch a download window from windows
               OWA_UTIL.mime_header (NVL ('csv', 'application/octet'), FALSE);
               -- set the size so the browser knows how much to download
               HTP.p ('Content-length: ' || v_length);
               -- the filename will be used by the browser if the users does a save as
               HTP.p (   'Content-Disposition:  attachment; filename="'
                  || REPLACE (REPLACE (SUBSTR (v_file_name,
                                               INSTR (v_file_name, '/') + 1
                                       CHR (10),
                                       NULL
                              CHR (13),
                              NULL
                  || '"'
                 -- close the headers
                 OWA_UTIL.http_header_close;
                -- download the BLOB
                 WPG_DOCLOAD.download_file (temp_blob);
                 -- release temporary blob
                 dbms_lob.freetemporary(temp_blob);  
       end;Regards,
    Tomas

  • Query using flat file in the FROM Statement

    I have a flat file that contains about 10k rows that I need to join to a table with 2million plus rows. My problem is I cannot load the flat file into a Oracle table or create a new table to contain the 10k rows because I lack of permissions to create table on my user account. I have tried using MS-Access to query the two tables using ODBC, but the query times were horribly slow and would time out. I was curious if there is a way of calling the flat file as a table in my SQL statement from Oracle?
    I know the following doesn't work but I was wondering if there is something out there that would allow me to do something like the following?
    example:
    SELECT a.COL1, a.COL2, ff.COLa, FF.COLb
    FROM apple a, c:\temp\flat_file.csv ff
    WHERE a.COLa=ff.COLa
    db version - 10g
    OS - Windows XP Pro
    Thanks in Advance!

    user9339442 wrote:
    I have a flat file that contains about 10k rows that I need to join to a table with 2million plus rows. My problem is I cannot load the flat file into a Oracle table or create a new table to contain the 10k rows because I lack of permissions to create table on my user account. I have tried using MS-Access to query the two tables using ODBC, but the query times were horribly slow and would time out. I was curious if there is a way of calling the flat file as a table in my SQL statement from Oracle?
    I know the following doesn't work but I was wondering if there is something out there that would allow me to do something like the following?
    example:
    SELECT a.COL1, a.COL2, ff.COLa, FF.COLb
    FROM apple a, c:\temp\flat_file.csv ff
    WHERE a.COLa=ff.COLa
    db version - 10g
    OS - Windows XP Pro
    Thanks in Advance!Is there some reason you cannot get the data loaded into the local database?
    If you absolutely cannot (either through creating and loading objects, or having someone else do it for you) i would likely recommend installing your own database (Oracle XE is free and will easily handle your flat file)
    http://www.oracle.com/technetwork/database/express-edition/downloads/index.html
    I would install that, load your data into a schema you create, and then create a database link to the remote database and use that in your query.
    I would highly push you to work with the administrators of the database though and get them to set you up a schema where you can create objects (with access to the objects in other schemas that you require, if only read permitted).

  • ESB not moving data from database to flat file

    Using ESB, created an database adapter/routing service (polling for changed records) & file adapter to write all records from a database table to a flat file as a series of XML entries in the file. I only get the last record from the database into the flat file. Using JDev 10.1.3.2 and SOA Suite 10.1.3. Have a 'status' column in the source database table that is set to 'PROCESSED' when the record has been processed. After I get the one XML element, representing the last record in the database, I look at the database table and ALL rows have their 'status' column set to PROCESSED - the field was null before the database table was processed.
    How do I get ALL of the records into the flat file?
    Thanks - Casey

    Hi.
    Check this:
    ESB File Adapter: Append to log file not supported???
    Denis

  • SSIS to Export data from SQL to flat file dynamically

    Hi.
    I hope somebody can help me out, I have a table like this:
    Date, StoreNumber, ProductCode, SalesItem, SalesAmout, Inventory
    09-10-2014,10,1,10,10,30
    As you can see I have a Date field and my table has information from 2014 at daily basis, What I'm trying to do is to export the information of this table to flat files, creating one file pear each date, as a result I will have about 280 files (one per date)
    I do not know if it is possible or not.
    Thank you.

    Hi Mike,
    you can do it using one Execute SQL Task and a ForEach Loop variable driven.
    1st the Execute SQL Task "figures out" how many iterations the loop would need. The SQL as follows would drive it:
    SELECT DISTINCT [DATE] FROM MyTable;
    and you get the dates placed into a package variable of type recordset for the [280] files.
    And then you can operate on the recordset in the loop "shredding it" in a DFT with a source query dynamically driven by the date as "select a,b,c from mytable where date = '" + @[User::CurentDate] + "'" placing each
    "date" into its own file even naming the file after the date using the current value of the package variable (ADO row concept).
    See an example: http://www.sqlis.com/sqlis/post/Shredding-a-Recordset.aspx
    Arthur My Blog

  • Extraction of procedure from DB to flat file

    I have recently moved from using Informix to Oracle and I am trying to find a way to extract a procedure from the Oracle database to a flat file on my system. Informix has utility dbschema which allowed me to do that, what does Oracle have that can do the same thing.
    Thanks,
    Bret.

    Bret,
    You can do the same using SQL*PLUS. To output a stored procedure, function or package to a flat file, you will have to query the user_source view. You need to know the procedure name.
    These are the steps:
    1) Log in to SQL*PLUS
    2) Issue the following statement:
    SET HEADING OFF
    SET FEEDBACK OFF
    spool file_name
    SELECT text from user_source
    WHERE name = 'PROCEDURE_NAME';
    spool off
    where file_name is the output file name the source code will be generated into. PROCEDURE_NAME is the name of the procedure, function or package.
    NOTE: The name of the procedure must be in upper case.
    Regards,
    John

  • Translating Excel query into flat file(.CSV)

    Hi,
    I have a requirement where i need the Excel Queries to be displayed in Flat file(.CSV) format.
    To be more clear i have an excel query but  my client requires this query to be displayed in a Flat file format. Can someone explain me how i can acheive this.
    Thanks

    Hi All,
    Thanks for all the information provided by i missed mentioning one point, actually thse queries are to be automatically schedule. the requirement is like this i need to bring to extract data and build queries export it as a .CSV file these queries are not end user queries so they have to be automatically scheduled and will be picked up by an interface so they do some mapping with the .CSV file we provide.
    So we decided to do it in Reporting Agent in Excel format and automate it and send the file to a specific location from where the Interface team can pick it. which doesnt need an user to run the query.
    so can someone tell me if i can automate a query and as well as have the query in .CSV format?? I hope i was clear
    Thanks.

  • SSIS Flat File Source not populating varchar column

    I have SSIS package that imports flat files with column separator | from "Flat File Source" into the database trough "OLE DB Destination".
    For one of the columns (file contains UIDs in curly brackets) destination column is varchar(250) null-able, when "Retain nulls" is set to true complete data have been imported, but when "Retain nulls" is set to false beside fact that in
    the file data is not null and it is not empty string it is not imported and in the destination column is empty string.
    I know that this "Retain nulls" applies to the columns that contains NULLs but this is not the case.
    If someone have experience with such issue please help.
    Thank you in advance.

    From your statement it looks like when you have curly brackets it skips the value and inserts nulls instead. And that may be the reason why its working fine when you change retain null value. 
    I would suggest 
    Make your setting "retain null" to true and load the flat file, then check what happens to the values having curly braces (is there any value or null) , if there is value we need to check for that(please share a sample file). And if it having null
    instead of "{value}", I would suggest to put a script task to remove { from your flat file and then try load the data.
    Hope this helps.
    Regards, -Amit

  • OWB FLAT FILE MAPPING NOT ABLE TO DEPLOY

    Hi,
    I've recently started studying data warehousing and exploring the Datawarehouse builder version 3i.
    I've created a simple mapping from a csv file to database table ie my source is a flat file and target is a database table. The mapping gets validated successfully and the ctl scrip also gets generated. But the 'Deploy' and "Run' buttons on the "Transformations" tab of the "Generation Results" window are displabled(greyed out) and hence I cannot deploy the generated script.
    Please do suggest the cause and solution for the same.
    Regards,
    Barkha

    Many Thanks to Winfred Deering from Oracle who replied:
    "This is the expected behavior for flat file mappings. You can register the tcl script with Oracle Enterprise Manager and run it from there. Also you can save the control file and execute via sql loader. "
    Thanks and Regards,
    Barkha

  • IDOC --- XI -- HTTP (via a flat file structure, not XML)

    I am working on a senario in which we need to send a third party payroll service provider our HR Master Data records (Message type HROT_UM).  The manual method is to create a flat file from an IDOC and place the file in a shared directory, then upload the flat file by logging on to the web server.  We would like to automate this process using XI.
    Is it possible to send a flat file structure to a webserver using a HTTP receiver adapter?  If not, can you provide a basic view of how to accomplish this task.  Please note that FTP is not an option for us. 
    Any suggestions or recommendations would be greatly appreciated.

    hey
    flat file over HTTP is not possible,it takes only XML.
    have a look at the following thread
    Send file through http
    thanx
    ahmad
    PL:reward with points for helpful answers

Maybe you are looking for

  • How to Customize Error message in JXL

    Hi All, I want to customize error message in JXL. I.e. When we apply number validation to a cell and if you enter invalid data MS-Excel shows error message saying that "The value you entered is not valid". But I want to customize this message to "Dat

  • Trouble clean installing Mac OS 10.5.6

    I am using a MacBook 3.1 Intel Core 2 Duo. The install disc I am using came with this MacBook and it is for Mac OS 10.5.6 I have formatted and re-partitioned the drive with no luck. Everytime I try to install I get to the language selection and then

  • What extractors or data source do i have to activate to load the TR COOIS

    Hi all, i need to do a report where i must load all the data that the TR COOIS execute in R3, i would like to know what extractor, data source, etc i need to activate to load this data to BW, what advices or what i need to do, please help

  • Plug-in for Quicktime to play XDCam?

    I'm working in XDCAM (with the Sony EX3 at 1080p 24fps). I want to deliver my current clients a Quicktime they can play directly from a new Mac PowerBook. I notice they can play a ProRes version without having anything additional installed; but when

  • Skinning/Styling adfp:portlet component while consuming portlets.

    Hi Everyone, I am trying to skin the adfp:portlet component in my portal application. However, every styling that appears in JDeveloper to take effect ( for example if I change the background color, it shows up in editor) seems to go off at runtime.