Export of IMG tables to files

Hello !
I'm a forum newbie so please forgive me if this post should be in another group, but it seems to me like kind of "general" question though :).
I have to make a backup of all configuration made by IMG. Actually I have to export all tables to files.
I can't find any nice solution so I'm using S_CUS_IMG_SELECT_NODES function to get all IMG nodes and I analyze them to see where are the data related.
By reading activities and references in most cases I can get names of maintenance views or cluster tables views.
For now I have the following problems:
- how to read data from maintenance view to a internal table?
  I guess I have to analyze how this view is build, make a genuine select with joins which will select the same data as the view and then store this data to a file. Any other solutions?
- how can I read and store data from cluster tables views?
This seems to be quite complicated problem so maybe any other solutions to solve it?
Thank You in advance for any insights on this matter and I would appreciate any help You can give me.
Saturnin Swedrak

In the new SQL Developer Early Adopter the export feature (now renamed to unload) has been vastly reworked and improved, and has the option to export to multiple files, you can give this a try.
Mind there is a missing feature (export to clipboard) that has been removed by mistake in the EA, it will be restored for the production release, and for the next EA's.

Similar Messages

  • DM - "Export from Fact Table" works but "Export" does not work properly

    Hi,
    I'm using BPC7M.
    I found it strange that Export cannot dump data to a flat file though I'm pretty sure my selection of dimension members contain data. The existing of data was further confirmed by running Export from Fact Table successfully, where I chose the same set of dimension members. Below are the log files.
    Export log file  FAIL
    u603Bu6B65u9AA4  2
    1. Dump Data:     Failed in 32 sec.
    [u9009u62E9]
    FILE=\Shenergy\WJ2\DataManager\DataFiles\WJ2_SunnyTest.txt
    TRANSFORMATION=\SHENERGY\WJ2\DATAMANAGER\TRANSFORMATIONFILES\SYSTEM FILES\EXPORT.XLS
    MEASURENAME=PERIODIC
    (u6210u5458u9009u62E9)
    Category:
    Time:
    WED_Entity:
    B_Account:
    DataSrc: INPUT
    [u6D88u606F]
    There is no data in the selected region; select a region that has data._2_True
    Export from Fact Table log file   SUCCESS
    u603Bu6B65u9AA4  2
    1. Dump Data:          completed in 1 sec.
    2. Convert Data:       completed in 0 sec.
    [u9009u62E9]
    FILE=\Shenergy\WJ2\DataManager\DataFiles\\WJ2SunnyTest.txt
    TRANSFORMATION=\SHENERGY\WJ2\DATAMANAGER\TRANSFORMATIONFILES\SYSTEM FILES\EXPORT.XLS
    (u6210u5458u9009u62E9)
    Category:
    Time:
    WED_Entity:
    B_Account:
    DataSrc: INPUT
    [u6D88u606F]
    Record Count: 104
    Accept Count: 104
    Reject Count: 0
    Skip Count   :0
    I tried Export in another application and it worked properly. Maybe there is something wrong with the application but I don't know how I can fix this.
    Thanks!
    Sunny

    Hi Sorin,
    In order to make sure the sum is not equal to 0, I ran the "Clear" package and full optimize the application. Afterwards, I deliberately sent only 1 record. I ran the "Export from Fact Table" and I have the following contents in my output flat file.
    B_ACCOUNT,TIME,WED_ENTITY,DATASRC,CATEGORY,SIGNEDDATA
    KPI0001,2009.INP,DEP_INPUT,INPUT,ACTUAL,-500.0000000
    This confirms that the sum is not 0. Then, I ran "Export" package. Yet again, I encountered the same error.
    There is no data in the selected region; select a region that has data._2_True
    Best Regards,
    Sunny

  • I export an ACCESS table to an existing Excel file. Seemed like it was working fine, but now I see that it DOES NOT clear the file first.

    Thus - if I transferred 10 records last time, and there are only 6 to transfer this time, it replaces records 1 thru 6 in Excel, but LEAVES records 7-10 in the Excel file ?? 

    When you export the access Table to an existing excel file ,you should get the message like the screenshot below:
    If you click 'Yes' ,a new workbook will created ,the problem you mentioned doesn't exist.
    Maybe you can try to export data within Excel. On the Data Tab->Click
    From Access->choose the database file, then when you update your database in Access, these data will updated automatically.
    Wind Zhang
    TechNet Community Support

  • Export Screen to Flat Text file

    Hello,
    I'm very new in SAP and need to modify a little program.
    I would like to export the current screen in a flat text file.
    The file must be stored on the SAP server ( /usr/sap/data/bel) so not on my local harddrive.
    I searched and found found functions like WS_download and GUI_download, but I'm not sure how to use them. Can somebody help me please?
    Curent Code of my report:
    REPORT ZAT_CLRDEP01.
    Tables declaration
    tables : vbrp,bkpf,bseg.
    Data declaration
    data: begin of itab1 occurs 0,
              vbeln like vbrp-vbeln,
              arktx like vbrp-arktx,
              belnr like bkpf-belnr,
          end of itab1.
    data: begin of itab2 occurs 0,
              vbeln like vbrp-vbeln,
              arktx like vbrp-arktx,
              belnr like bkpf-belnr,
          end of itab2.
    data: begin of itab3 occurs 0,
              kunnr like bseg-kunnr,
              name1 like kna1-name1,
              vbeln like vbrp-vbeln,
              zfbdt like bseg-zfbdt,
              belnr like bkpf-belnr,
              augcp like bseg-augcp,
              augbl like bseg-augbl,
              arktx like vbrp-arktx,
          end of itab3.
    data: begin of itab4 occurs 0,
              kunnr like bseg-kunnr,
              name1 like kna1-name1,
              vbeln like vbrp-vbeln,
              zfbdt like bseg-zfbdt,
              augcp like bseg-augcp,
              augbl like bseg-augbl,
              arktx like vbrp-arktx,
              pswbt like bseg-pswbt,
          end of itab4.
    data: vbeln_tst like vbrp-vbeln.
    Selections
    parameters accgrp like vbrp-ktgrm default '03' obligatory.
    parameters compcde like bkpf-bukrs default 'LOI' obligatory.
    select-options: billdoc for vbrp-vbeln.
    select-options: customer for bseg-kunnr.
    select-options: fiscyear for bkpf-gjahr.
    select-options: reldate for bseg-augcp.
    select-options amount for bseg-pswbt.
    INITIALIZATION.
      fiscyear-low = sy-datum(4).
      fiscyear-high = sy-datum(4).
      append fiscyear.
      reldate-high = sy-datum.
      append reldate.
      amount-low = '100'.
      amount-high = '2000'.
      append amount.
    START-OF-SELECTION.
      refresh: itab1,itab2,itab3,itab4.
      clear  : itab1,itab2,itab3,itab4.
      clear: vbeln_tst.
      select * into corresponding fields of table itab1
        from vbrp inner join bkpf
        on    vbrpmandt = bkpfmandt
          and vbrpvbeln = bkpfxblnr
        where vbrp~ktgrm = accgrp
          and bkpf~bukrs = compcde
          and bkpf~gjahr = fiscyear.
      loop at itab1.
        if itab1-vbeln ne vbeln_tst.
          move itab1-belnr to itab2-belnr.
          move itab1-vbeln to itab2-vbeln.
          move itab1-arktx to itab2-arktx.
          append itab2.
        endif.
        vbeln_tst = itab1-vbeln.
      endloop.
      loop at itab2.
        select * from bseg
                      where bukrs = compcde
                        and belnr = itab2-belnr
                        and gjahr = fiscyear
                        and buzei = '001'
                        and augcp in reldate
                        and augbl ne ''
                        and vbeln in billdoc
                        and kunnr in customer.
          if sy-subrc = 0.
            move itab2-belnr to itab3-belnr.
            move bseg-kunnr to itab3-kunnr.
            select single name1 from kna1
                          into itab3-name1
                 where kunnr = itab3-kunnr.
            move itab2-vbeln to itab3-vbeln.
            move bseg-zfbdt to itab3-zfbdt.
            move bseg-augcp to itab3-augcp.
            move bseg-augbl to itab3-augbl.
            move itab2-arktx to itab3-arktx.
            append itab3.
          endif.
        endselect.
      endloop.
      loop at itab3.
        select * from bseg
                    where bukrs = compcde
                      and belnr = itab3-belnr
                      and gjahr = fiscyear
                      and hkont = '0000488600'
                      and pswbt in amount.
          if sy-subrc = 0.
            move itab3-kunnr to itab4-kunnr.
            move itab3-name1 to itab4-name1.
            move itab3-vbeln to itab4-vbeln.
            move itab3-zfbdt to itab4-zfbdt.
            move itab3-augcp to itab4-augcp.
            move itab3-augbl to itab4-augbl.
            move itab3-arktx to itab4-arktx.
            move bseg-pswbt to itab4-pswbt.
            append itab4.
          endif.
        endselect.
      endloop.
    END-OF-SELECTION.
      sort itab4 by kunnr.
      loop at itab4.
        at first.
          write:/ '   customer                    ','billing doc.',
          'Billing date',' Release date','Release doc.',
         '            material                         ','G/L amount'.
        endat.
        write:/ itab4-name1.
        write at 36 itab4-vbeln.
        write at 47 itab4-zfbdt.
        write at 61 itab4-augcp.
        write at 74 itab4-augbl.
        write at 88 itab4-arktx.
        write at 127 itab4-pswbt.
      endloop.
    Thanks in advance!
    Kindly regards,
    Nico

    Hello,
    Thanks for your help and fast reaction, I added the 'open dataset' but probably made some minor error:
    I'm getting  field "result" (name of my text file) is unknown. It is neither in one of the specified tables or defined by a 'DATA' statement
    Currently have following code:
    Objet du programme :                                                 *
          Recherche de documents de facturation SD sur base de           *
          l' "account assignment group" de l'article                     *
          Stocker ces valeurs dans une table interne afin                *
          de retrouver les pièces comptables correspondantes.            *
          Afficher le N° du document de facturation, celui de la         *
          pièce comptable, la date de release du release document.       *
    REPORT ZAT_CLRDEP01.
    Tables declaration
    tables : vbrp,bkpf,bseg.
    Data declaration
    data: begin of itab1 occurs 0,
              vbeln like vbrp-vbeln,
              arktx like vbrp-arktx,
              belnr like bkpf-belnr,
          end of itab1.
    data: begin of itab2 occurs 0,
              vbeln like vbrp-vbeln,
              arktx like vbrp-arktx,
              belnr like bkpf-belnr,
          end of itab2.
    data: begin of itab3 occurs 0,
              kunnr like bseg-kunnr,
              name1 like kna1-name1,
              vbeln like vbrp-vbeln,
              zfbdt like bseg-zfbdt,
              belnr like bkpf-belnr,
              augcp like bseg-augcp,
              augbl like bseg-augbl,
              arktx like vbrp-arktx,
          end of itab3.
    data: begin of itab4 occurs 0,
              kunnr like bseg-kunnr,
              name1 like kna1-name1,
              vbeln like vbrp-vbeln,
              zfbdt like bseg-zfbdt,
              augcp like bseg-augcp,
              augbl like bseg-augbl,
              arktx like vbrp-arktx,
              pswbt like bseg-pswbt,
          end of itab4.
    data: vbeln_tst like vbrp-vbeln.
    Selections
    parameters accgrp like vbrp-ktgrm default '03' obligatory.
    parameters compcde like bkpf-bukrs default 'LOI' obligatory.
    select-options: billdoc for vbrp-vbeln.
    select-options: customer for bseg-kunnr.
    select-options: fiscyear for bkpf-gjahr.
    select-options: reldate for bseg-augcp.
    select-options amount for bseg-pswbt.
    INITIALIZATION.
      fiscyear-low = sy-datum(4).
      fiscyear-high = sy-datum(4).
      append fiscyear.
      reldate-high = sy-datum.
      append reldate.
      amount-low = '100'.
      amount-high = '2000'.
      append amount.
    START-OF-SELECTION.
      refresh: itab1,itab2,itab3,itab4.
      clear  : itab1,itab2,itab3,itab4.
      clear: vbeln_tst.
      select * into corresponding fields of table itab1
        from vbrp inner join bkpf
        on    vbrp~mandt = bkpf~mandt
          and vbrp~vbeln = bkpf~xblnr
        where vbrp~ktgrm = accgrp
          and bkpf~bukrs = compcde
          and bkpf~gjahr = fiscyear.
      loop at itab1.
        if itab1-vbeln ne vbeln_tst.
          move itab1-belnr to itab2-belnr.
          move itab1-vbeln to itab2-vbeln.
          move itab1-arktx to itab2-arktx.
          append itab2.
        endif.
        vbeln_tst = itab1-vbeln.
      endloop.
      loop at itab2.
        select * from bseg
                      where bukrs = compcde
                        and belnr = itab2-belnr
                        and gjahr = fiscyear
                        and buzei = '001'
                        and augcp in reldate
                        and augbl ne ''
                        and vbeln in billdoc
                        and kunnr in customer.
          if sy-subrc = 0.
            move itab2-belnr to itab3-belnr.
            move bseg-kunnr to itab3-kunnr.
            select single name1 from kna1
                          into itab3-name1
                 where kunnr = itab3-kunnr.
            move itab2-vbeln to itab3-vbeln.
            move bseg-zfbdt to itab3-zfbdt.
            move bseg-augcp to itab3-augcp.
            move bseg-augbl to itab3-augbl.
            move itab2-arktx to itab3-arktx.
            append itab3.
          endif.
        endselect.
      endloop.
      loop at itab3.
        select * from bseg
                    where bukrs = compcde
                      and belnr = itab3-belnr
                      and gjahr = fiscyear
                      and hkont = '0000488600'
                      and pswbt in amount.
          if sy-subrc = 0.
            move itab3-kunnr to itab4-kunnr.
            move itab3-name1 to itab4-name1.
            move itab3-vbeln to itab4-vbeln.
            move itab3-zfbdt to itab4-zfbdt.
            move itab3-augcp to itab4-augcp.
            move itab3-augbl to itab4-augbl.
            move itab3-arktx to itab4-arktx.
            move bseg-pswbt to itab4-pswbt.
            append itab4.
          endif.
        endselect.
      endloop.
    END-OF-SELECTION.
      sort itab4 by kunnr.
    EXPORT OUTPUT TO FLAT TEXT FILE :                                    *
    open dataset result for output in text mode.
    if sy-subrc = 0.
    loop at itab4.
    at first.
    write:/ ' customer ','billing doc.',
    'Billing date',' Release date','Release doc.',
    ' material ','G/L amount'.
    endat.
    write:/ itab4-name1.
    write at 36 itab4-vbeln.
    write at 47 itab4-zfbdt.
    write at 61 itab4-augcp.
    write at 74 itab4-augbl.
    write at 88 itab4-arktx.
    write at 127 itab4-pswbt.
    transfer itab4 to result.
    endloop.
    close dataset result.
    endif.
    Thank you!
    Regards,
    Nico

  • Transfer intenal table to file

    Hi abaers,
    i need to transfer the internal table data to file,,this file to create in application server.
    internal table lineitems contains 100 fields...
    i tried in the following method: but 100 fields i have to move each and evry field to t_output-data.. so it is becoming complex.
    data: begin of t_output occurs 0,
         data(800),
       end of t_output.
    loop at lineitems.
    t_output-data(4) = lineitems-COMP_CODE.
    t_output-data+4(10) = lineitems-VENDOR.
    append t_output.
    clear t_output.
    endloop.
       open dataset filename for output in text mode encoding default.
       loop at t_output.
          transfer t_output-data to filename.
         clear t_outpu-data.
       endloop.
       close dataset filename.
    endif.
    is there any other method to do direct transfer from internal table to file..

    Hi,
    I think FM: GET_COMPONENT_LIST would be very useful to u.
    i have attached the complete code and it's working absolutely fine with me.
    Code **********
    types: begin of type_item,
            f1(3),
            f2(3),
            f3(3),
            f4(3),
           end of type_item.
    types: begin of type_data,
            data(800),
           end of type_data.
    data : lineitems type table of type_item with header line,
           t_output type table of type_data with header line,
           fieldlist type table of RSTRUCINFO with header line.
    lineitems-f1 = 'a1'.
    lineitems-f2 = 'a2'.
    lineitems-f3 = 'a3'.
    lineitems-f4 = 'a4'.
    append lineitems.
    lineitems-f1 = 'b1'.
    lineitems-f2 = 'b2'.
    lineitems-f3 = 'b3'.
    lineitems-f4 = 'b4'.
    append lineitems.
    lineitems-f1 = 'c1'.
    lineitems-f2 = 'c2'.
    lineitems-f3 = 'c3'.
    lineitems-f4 = 'c4'.
    append lineitems.
    lineitems-f1 = 'd1'.
    lineitems-f2 = 'd2'.
    lineitems-f3 = 'd3'.
    lineitems-f4 = 'd4'.
    append lineitems.
    field-symbols : <fs> type any.
    CALL FUNCTION 'GET_COMPONENT_LIST'
      EXPORTING
        PROGRAM    = sy-repid
        FIELDNAME  = 'lineitems'
      TABLES
        COMPONENTS = fieldlist.
    data : fieldname like fieldlist-compname,data_line type type_data,dref
    type ref to data.
    format color 3.
    loop at lineitems REFERENCE INTO dref. .
    loop at fieldlist.
        fieldname =  fieldlist-compname .
        assign dref->(fieldname) to <fs>.
      concatenate data_line <fs> into data_line .
    endloop.
    append data_line to t_output.
    clear data_line.
    endloop.
    loop at t_output.
      write:/ t_output.
    endloop.
    Code *************
    If u still have any issues please revert back.
    Hope it'll help u.
    Regards,
    Ankur

  • Import/export journals using an output file

    I am looking into loading journals using an output file in SAP BPC intead of entering every journal using the template.
    Hello everybody,
    I have found that 3 DTS packages exist for this issue:
    Export the Journal Tables
    Clear the Journal Tables.
    Restore the Journal Tables.
    I have added these packages (using the three .dtsx files that are in the server, in the "Examples" folder) and, after that, run the packages in the proper order. I have some doubts that I would appreciate if you could solve them:
    1.- When I run "Export the Journal Tables" package, I can NOT make a selection of journals (for example, using Time dimension).There is no possibility. Is it possible modify this DTS package to export only some selected journals? In case it is, how?
    2.- In order to restore journals table, firstly you need to clear all the table using "Clear the Journal Tables" package (I tried to do it without clearing all the journals, and I got an error message that said that I have to clear the journal table before importing ). Would it be possible to restore/import only some journals WITHOUT clearing ALL the previous journals??
    3.- I have exported the Journal Table to an output file, clear all the journals in the Journal Table (using the proper package) and run the "Restore the Journal Tables" package using the output file I have gotten before. I have gotten this error: "Exception from HRESULT: 0x800A005B". Do you know what's the problem?
    4.- Dou you know another way of loading journals using an output file in SAP BPC intead of entering every journal using the template?
    Thank you very much.

    There may be options to your process, but as I have mentioned in other strings, the Journals in the BPC for Microsoft version are sequenced.  That means that there is a system generated sequence ID for each journal.  Any individual selection of journals would possibly cause an issue for the sequence. I have not seen any past work in SSIS to detach the records for export or import.  It may be possible, but I would assume it will take some core SQL coding.
    Regarding your error, you may need to verify that you have the security set correctly to use Journals and use the Data Manager capabilities.  Typically, when security tasks are not correct, you will get an error similar to your HRRESULTX.... error.
    An option for loading the details is to build a worksheet in EVDRE, aggregate the data and send it to the cube at a level that is easy to save the file and submit consolidated results.  Just make sure you send all "like" records at an aggregated to a base member, and send to a datasrc to identify the extra details. Then store the excel file with the input values.
    Hope this helps.
    Edited by: Petar Daniel on Feb 16, 2009 10:06 PM

  • Export of a table with BLOBS

    I have an application on our/your hosted environment.
    in two of this tables are stored some documents (pdf,doc) and pictures. For deploying my application to a local environment I can use application-export, image-export (for some global pictures), Create-DDL for views, sequences, tables and text-export for text-table-content.
    But how to get an export from BLOB like it is done by your Workspace-Image-Export.
    I know to use oracle exp/imp (needs sql*net) in a normal database environment, but I can't use it on the hosted environment.
    For some small Tables it could be a challenge to have such a way ( I think it should be possible similar the way of Workspace-Image-export) for developers data.
    Thanks Lutz

    I just knocked up a little page process to see if I could export a blob image to a text file -
    declare
      v_blob_locator BLOB;
      l_amt number default 57;
      l_offset number default 1;
      l_raw raw(80);
      resultString VARCHAR2(80);
      resultClob CLOB;
    begin
      OWA_UTIL.MIME_HEADER( 'application/octet', FALSE );
      HTP.P('Content-Disposition: attachment; filename="blob.txt"');
      OWA_UTIL.HTTP_HEADER_CLOSE;
      DBMS_LOB.CREATETEMPORARY(resultClob,FALSE,DBMS_LOB.CALL);
      SELECT BLOB_CONTENT
       INTO v_blob_locator
       FROM wwv_flow_files
       WHERE name = 'F2015933220/myimage.gif';
      LOOP
        DBMS_LOB.READ( v_blob_locator, l_amt, l_offset, l_raw );
        l_offset := l_offset + l_amt;
        resultString := UTL_RAW.CAST_TO_VARCHAR2( utl_encode.base64_encode(l_raw ) );
        resultClob:=TO_CLOB(resultString);
        HTP.PRN(resultString);
      END LOOP;
      EXCEPTION
        WHEN NO_DATA_FOUND THEN
          NULL;
      DBMS_LOB.FREETEMPORARY(resultClob);
      HTMLDB_APPLICATION.G_UNRECOVERABLE_ERROR := True;
    end;It appears to work...perhaps something like this could be adapted to export the blobs in a table?
    p.s. I apologise for the horrendous NO_DATA_FOUND, let's call it an early prototype ;)

  • Export and import table data with Java

    I need a library for simple exporting and importing table data.
    The data should be exported to a SQL file with insert statements.
    I just want to tell the library the table name, the connection and where to store the file. The usage should be very simple.
    Are there any small libraries for this? Finished calsses and methods which I can just call?

    I need a library for simple exporting and importing
    table data.
    The data should be exported to a SQL file with insert
    statements.Every database has utilities to export/import data from tables. Take a look at your database manual.

  • Ssrs 2012 export to comma delimited (csv) file problem

    In an ssrs 2012 report, I want to be able to export all the data to a csv (comma delimited) file that only contains the detailed row information. I do not want to export any rows that contain header data information.
    Right now the export contains header row information and detail row information. The header row information exists for the PDF exports.
    To have the header row not exist on CSV exports, I have tried the following options on the tablix with the header row information with no success:
    1. = iif(Mid(Globals!RenderFormat.Name,1,5)<>"EXCEL",false,true),
    2. = iif(Mid(Globals!RenderFormat.Name,1,3)="PDF",false,true),
    3. The textboxes that contain the column headers, the dataelelementoutput=auto and
       the text boxes that contain the actual data, I set the dataelelementoutput=output.
    Basically I need the tablix that contains the header information not to appear when the export is for a csv file.
    However when the export is for the detail lines for the csv export, I need that tablix to show up.
    Thus can you tell me and/or show me code on how to solve this problem?

    Hi wendy,
    Based on my research, the expression posted by Ione used to hide items only work well when render format is RPL or MHTML. Because only the two render format’s RenderFormat.IsInteractive is true.
    In your scenario, you want to hide tablix header only when export the report to csv format. While CSV file uses the textbox name in detail section as the column name, not the table header when you view the table. So if we want to hide the header row of the
    tablix, please refer to the steps below to enable the “NoHeader” setting in the RSReportserver.config file:
    Please navigate to RSReportserver.config file: <drive:>\Program Files\Microsoft SQL Server\MSRS1111.MSSQLSERVER\Reporting Services\ReportServer \RSReportserver.config.
    Backup the RSReportserver.config file before we modify it, open the RSReportserver.config file with Notepad format.
    In the <Render> section, add the new code for the CSV extension like this:
        < Extension Name="CSV"   Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
            <Configuration>
                <DeviceInfo>
                   <NoHeader>True</NoHeader>
                </DeviceInfo>
            </Configuration>
        < /Extension>
    Save the RSReportserver.config file.
    For more information about CSV Device Information Settings, please see:
    http://msdn.microsoft.com/en-us/library/ms155365(v=sql.110)
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Apex 3.0: export a report as .csv file without any Enclosed By character?

    In Apex "Report Attributes page/Report Export" is possible to define the Enclosed By field.
    The default Enclosed By by characters are a double quotation marks (" ").
    Is there a way to export the report as .csv file without any Enclosed By character?
    Example line format:
    a) using default Enclosed By
    "value1";"value2";"value3"
    b) using ('') as Enclosed By
    'value1';'value2';'value3'
    c) using blank space as Enclosed By
    value1 ; value2 ; value
    d) without any Enclosed By character
    value1;value2;value3
    What can we do in Apex to export a report as .csv file with the line format example d)?
    Thanks for your help.

    Hi,
    There is no Out of the box feature in Apex to achieve this functionality. But what you can do is write a page process to generate the CSV that you want.
    For this what I will do is on the first page where you press the Button it will call a PL/SQL page process which actually generates the csv. You can keep the existing report only for display purposes. Find the below process which generate the csv that you require.
    begin
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="filename.csv"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    htp.prn('columnHeader1,ColumnHeader2,ColumnHeader3'||chr(13));
    -- Loop through all rows
    for x in (
    Select column1,column2,column3 from table;
    loop
    -- Print out a portion of a row,
    -- separated by commas and ended by a CR
    htp.prn(x."column1"||','||x."column2"||','||x."column3"||chr(13));
    end loop;
    -- Send an error code so that the
    -- rest of the HTML does not render
    htmldb_application.g_unrecoverable_error := true; --You can leave out this line if you still want to display the existing HTML report.
    end;
    This will show a download box, so you can download the csv file. The page process should be called before header and the condition should be the button press.

  • Is it possible to export (expdp) oracle table from client machine ?

    Is it possible to export (expdp*) oracle table from client machine, without using Remote desk top connection ?*
    1) Database-10g server is in America
    2) client machine is in India
    3) Oracle client-10g software is installed in my machine
    4) I am able to connect to the server, could see all tables
    5) one table is with 35 million record, I wanted to export this table using data pump, is it possible?
    note: without using Remort desk top connection.

    Hi
    I used the following syntax , but I am getting error
    6) connect sys as sysdba
    create directory test_dir as '/dbusr1/exp_test'
    grant read, write on directory test_dir to user1;
    7) expdp user1/pwd1@xyz tables=test_1 directory=test_dir dumpfile=test_file.dmp logfile=test_file.log
    8) Errors
    In linux prompt I am getting this error
    -bash: expdp: command not found
    In windows cmd prompt I am getting this error
    ORA-39002: invalid operation
    ORA-39070: Unable to open the log file.
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE";, line 488
    ORA-29283: invalid file operation
    9) why ?
    -- Does the user ( "user1") should have any system level privilege ? to export his own table?
    -- This folder ('/dbusr1/*exp_test'*) has write privilege in os level.
    Thanks in advance
    sbmk_design
    Edited by: sbmk_design on Aug 24, 2009 12:06 AM

  • Exporting data in tables to an Excel spreadsheet?

    Is there a script or another way to export or save a documents tables (multiple tables over several pages) to an excel spreadsheet? I have found a solution which involves exporting each spread as a html file which i can then open straight in excel but this is still quite long winded and i can only seem to do this a spread at a time. As the job I am working on involves many pages this is taking too long. Surely there must be a script which can automate this in some way. I am fairly new to scripting so any help will be grateful. I have searched in scripting but nothing has really come close to what i am trying to achieve. Indesign CS5.5 user.

    Thanks for the quick response. I thought it was an applescript because of the word "applescript" within it. Now I'm running it as a jsx. However in my real document with nothing selected, it selects only one table on page 3 to export. I created a new test document with three tables in separate text boxes on one page, and the script only exports the first one. I put the three tables in one big text box (one story), and still it only exports the first one. I tried selecting the second table in the story and ran the script again, but it still just exported the first table.
    What I am hoping for is a script that will export every table to a single excel spreadsheet. Here is an example of the dummy tables with the legend in the first column and the data in the second column. I don't mind if the script exports the legend every time; I can repmove those columns in the excel file.
    1
    a
    2
    b
    3
    c
    4
    d
    5
    e
    6
    f
    7
    g
    8
    h
    1
    i
    2
    j
    3
    k
    4
    l
    5
    m
    6
    n
    7
    o
    8
    p
    1
    q
    2
    r
    3
    s
    4
    t
    5
    u
    6
    v
    7
    w
    8
    x

  • Export Data of Tables in Oracle to format DBF

    People,
    I need your help! I have a question...How I do for to export the a table (data) Oracle to format table in DBF using PL/SQL?
    Please, I am waiting an answer...
    Thanks a lot
    Tavares, Marcelo

    I would probably export to a simple text file (ASCII-delimited or fixed-length fields), then import to Excel and save as Dbase format.
    But the following link provides a way to do it directly in PL/SQL:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:711825134415

  • Runtime Error during export ALV Grid to Local File and Print Priview

    Hi all,
             While Exporting ALV grid to local file using menu List->export->local file , I m getting following runtime error,
             Field Symbol has not yet been assigned.
    Details of Errors:
    Program : SAPLKKBL
    Include :   LKKBLF99
    Module Type : (FORM)
    module name : GEN_FIELD_OUT2
    So. pls Suggest any good solution.
    Thanks & Regards,
    Sandip Sonar.

    hi
    this is happening just because you might have declared that your ALV list should have a checkbox, but defined no field as "checkbox" into your internal table.
    and one more thing to check up is that before you call the REUSE_ALV_GRID_DISPLAY, you need to fill a few parameters for instance is_layout. This one has a field box_fieldname, in which you have to enter the name of the field of the internal table that will store the 'X' as and when the checkbox is checked.
    hope this helps
    regards
    Aakash Banga

  • Object Open Error while trying to export the vDataFact table

    I am getting an error when trying to export the vDataFact table to a flat file.  I have been able to do this several time before with the segment tables but would like to run this against vDataFact
    The error in the error log is:
       ERROR:
           Code............ -2147217915
           Description..... Object was open.
    The screen error is:
          The connection cannot be used to perform this operation.  It is either closed or invalid in this context.
    The line that appears to cause the issue is: Set rssql = API.DataWindow.DataAccess.farsKeySet(CStr(strSQL))
    Here is my complete script:
    Sub webdatafacts()
    'Declare Variables
       Dim objFileSystem 'File System
       Dim strFileName 'File name
       Dim ObjTextFile
    'SQL variables
      Dim strSQL ' Placehold for SQL Query
      Dim rssql 'Placeholder for result set for sql query execution
    'SQL Statement
                strSQL = "SELECT PartitionKey, Account, AccountX, Entity, EntityX, ICP, ICPX, UD1, UD1X, UD2, UD2X, UD3, UD3X, UD4, UD4X, Amount  FROM vDataFact" 
                set rsSQL = DW.DataAccess.farsFireHose(strSQL,False)
    'Create the filesystem object
                Set objFileSystem = CreateObject("Scripting.FileSystemObject")
                Set ObjTextFile = objFileSystem.OpenTextFile(DW.Connection.PstrDirInbox & "\VDataFactExport.txt", 2, TRUE, 0)  
                ObjTextFile.Close
                If Not rssql.EOF and Not rssql.BOF Then
                Set objTextFile = objFileSystem.OpenTextFile(DW.Connection.PstrDirInbox & "\VDataFactExport.txt", 2, FALSE, 0)
                Do Until rssql.EOF
    'Loop across all fields in recordset delimiting them with a tab key
                For i = 0 To rssql.Fields.Count -1
               strString = StrString & rssql(i) & vbTab
               Next
    'Output the resulting string to the text file
              ObjTextFile.WriteLine (strString)
    'Reset the string to empty for the next record
             strString = ""
    'Move to the next record in the recordset
                  rssql.MoveNext
                  Loop
    'Close the recordset and the text file
                 rssql.Close
                 ObjTextFile.Close
        End If
    'Destroy the instance of the recordset from memory
          Set rssql = Nothing
    End Sub

    Thanks, that was one of my suspicions, however, i was able to get the script to work by changing:
    set rsSQL = DW.DataAccess.farsFireHose(strSQL,False)
    to
    set rsSQL = DW.DataAccess.farsFireHose(strSQL,True)
    ...to be honest though, i'm not entirely sure why that fixed my issue

