CSV formatting issues

I have tried different things but I still have formatting issues with CSV. I ran my query in Toad and it displays the comma delimted values accurately. But when I run the report, the data is displayed in random cells. I am using vertical elasticity-expand, horizontal elasticity-fixed. Another report with the same input runs just fine. Any suggestions are welcome. Is there something I have to do in the layout editor or in the wizard?
Thanks

Hi,
What version of reports are you using? Are you running the report to extract the values into a file? Are you using the srw.run_report feature? If so, try setting the delimiter=','.
Martin

Similar Messages

  • Issue with downloading in CSV Format

    Hi SDN,
    i used the FM's SAP_CONVERT_TO_CSV_FORMAT - to convert 2 CSV Format  and
                            GUI_DOWNLOAD  - to download the data 2 presentation server.
    i'm able 2 open the file in CSV format,but the data is displayed in single column only.
    how 2 display in different columns ?
    for example the ITAB contains empno, empname and designation.
    I want it 2 display as :
       EMPNO      EMPNAME     DESIGNATION
         1                xxxxx              Developer
         2                 yyyy               TL
    with tab delimiter.
    now the values are displaying as:
    EMPNO;EMPNAME;DESIGNATION
    1;xxxx;Developer
    2;yyyy;TL
    pls suggest.
    awaiting ur early response.
    Regards,
    Suman.

    Hi Max,
    the issue is when opening the CSV file.
    all the contents are coming in a single column. for ex.,
                    Col 1                                                 Col2          Col3
    Row1      Heading1,Heading2,Heading3
    Row2      a1,b1,c1
    Row3      a2,b2,c2
    Row4      a3,b3,c3
    I'm not sure whether this format is correct  ?
    what I'm expecting is  like the one below, with a tab delimiter.because after runing the ALV report when I export 2 Excel in CSV format it is displaying like this.
                        Col1                Col2               Col3
    Row1          Heading1      Heading2          Heading3
    Row2             a1                    b1                c1
    Row3             a2                     b2               c2
    Row4             a3                     b3                c3
    Regards,
    Suman.

  • Issue while downloading file in .CSV format

    Hi,
    I need to download the file in .CSV format.
    I hade used FM SAP_CONVERT_TO_CSV_FORMAT  and then used GUI_Download.
    Now when I am opening file which is downloaded, it gives all the data in a single column. If there are 5 fields in my table, the generated file gives the data of all the 5 fields in a single column.
    Could you please help?

    Hi try wi th the following code.
    TYPE-POOLS : truxs.
    DATA: t_file TYPE STANDARD TABLE OF type_file.
    data:t_conv_data TYPE truxs_t_text_data.
    CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
      EXPORTING
        i_field_seperator          = ', '
      TABLES
        i_tab_sap_data             = t_file
    CHANGING
       i_tab_converted_data       = t_conv_data
    EXCEPTIONS
       conversion_failed          = 1
       OTHERS                     = 2.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                = 'C:\TESTCSV.CSV'
        filetype                = 'ASC'
        write_field_separator   = '  '
      TABLES
        data_tab                = t_file
       fieldnames              = names
      EXCEPTIONS
        file_write_error        = 1
        no_batch                = 2
        gui_refuse_filetransfer = 3
        invalid_type            = 4
        no_authority            = 5
        unknown_error           = 6
        header_not_allowed      = 7
        separator_not_allowed   = 8
        filesize_not_allowed    = 9
        header_too_long         = 10
        dp_error_create         = 11
        dp_error_send           = 12
        dp_error_write          = 13
        unknown_dp_error        = 14
        access_denied           = 15
        dp_out_of_memory        = 16
        disk_full               = 17
        dp_timeout              = 18
        file_not_found          = 19
        dataprovider_exception  = 20
        control_flush_error     = 21
        OTHERS                  = 22.

  • Column filter issue in  CSV format of BOXIR3

    Hi ,
    Currently in my infoview, supposing I am a webi document, in which I have 4 columns selected in a report from the data provider of the document (Assuming that the data provider has 10 columns). Now, when I am trying to save this document on my computer as XLS or PDF I am getting 4 columns which have been selected, which is fine. But when I am trying to save the same document on my computer as CSV  I am seeing 10 columns.So can i see the 4 columns in CSV format.Is thier any way by which it can be viewed.
    Thanks

    XLS or PDF export is Document or Report.
    CSV is DataProvider, i.e., the raw data.
    Sincerely,
    Ted Ueda

  • File Adapter Format Issue:.csv target

    Hello
    When i am trying to write information from DB to a file as a CSV format it is always writing into xml format, though it is named with .csv extension.
    When you want to write the File as html target i need to do a html encoding but how to do it in another format like .csv?
    Appreciate your help on this

    you can refer this..
    http://docs.oracle.com/cd/B31017_01/integrate.1013/b28994/nfb.htm#CCGEGFDB
    You need to create "JCA File Adapter with NXSD format definition" as mentioned in above link.

  • Issue while exporting to CSV Format

    Hi,
    Pls help me...
    I have a report when i export that report to CSV format..
    some duplicate rows are coming...
    the two rows are exactly same and both the rows are displaying but i dont need this..
    i need distinct rows..how can i achieve this..
    Thanks in advance

    Hi,
    when i checked the distinct option...error is coming..
    Error
         View Display Error
    Error generating view. Error getting cursor in GenerateHead
    Error Details
    Error Codes: OAMP2OPY:ACIOA5LN
    Assertion failure: getFieldPosByKey(sKey) == n at line 67 of ./project/webquerymanager/customizedsql.cpp

  • Formatting issue in csv file

    set echo off
    --set line 999
    set space 0
    set feedback on
    set term off
    set linesize 32000
    set pagesize 49999
    set colsep ,
    select ci.CIRC_HUM_ID as Circuit_id,
            cp.CIRC_PATH_HUM_ID as Associated_Path,
            ci.TYPE as Category,
            ci.bandwidth,
            ci.VENDOR,
            ci.STATUS,
            si.CLLI as A_Site,
            si.ADDRESS as A_Site_Address,
            si.CITY as A_Site_City,
            si.STATE_PROV as A_Site_State,
            si1.CLLI as Z_Site,
            si1.ADDRESS as Z_Site_Address,
            si1.CITY as Z_Site_City,
            si1.STATE_PROV as Z_Site_State
    from telepac1.circ_path_inst cp
         ,telepac1.site_inst si
         ,telepac1.site_inst si1
         ,telepac1.circ_inst ci
    where si.site_inst_id = cp.A_SIDE_SITE_ID
    and si1.site_inst_id = cp.Z_SIDE_SITE_ID
    and cp.CIRC_PATH_INST_ID = ci.CIRC_PATH_INST_ID (+);I am getting correct data in csv format but for Z_Site_Address some the vales of cell are coming to next row.
    Z_Site_Address
    SBC
    345 N San Joaquin      the data is coming is like this for few rows
    but i want data like below
    Z_Site_Address
    SBC 345 N San Joaquin

    >
    I am getting correct data in csv format but for Z_Site_Address some the vales of cell are coming to next row.
    Z_Site_Address
    SBC
    345 N San JoaquinThat is because, as Jeneesh said, your data has embedded record delimiters. That data above may LOOK wrong but it is EXACTLY what your column contained.
    That often happens when an application uses a MEMO field that lets a user type in multiple lines for a long text description or, in your case, for an address.
    If you don't want embedded record delmiters in your DB data you should remove them when your app saves the data to begin with. If you convert those characters to spaces in the file and load the file again you will NOT have the same content you have to begin with. That means that app field will display one long line of characters to the user.
    That is the price you pay for using delimited files; by default any embedded delimiters will cause the created file to be unloadable.
    Be aware that if you are creating a COMMA delimited file then any embedded commas can cause a problem also unless the field is enclosed in double quotes. That is because when you read or try to load the file those 'extra' comma will be interpreted as a FIELD separator.
    For example an address like '123 Maple St, Apt 111' will appear to be TWO values: '123 Maple St' and 'Apt 111'.

  • BO 4.0 save as csv file format issue

    Hi All,
    We are using BO 4.0 Webi for reporting on SAP BW 7.3 system. Some of our reports have to be scheduled to bring the output in CSV file format. When I schedule the report in CSV format, the final output has data in two sets. The first set has the list of columns which I have selected in my report. Starting on the next row I get to see the second set of data with all the objects selected in the query panel including the detail objects.
    We only need the data for the columns which is selected in the report, but it is bringing the dump from all the objects in the dataprovider.
    Can anyone tell me how to get rid of the second set of data in the same csv file ?
    Thanks,
    Prasad

    Hi,
    CSV format is reserved for 'data only' dataprovider dumps. it exports the entire webi microcube (query results)
    You don't get that option when going 'save as' - which preserves the report formatting - in which case you should consider .xls
    regards,
    H

  • Issues when sending mail from sap to outlook in .csv FORMAT

    hI all,
    Im using 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    FM TO send a mail from SAP to user with attachment in .csv format but the data isnot getting displayed correctly ...
    I thnk it is competely displayed in ASCII format ..
    Can anybody give me suggestionson the same
    thanks

    Hi.
    How is the user opening the .csv attachment?
    I'm guessing that it should be opened with Excel.
    Are you using an attachment document type of 'XLS'?
    If not, then the attachment won't be opened with Excel unless the user right-clicks on it and does 'Open with'.
    Even then, the user will have to use the Excel import wizard.
    Is a .csv file what you want?
    You can use the ABAP OLE stuff to write a native Excel file that can be attached to an email.
    Or you can (at the cost of more work) write the Excel file (still type XLS) using XML, which gives you more control, and still works when your program is run in the background.
    John

  • Problem in exporting report in CSV format

    Hi All,
    I am using Crystal Reports. Following are details about it:
    CR Developer
    Product 8.5.0.217
    *_Problem that I am facing:__*_
    I can create report in .rpt format, it is working fine here. But while trying to export this report in CSV format, it gives report that doesn't contain any information.
    Is it because I am missing something or it is a known issue?
    Thanks and Regards,
    Anand

    Hi,
    I too am facing the same problem.
    The report was made in 8.5. I have exported the report & opened it in Crystal report 12.
    I can export to PDF, RTF, DOC & Tab separated Test.
    However when I export this report in .csv (legacy mode) I just get the header & when I export it in .csv (Standard) I get a blanck .csv file.
    I have  checked 'Isolate Report/Page sections' and 'Isolate Group sections'. Still no data in the report.
    refreshed it too.
    I contains sub reports, but not in the page header & footer (I think) & it does not seem to have cross tabs & OLAP grids.
    Any help is appreciated.
    Links to Screenshots:
    Main Report:
    http://picasaweb.google.com/lh/photo/yM9sBexKt5jW9soqaMmHjw?feat=directlink
    One of the Sub-Report:
    http://picasaweb.google.com/lh/photo/0ofa5sABakvZ-nFZp-JSMw?feat=directlink

  • FM -  gui_upload. Problems uploading CSV format file

    Hi experts,
    I am facing an issue here. I tried to upload a .csv format file using FM - gui_load, in the table LT_RAW all the information is all in one column and rest of the columns are empty.
    How can i get the information to its respective fields?
    below are my codes:
    CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = pv_file
          READ_BY_LINE            = 'X'
          HAS_FIELD_SEPARATOR     = 'X'
          codepage                = '4110'
        IMPORTING
          filelength              = lv_filelength
        TABLES
          data_tab                = lt_raw
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
    I can only upload using .CSV format.

    Hi Suhas,
    below is the new code that i used. now the data is not filled in only one column,
    Instead it will fill up the max length of the field and continue the data in other field and fill up its max length of the field.
    " my declaration of lt_raw and ls_raw
    lt_raw            TYPE TABLE OF ZCTD_MIGCUSTOMER,
    ls_raw            like line of lt_raw,
    CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = pv_file
          codepage                = '4110'
        IMPORTING
          filelength              = lv_filelength
        TABLES
          data_tab                = lt_raw
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.

  • Output report data to excel file format or csv format

    Is there any way to save softcopy of report output to excel file format or csv format.

    Hi,
    Regarding csv file format, i have no issues. The file is generating without any issues in using oracle reports without using any PL/SQL code.
    My requirement is to design oracle reports to generate excel (.xls) file with multiple worksheets. Each sheets are having many data and graphs(chart).
    Using oracle reports alone, how to achieve this.
    In oracle reports 10g 1.2.0 version, I tried by creating .rdf file but, it is generating single worksheet only.
    In oracle reports 10g 1.2.0 ver, I tried by creating .jsp file. For this first i am creating excel template about how my ouput column headings all that going to be with one sample hard coded data and save the excel file as web page.
    Eg employee.html.
    Next open the html file in oracle reports builder and double click the websource now, you will see the jsp tags, html and xml tags. Now include the contentType="application/vnd.ms-excel " and charset also.
    Next, include the <rw:foreach id="G_EMPNO_1" src="G_EMPNO">
    here insert the fieldl for each column by removing the hard coded values.
    close the tag
    </rw:foreach>
    Save the file as .jsp and deploy it in oc4 enabled folder (say, devsuite_home/reports/j2ee/reports_ids/web
    Start the oc4J server
    Run it in the browser http://server:port/reports/emp.jsp?useride=uid/pwd@db
    It is invoking the Microsoft excel with 3 sheets default and my emp table output in the first page.
    We can save this output file as .xls file by clicking file -> save as.
    1) The question is, it is working fine with Microsoft excel 97-2003 version. But for excel 2007, i am not able to create single html file like how 2003 save web page option.
    2) I found this in oracle getting started demo
    http://www.oracle.com/technology/products/reports/htdocs/getstart/demonstrations/index.html
    Which is more useful. This is what i am looking for.
    I done that in excel 2003 as per demo. But excel 2007 with reports 10g issues.
    Is there any demo for 10g with excel 2007
    3) For most of excel issues working fine with excel 2003 and 10g. But excel 2007 with 10g reports are issues.
    I want the excel output from oracle reports with multiple worksheet similar to the above demo.
    Thank you.

  • How to use CSV format in making a data connection.

    Hello All,
    I have got a form to develop. There are over 1000 entries to be imported. Can I use CSV format to embed those data in the forms. Mainly those data would be embedded as dropdowns.If I can use how to do it ? If i can not use is there any better way without using the Database like MySQL or something.
    Thanks.
    Bibhu.

    Hi Afroz,
    To be more specific, if the csv file doesn't has header, please refer to this script to add header:
    $csv = Import-Csv d:\haha.csv -Header "UserA","UserXYZ","EmailA"
    Then you can loop this csv file to run the "add-mailboxpermission" cmdlet, I recommend you can test this script before running against production environment, please also note I haven't tested this script:
    $csv = Import-Csv d:\users.csv -Header "UserA","UserXYZ","EmailA"
    foreach($each in $csv){
    write-host "assign fullaccess permission of user $($each.UserXYZ) on mailbox $($each.EmailA)"
    get-mailbox -identity $each.EmailA | add-mailboxpermission -user $each.UserXYZ -accessrights 'fullaccess'
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Saving the output of a .sql file in .csv format

    Hi,
    I am saving the output of a .sql file in .csv format. But the problem is , the record of few columns have "new line" character in it, so when it is getting saved in .csv format, those records are coming in multiple rows, but they should come in one single row in single block. Please advise how to overcome this problem.
    Regards,
    Niraj

    Hi Guys,
    I guess, there is a misunderstanding.
    He is talking about the issue caused as a result of the data containing a "CRLF" ( Carriage return Line feed ) .
    That is mainly a data issue.
    The query i presume, must be right.
    I guess you should be able to fix it using some string functions.
    Some thing similar to this
    CREATE TABLE ASH (NAME VARCHAR2(10))
    SELECT REPLACE(NAME, CHR(13)||CHR(10), 'ISH') FROM ASH;
    SELECT REPLACE(NAME, CHR(10), 'ISH') FROM ASH;
    SELECT REPLACE(NAME, CHR(13), 'ISH') FROM ASH;
    depending on the type of new line whether it is CR or LF. or CRLF.
    Regards
    Ashish/-

  • Information broadcasting in CSV format. Unwanted Headers

    Hi,
    I have setup the Information Broadcaster to mail CSV formats of BEx Queries. It is working perfectly , however it also gives me the Query name and Date and Time Stamp when the Data was last updated. How can I get rid of these unwanted information.
    e.g
    Sales Query
    Last Data Update:
    04.08.2008 14:33:47
    CustomerNo.     ProdGrp     ProdCode     AgentNo.     InvNo.     Inv/Cred     QtyOrd     QtyDsp     Nett     ListPr     Cost     Disc     InvDate
    100000130     #     124143132     #     91000192     I     1     12     4.89     0.71     0.32     42.47     01.08.2008
    100000130     #     25986606091     #     91000313     I     1     13     2.3     1.18     0.13     84.98     01.08.2008
    100000130     #     8204469     #     91000193     I     1     11     11.05     1     0.14     0     01.08.2008
    100000130     #     8868732     #     91000292     I     7     55     46.77     0.85     0.04     0     01.08.2008
    Please help me out if anybody has faced and resolved this issue.
    Thanks and Regards,
    Shashank

    In Bex under the Business Explorer / Tools, you should have a Distribute option to distribute workbooks.  This should open the web browser based Information Broadcasting inerface which allows you to send a wkbk immediately, or you can schedule the execution and distribution.
    I believe with 3.5 SP15 there is an option to distribute as a csv file.  I believe the Note has you add an entry to a table that adds csv as an output option, but I think the technical functionality actually exists before SP15.

Maybe you are looking for

  • Back ground processing in java

    Frineds Is it possible in java to run a process (database processing involving updating of say Employee record ) in the background even after the java program stop running.I mean the java program should run execute the method which should just signal

  • JSF 1.0 on WAS 6.1

    hi All, We are using JSF 1.2 based application in WAS 6.1. During performance testing it is observed that the application is using all available threads in WAS thread pool. E.g. for 230 users all threads are being used which is affecting the response

  • SQL Query re-write assistance requested

    I am needing to know the best way to go about re-writing a bad query at my workplace that needs to run at TOP performance due to very large amounts of data that will be run through it. I have simplified the data and table to the following mock exampl

  • Full screen freeze on 24" & 20" (video problems)

    When going from a game like C & C 3 or full screen windows or just opening and app that refreshes the screen, I get scrambled video and have to do a hard restart. My wife's 20" crashed today when she tried to play a casino game but I was able to get

  • 2010 MacBook was repaired by Apple but case is misaligned

    I can't remember why I had to take it in for service but after I got it back the case was slightly misaligned.  It was off by just enough to not let me get a headphone jack in and the connection to the power adapter has been intermittent at best.  Wh