Single-code in save as CSV

Hi Every One,
I am scheduling the report in CSV formate.
I am geting single code with each and every value if I am opening it with excel sheet.
Can some one help me out how can I overcome from this single-code.
I have Marcro to get rid of it. Can some one please let me know how can I add Macro with webi reports.
Or
Can I add macro while scheduling the reports.
I am using BO 4.0.
Thanks in Advance
Rachna

HI,
The reason why CSV shows hh:mm:ss is because the date data in the query database contains hh:mm:ss in the date data itself.
This is not a bug. It happens by design.
Even when you see the date data in the table through Designer, you still see hh:mm:ss.
But when you see the data with Desktop Intelligence or Microsoft Excel, it might apply Cell Formatting and change how the date data to be seen.
CSV is a raw text file which should contain the data from database as it is, it could be different from what you see through DeskI or Excel.
If we want the report data in .CSV then we have to save the report as Excel and again save the .XLS as .CSV.
I hope it helps.
Regards,
Gaurav

Similar Messages

  • Simple save as .csv file

    Hi,
    is it possible to simplyfie the save as .csv file dialog? etc. by using filedialog in vba?
    each time i save as .csv i need to say yes to save in older format, select wich map i want to use...
    if i in VBA could have som file dialog brosing to the file i want to use etc.:
    stringtosave = "c:\testfiles\test.csv"
    and then call:
    FileSaveAs Name:=stringtosave , FormatID:="MSProject.CSV", map:="MapiwillUse"
    Regards
    Toni

    Hello Toni,
    I haven't had time to test this myself (it's Saturday!), but i suspect if you bracket your FileSaveAs command turning the MS Project alerts off and back on again, the alert box you're seeing will be suppressed:
    Application.DisplayAlerts = False
    FileSaveAs Name:=stringtosave , FormatID:="MSProject.CSV", map:="MapiwillUse"
    Application.DisplayAlerts = True
    If you wanted to get a dialogue to browse for the folder, you'll need to use an API call. Chip Pearson has posted a how to guide on how to browse for a folder using the API call "SHBrowseForFolderA". His website focusses on MS Excel VBA, but I've
    used this code myself in MS Project and can confirm it works the same.
    http://www.cpearson.com/excel/browsefolder.aspx
    ####Update####
    Rereading your question after posting my response, I think you'll want to browse for a file rather than a folder, which is a different api call - "ahtCommonFileOpenSave".
    I did a quick google search and the clearest example I came across was this one - again, not written for MS Project, but the code is the same:
    http://access.mvps.org/access/api/api0001.htm
    Andrew

  • Save a csv file on local host, executing a DTP Open hub in a Process chain?

    Hi All,
    my client has asked me to try if there is a way to save in the local host c:\  a .CSV file generated from an Open HUB executed by a DTP in a Process chain.
    when i execute my DTP it work correctly and it save the .csv file on my c:\ directory.
    my client doesn't want to give th users authtorization on RSA1 and want to try if there is a way to put the DTP in a process chain
    and when executing the process chain every user can have the file on his own local c:\ directory.
    i tried this solution but it doesn't work i get an error on executin the process chain:
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    Except.                     CX_SY_REF_IS_INITIAL
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
         caught in
        procedure "FILE_DELETE" "(METHOD)", nor was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        You attempted to use a 'NULL' object reference (points to 'nothing')
        access a component (variable: "CL_GUI_FRONTEND_SERVICES=>HANDLE").
        An object reference must point to an object (an instance of a class)
        before it can be used to access components.
        Either the reference was never set or it was set to 'NULL' using the
        CLEAR statement.
    can you give some advices please?
    Thanks for All
    Bilal

    Hi Bilal,
    Unfortunately, DTPs belonging to Open Hubs wich are targeted to a local workstation file, can't be executed through a process chain. 
    The only way of including such DTP in a process chain is changing the Open Hub so that it writes the output file in the application server.  Then, you can retrieve the file -through FTP or any other means- from the application server to the local workstation.
    Hope this helps.
    King regards,
    Maximiliano

  • Template Excel 2010 Save As csv suppress warnings

    Hi All,
    I am wondering if there is a solution to the following...
    I have a template file saved and I cut and paste information into this file
    I then need to save the file as a .csv file..
    However when I save as csv I get the warning message ...Is there a way to suppress this message?
    Thanks for any information at all..would be hugely appreciated.
    Cheers
    Aidan

    Hi,
    As far as I know, the alert message is used for explaining about settings and functionality like cell formatting, column filters, formulas, and other Excel specific functionality that won't be saved when you save to a CSV.
    For example, if you had a cell that contained a formula, such as =2+2, only the evaluated value of
    4 would be stored in the CSV, the formula itself would be lost.
    Thus, if all you're saving the data, we can safely ignore this message.
    More reference:
    https://support.office.microsoft.com/en-gb/article/Import-or-export-text-txt-or-csv-files-e8ab9ff3-be8d-43f1-9d52-b5e8a008ba5c?CorrelationId=cb80d73a-3365-482e-9084-f5f02ded3445&ui=en-US&rs=en-GB&ad=GB
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to download files in jsp code {through save dialog}

    can you help me to download files in jsp code {through save dialog}
    i use the following code but it saves the jsp page instead of the downloaded file but with the name of the wanted file to be downloaded
    response.setHeader("Pragma", "public");
    response.setHeader("Cache-Control", "no-cache");
    *** download file
    if((trans !=null)&&(trans.equals("download")) )
    response.setContentType ("application/x-download");
    response.setHeader ("Content-Disposition","attachment;filename=\""+fileName+"\"");
    %>
    <script>
    window.location.href=<%=gallerypath+fileName%>';
    </script>
    <%
    trans="";
    //System.out.print("download : "+fileName );
    //***************************************

    Can you try below code, It should work...
    <%
    String myFileName = request.getParameter("fileName");
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment; filename=\"" + myFileName + "\"");
    String root = "D:/";
    InputStream in = null;
    ServletOutputStream outs = response.getOutputStream();
    try {
    in = new BufferedInputStream
    (new FileInputStream(root + myFileName));
    int ch;
    while ((ch = in.read()) != -1) {
    outs.print((char) ch);
    finally {
    if (in != null) in.close(); // very important
    outs.flush();
    outs.close();
    in.close();
    %>

  • Cubes - how to extract a single dimension and save it in a table

    Hi,
    I am new to the cubes concept, although I've used it several times in the past to analyse the data but never explored options beyond that. using excel, I can get different dimentions from the cube such as customer information, location, etc.
    is there a way to extract (automatically) a single dimension and save it in a table...? e.g I want to pull customer name and revenues only from the cube, how would I do it?
    Thanks

    Hi,
    tparvaiz wrote:
    Hi,
    I am new to the cubes concept, although I've used it several times in the past to analyse the data but never explored options beyond that. using excel, I can get different dimentions from the cube such as customer information, location, etc.
    is there a way to extract (automatically) a single dimension and save it in a table...? Sure, you can do that.
    Say you had a table with many customers, and you were interested in only one of those customers: what would you do? You'd write a query with a WHERE clause that included only the customer you wanted to see.
    A cube is a table with many dimensions. You're interested in only one of those dimensions, so what can you do? You can write a query with a WHERE clause to include only the dimension you want to see.
    e.g I want to pull customer name and revenues only from the cube, how would I do it?Exactly how to do it depends on the table(s), your requirements and your Oracle version. As the others have said, post a little sample data (CREATE TABLE and INSERT statements to simulate what your real table looks like), and the results you want from that data.
    Always say which version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • "Save as csv" sets quotation marks around the whole line

    Our client reports:
    Data portal->Right click->Save as->Select "Data type": "Textfile - Auto detect (*.csv)"->Save.
    Result of saving:
    "TIME    V    V_ABS"
    "63.0235776    0.105263157894737    28.6153372301571"
    "63.0235936    0.105264137235745    28.6156034598028"
    Therefore values of channels with same index (and a header) are compound to one cell due to quotation marks around.
    By me it doesn't happen, but by a client.
    Client has normal German Windows 7 region/language configuration.
    Any idea, how a client can save as csv without quotation marks around the line?
    Solved!
    Go to Solution.

    Using a script it is possible to write CSV files Excel natively opens like given in this forum entry.
    But be aware that you need different kind of files depening on your country.
    In the Excel world CSV means "Character Separated Values".
    e.g.:
    US
    dim targetFilePath : targetFilePath = "C:\temp\EXAMPLE.csv"
    Call DataFileSave("<filename>" & replace(targetFilePath, "&", "&amp;") & "</filename><decimalpoint>.</decimalpoint><delimit​er>,</delimiter>", "CSV")
    Germany
    dim targetFilePath : targetFilePath = "C:\temp\EXAMPLE.csv"
    Call DataFileSave("<filename>" & replace(targetFilePath, "&", "&amp;") & "</filename><decimalpoint>,</decimalpoint><delimit​er>;</delimiter>", "CSV")

  • How to find ok code for save

    HI ALL,
    I am working on MM01 Tcode .  In recording I got all ok codes except save button .
    can any one help me how to see the ok code for save button...I think some command is there to find.
    Thanks in advance.

    before clicking SAVE. put /H on the command bar. hit enter.. debugger is switched on..
    now click SAVE.
    debugger starts.
    now in debugger check the value of sy-ucomm
    by the way, its BU for save button in MM01
    Edited by: Soumyaprakash Mishra on Oct 28, 2009 4:31 PM

  • What is the ok code for Save (to post a document)

    Hi all Technos
    How to post a document(Save it) in BDC In Tr Code F-02 after all entry? What is code for that.
    In simple what is the ok code for SAVE. For your kind infromation ENTER is not taking.
    Plz any body help me For that.
    Every usefull answer will be rewarded with points..
    Thanks in advance
    shovan

    Hi Shovan,
    OK-code for save is =BU
    Check this recording..Award points if useful
    perform bdc_dynpro      using 'SAPMF05A' '0100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BKPF-BLDAT'
                                  '06.05.2008'.
    perform bdc_field       using 'BKPF-BLART'
                                  'SA'.
    perform bdc_field       using 'BKPF-BUKRS'
                                  'BP01'.
    perform bdc_field       using 'BKPF-BUDAT'
                                  '19.05.2008'.
    perform bdc_field       using 'BKPF-MONAT'
                                  '5'.
    perform bdc_field       using 'BKPF-WAERS'
                                  'USD'.
    perform bdc_field       using 'FS006-DOCID'
    perform bdc_field       using 'RF05A-NEWBS'
                                  '40'.
    perform bdc_field       using 'RF05A-NEWKO'
                                  '630020'.
    perform bdc_dynpro      using 'SAPMF05A' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BSEG-WRBTR'
                                  '100'.
    perform bdc_field       using 'BSEG-MWSKZ'
                                  'I0'.
    perform bdc_field       using 'BSEG-TXJCD'
                                  'ca0000000'.
    perform bdc_field       using 'DKACB-FMORE'
                                  'X'.
    perform bdc_dynpro      using 'SAPLKACB' '0002'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTE'.
    perform bdc_field       using 'COBL-KOSTL'
                                  '1201'.
    perform bdc_dynpro      using 'SAPMF05A' '0700'.
    perform bdc_field       using 'BDC_OKCODE'
                                  *'=BU'.* 
    Thanks,
    Rvaee..

  • Code for SAVE functionality in FPM_OIF_COMPONENT

    Hi Experts,
    I have enhanced the component DPR_DET_DATA_PROJECT_O. The SAVE functionality for this component exists in FPM_OIF_COMPONENT.
    I have to raise error message depending on the custom fields added in  DPR_DET_DATA_PROJECT_O when I click on 'SAVE' button.
    Please share if any ideas where to write the code for SAVE functionality for the custom fields added on DPR_DET_DATA_PROJECT_O.
    Regards,
    Rafi

    Hi Rafi,
    These similar discussions might provide some assistance:
    BAdI or enhancement on SAVE of Cproject
    which badi triggers while saving cproject
    Code to call for saving the data in WDC - DPR_PROJECT_VIEW
    Cheers,
    Amy

  • Uniode Migration DVDs required..source single code page

    Hi Experts
    I have an activity to perform a unicode migration from 4.7 Non Unicode to a 4.7 unicode box.
    I have referred the guide from
    SAP Note 551344 - Unicode Conversion Documentation
    SCP620SP62.doc my patch level 62
    I am not sure which dvds to take and from where
    as on page 8 of this guide it says
    Software Requirements
    1.     For the conversion from non-Unicode to Unicode you need both the non-Unicode and the Unicode Installation Package:
    a.     a non-Unicode CD containing the SAPinst tools for the export of the database and
    b.    a Unicode Kernel CD for the import of the database
    2.     For the copy of a Unicode system you need a Unicode Kernel CD both for the export and the import of the database.
    but no where mentions the DVDs numbers.
    Can you guide me from where to get the DVDs so that I can start with the activity.
    My system is a single code page system.
    Thanks and Regards
    Pooja

    Hi Pooja,
    Please have a look at:
    service.sap.com/swdc
    - Installations and Upgrade - Entry by application group
    - SAP Application components
    - SAP R/3 Enterprise
    - SAP R/3 Enterprise 47X200
    --> Installation Master 6.20 / 6.40 for your OS
    Best regards,
    Nils Buerckel
    SAP AG

  • How to save into CSV format

    I had a spreadsheet of data more thank 30kb. If i want to import, i need to save as CSV or comma delimited, how to do that? please anybody can help me?

    When you say spreadsheet, I'm assuming MS Excel.
    In MS Excel, File -> Save As. In Save as type, choose "CSV (Comman delimited) (*.csv)".
    Joel

  • Add single code in a query result

    how i will single code in query result
    suppose
    query is
    select '25' from dual;
    i want to result shows '25'

    try
    SELECT '''25'''
      FROM DUAL;
    SELECT CHR(39) || '25' || CHR(39)
      FROM DUAL;

  • How to write code for save file directory?

    how to write code for save file directory?

    how to find usa timezone code using java swing?
    i have some code help me
    public class ItsInitializer {
    private static boolean s_initialized = false;
    private ItsInitializer() {
    public static synchronized void initialize() {
    if (!s_initialized) {
    // Modifies default time zone, disables Daylight Saving Time.
    TimeZone l_defaultTimeZone = TimeZone.getDefault();
    int l_rawOffset = l_defaultTimeZone.getRawOffset();
    String l_id = l_defaultTimeZone.getID();
    SimpleTimeZone l_simpleTimeZone = new SimpleTimeZone(l_rawOffset,
    l_id,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0);
    TimeZone.setDefault(l_simpleTimeZone);
    s_initialized = true;
    2.
    long timeMillis = ...;
    long time = timeMillis / 1000;
    String seconds = Integer.toString((int)(time % 60));
    String minutes = Integer.toString((int)((time % 3600) / 60));
    String hours = Integer.toString((int)(time / 3600));
    for (int i = 0; i < 2; i++) {
         if (seconds.length() < 2) {
              seconds = "0" + seconds;
         if (minutes.length() < 2) {
              minutes = "0" + minutes;
         if (hours.length() < 2) {
              hours = "0" + hours;
    3.
    import java.text.SimpleDateFormat;
    import java.util.Date;
    public class Convert {
    public String getDateTime(String pattern){
    SimpleDateFormat sdf = new SimpleDateFormat(pattern);
    return sdf.format(new Date());
    * @param args
    public static void main(String[] args) {
    Convert con = new Convert();
    System.out.println(con.getDateTime("hh:mm:ss"));
    5.import java.text.SimpleDateFormat;
    import java.util.Date;
    public class Convert {
    public String getDateTime(String pattern){
    SimpleDateFormat sdf = new SimpleDateFormat(pattern);
    return sdf.format(new Date());
    * @param args
    public static void main(String[] args) {
    Convert con = new Convert();
    System.out.println(con.getDateTime("hh:mm:ss"));
    [ November 23, 2005: Mess
    private Locale locale = Locale.US;
    private static final String[] tzStrings = {
    "America/New_York",
    "America/Chicago",
    "America/Denver",
    "America/Los_Angeles",
    Date now = new Date();
    for ( TimeZone z : zones) {
    DateFormat df = new SimpleDateFormat("K:mm a,z", locale);
    df.setTimeZone(z);
    String result = df.format(now);
    System.out.println(result);
    String date="05/19/2008 04:30 AM (EST)";
                   SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy hh:mm aaa (z)");
                   TimeZone.setDefault(TimeZone.getTimeZone("PST"));
                   long millis = sdf.parse(date).getTime();
                   sdf.setTimeZone(TimeZone.getDefault());
                   System.out.println(sdf.format(new Date(millis)));
    [ November 23, 2005: Mes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Bug: IRR Save As CSV doesn't filter non-displ cols, limits to 65535 rows

    Hi all,
    if've found 2 things regarding Interactive Report Regions and SaveAs CSV, where at least the second one is a bug, the first one could be a security-feature...
    here we go:
    1) If you display more columns in your Interactive Report than you would export to CSV (using condition request!=CSV on report column), than a filter applied on a not exported column isn't used in the export at all. E.g. i display sales data and filter only sales of country "austria" i'll still get all country sales in my export when the country-column itself isn't exported.
    2) my interactive report region shows ~86.000 rows, the maximum number of rows is set to 100.000, still the save as CSV exports only 65.535 rows.
    I know that earlier versions of excel were limited to 65k rows, but still i would like to write unlimited number of rows to a CSV File. I don't necessarily use this file in excel.
    Peter

    Dippy,
    The 65k row limitation is built into the IR setup. The ONLY way you can get around it is to add a custom download routine to your IR. You could look at building a routine that would grab the SQL for your IR and execute it in a pl/sql process and download the csv that way (similar to the existing APEX 4.0 plugin..)
    In that way you would only write 1 routine, but add it to all your IR Reports..
    Thank you,
    Tony Miller
    Webster, TX
    While it is true that technology waits for no man; stupidity will always stop to take on new passengers.
    If this question is answered, please mark the thread as closed and assign points where earned..

Maybe you are looking for