Maybe you are looking for

  • PTR issues once the IP address range has been delegated to our name servers

    In the past, with only a DSL line, our ISP provided our forward and reverse dns entries for our zone and we never had problems with outgoing email. Recently, we've upgraded to a managed T1 line and have decided to run our own name servers on two xser

  • SBOP PC 7.5 NW installation error

    Hi All, I am instralling SBOP PC 7.5 NW and have hit an error.  Can anyone offer any assistance please? Hardware: Wintel x64 Windows 2008 Server. Error in phase: XPRA_EXECUTION SAPK-750AGINCPMBPC Errors occurred during post-handling AFTER_IMP_NROB fo

  • Ability to have multiple calendars in v2?

    with the ability to utilize active sync, will we also gain the ability to have multiple calendars? in the current setup if i enable activsync it will sync my current personal calendar (out of itunes) with my exchange calendar and vice-versa. i'd like

  • Firefox 4 will not activate the "Go Back One Page" arrow

    <blockquote>Locking duplicate thread.<br> Please continue here: [/questions/810414]</blockquote><br> When I have a page on the internet and try to go to page two of the article the arrow (in left hand corner of page) is inactive

  • Hello.  This afternoon my iPhone stopped working.

    The screen went blank and the device will not come back on.  I have tried resetting it by holding down the round button and the on off button down but this doesn't do anything.  The white apple symbol flashes intermitently.  The phone was fully charg