Problem in getting .csv file as output

Hi All,
I am using ws_download function module to get .csv file as output . i am getting space between output values.But i want to get comma instead of space.
i am working on 4.6b version but in this version there no write filed separator field in gui_download function module.
Please suggest me  the follow up
Regards
Sudhakar.

use field-symbol and do sth like this
data str type string.
loop at itab.
do.
assign component sy-index of table itab to <F>.
concatenate str  <f> ';' into str.
enddo.
endloop.
hope taht helps
Andreas

Similar Messages

  • Problem in creating csv file

    I have one problem in creating csv file.
    If one column has single line value, it is coming in single cell. But if the column has no.of lines using carriage return while entering into the table,
    I am not able to create csv file properly. That one column value takes more than one cell in csv.
    For example the column "Issue" has following value:
    "Dear
    I hereby updated the Human Resources: New User Registration Form Request.
    And sending the request for your action.
    Regards
    Karthik".
    If i try to create the csv file that particular record is coming as follows:
    0608001,AEGIS USERID,SINGAPORE,Dear
    I hereby updated the Human Resources: New User Registration Form Request.
    And sending the request for your action.
    Regards
    Karthik,closed.
    If we try to load the data in table it is giving error since that one record is coming in more than one line. How can I store that value in a single line in csv file.
    Pls help.

    I have tried using chr(10) and chr(13) like this......still it is not solved.
    select REQNO ,
    '"'||replace(SUBJECT,chr(13),' ')||'"' subject,
    AREA ,
    REQUESTOR ,
    DEPT ,
    COUNTRY ,
    ASSIGN_TO ,
    to_Date(START_DT) ,
    START_TIME ,
    PRIORITY ,
    '"'||replace(issues, chr(13), ' ')||'"' issues,
    '"'||replace(SOLUTIONS,chr(13),' ')||'"' SOLUTIONS ,
    '"'||replace(REMARKS,chr(13),' ')||'"' REMARKS ,
    to_date(CLOSED_DT) ,
    CLOSED_TIME ,
    MAN_DAYS ,
    MAN_HRS ,
    CLOSED_BY ,
    STATUS from asg_log_mstr
    Pls help.

  • Premiere Pro CS5: please help problem with importing a file error output "there was an error decompressing audio or video"

    please help problem with importing a file error output "there was an error decompressing audio or video"

    this is related to what adobe program/version?

  • I am facing problem to get text file from application sever

    Hi This is lokesh.
    Actually my requirement is to craete sales orders by getting file from other server.for that i have used shell script to connect that server.Ok i am connecting to that different server(not sap server) successfully.
    But my problem is getting text file from application SERVER.
    That different server people will send the file name as 'DDHHMMSS' (Days,Hours,Minutes,Seconds).
    Just suppose if they will send today means that file name will come as 20103025. and with in half an hour if they again send that file file means that file name as '20110025'.
    like that file name is always varies.So how can i read that type of text files from the application server.
    and one more thing that is there chance to read morethan one text file from application server.
    Pls guide me if u know the solution.PLs this requirement is urgent.
    Regards,
    Lokeshgoud

    Hi..,
    <b>Just execute this program ... this is for the files received in JUST 3 MINS...</b>
    change it according to your requirement !!
    data time type sy-uzeit value '100000'. <i>"<<----start time</i>
    data file(8) type c value '20'.
    do 180 times. <i>" <<----- for 3 minutes</i>
    add sy-index to time.
    concatenate file time into file.
    write / file.
    OPEN DATASET FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF SY-SUBRC EQ 0.
    PERFORM READ_DATASET.
    ENDIF.
    file = '20'.
    time = '100000'.
    ENDDO.
    <b>form read_dataset.
    read the file here with the file name <b>FILE</b>.
    endform.</b>
    regards,
    sai ramesh

  • Interactive Report Download CSV file Issue (output includes separator BR)

    Hi,
    I have a Interactive Report and displaying the column values (multiple values in same ROW) as mentioned below.
    SQL Query
      select deptno,
           function1(empno) empno
      from emp
    IR Output
    Dept       Employee No
    10         AAA,BBB,CCC, ...    // -  Row 1
    20         XXX,YYY,ZZZ, ...    // -  Row 2 Now I want to display each employee in a new Line, so modified the SQL Query
    Modified SQL Query
      select deptno,
           REPLACE(function1(empno),',','<br>') empno
      from emp
    New IR Output
    Dept       Employee No
    10         AAA
               BBB
               CCC
               ...    // -  Row 1
    20         XXX
               YYY
               ZZZ
                ...    // -  Row 2 SO, Interactive Report Out put looks fine and that's the way we want.
    But the problem is when I download the Report in CSV or in PDF using the Action Menu -> Download..
    I am getting break line B R in the output, and also I have two different output in CSV for two different column. [Logic is same for both the columns.]
    CSV output1
    Employee No
      AAA<br>BBB<br>CCC
      XXX<br>YYY<br>ZZZI have other columns also with multiple values...for that column, I am getting the following CSV output
    CSV output2
    City List
      1111<br>
      2222<br>
      3333<br>So, in CSV for one column, I am getting all the values in same line with the seperator B R (Output1)
    for other column, I am getting values in new line with the separator B R. (Output2)
    Is there a way to FIX this CSV or PDF output for Interactive Report.
    I DON'T WANT THE SEPARATOR BR in CSV and also the values should always be in New Line.
    I want to have the following Output in CSV
    Employee No
      AAA
      BBB
      CCCThanks,
    Deepak
    Edited by: Deepak_J on Feb 24, 2010 11:45 AM
    Edited by: Deepak_J on Feb 24, 2010 11:46 AM
    Edited by: Deepak_J on Feb 24, 2010 11:48 AM

    Thanks.. Jari.. for the quick response.
    I updated my SQL query with Chr(10) and added the code in Page HTML header.
    Now the CSV & PDF output are fine..getting each individual value in seperate line (no BR tag)
    BUT in the Interactive Report Output, I am now getting first 2 values in 1 line, then next value in next line, and so on..
    IR Output
    Employee
      AAA BBB
      CCCCCCC
      DDDDDI have few more issues with CSV & PDF output
    1. In PDF is there a way to increase the column width, as for some of the columns, the values are getting truncated.
    2. For some of the columns in IR Report, I have user BR tag in Column Heading and this also come in CSV output (column heading with BR tag), is there a way to fix this. In PDF Column headings are fine (no BR tag)
    and by the way..what exactly this does.
    <style type="text/css">
    .apexir_WORKSHEET_DATA td{white-space:pre;word-wrap: break-word}
    </style>Thanks,
    Deepak
    Edited by: Deepak_J on Feb 24, 2010 12:20 PM
    Edited by: Deepak_J on Feb 24, 2010 12:21 PM

  • Problem when uploading CSV File

    Hi, i'm testing some changes i made to an infoprovider and something strange is happening to me (as usual) I have a CSV file that is uploaded into BI from my PC and I tested this file with 100 records, later i deleted 98 records so i can test the file with fewer records in order to analyze the formulas in BEx with some very specific data. Now here is the strange part: even though i modified the file and left only 2 record in it, when I run the DTP the system is still uploading 100 records!?! How can that be possible. I checked everything, the datasource and the infopackage are both pointing to the same file (the one which has two records) and there is no other file in the entire hard drive that has 100 records and/or the same name/structure that the file i'm uploading into BI. I just can't figure out why the DTP is uploading more records that I have in the CSV file!?. Any ideas??
    Another thing: I'm having problem with 0calmonth, tried everything. I put the calmonth in the CSV file in both formats MMYYYY (092010) and YYYYMM (202009) but I still get error when running the DTP. I have activated/deactivated the conversion routine in the transformation and in the datasource, I change the field length in datasource and tried any possible combination of these changes and I still can't make it work. I searched here and read all the post related to this issue but i still can't figure out how to properly upload information into 0calmonth.
    Regards, Mauro

    pls check the data in PSA.... you may be loading only 2 records..
    Also possible that the DTP is set to load FULL data.... so its loading the entire data from PSA (old + new)
    the calmonth format should be YYYYMM... what is the error message u r getting... you can always check the PSA and see whats the format coming there

  • Problem in reading csv file in servlet

    Hi everyone,
    I m getting an ClassCastExeption while importing a .csv file to databse...
    It works fine in case of .xls...
    I m using jxl from Jakarta...and the code is as follows...
    Thanks in advance..
    FileItemFactory factory1 = new DiskFileItemFactory();
    ServletFileUpload upload1 = new ServletFileUpload(factory1);
    items1 = upload1.parseRequest(request);
    Iterator iter = items1.iterator();
    while (iter.hasNext()) {
                                  FileItem item = (FileItem) iter.next();
                                  InputStream uploadedStream = item.getInputStream();
    importCSV(uploadedStream);
    and in the import method.....
    Workbook w;
    w = Workbook.getWorkbook((FileInputStream)is);
    In the above line i m getting ClassCastException...
    Please help..

    Thanks gimbal2 ..
    w = Workbook.getWorkbook(is); throws the FileNotFoundException
    I solved it by tokenizing the inputstream on ','(comma) and then getting the tokens for each column in the database....

  • Problem importing a CSV file with forward slashes in a column

    I have an Excel csv file of a product database (contains about 6500 products) that contains product codes with forward slahes such as 499/1, 499/3, 499/5.
    These are different sizes of a product and as such have different prices etc.
    When I import the file into Numbers these numbers appear as 499, 166 1/3, and 99 4/5 respectively.
    What seems to be happening is that Numbers is interpreting the forward slash (/) as a divide by command and subsequently performing a calculation on that number on import and hence totally changing the value of the cell so that it is impossible to look up the price related to a product as the product code no longer exists.
    Excel can import these files with no problems, why can't Numbers treat each cell as text and leave it alone on import.
    Is there any way round this or do I have to revert to using Excel for the import of csv files.
    Thanks
    Steve

    I know I'm a bit(!) late (a year) coming to this party, but there is a simple solution, that worked for me, enclose the field in double quotes, and add a single quote before the number:
    Instead of
    499/1,"Super Widget 3",12.34
    do
    "'499/1","Super Widget 3",12.34
    In fact the single (unclosed) quote without double-quotes works as well:
    '499/1,"Super Widget 3",12.34
    I've always found it better to enclose strings with double quotes. This works on loading the file into Mac Numbers and should work with Excel too if that helps. It opens with OpenOffice 4 on the Mac too - if you select "comma" in the "Separated by" checkbox
    I can't remember where I picked this info up....
    Hope this helps someone, albeit late.
    Andy

  • Problem uploading multibyte CSV file

    I apologize, this topic has been addressed several times, but I still can't find the solution.
    I have multibyte CSV files (extract from BI) : Excel says "Unicode txt" and when I save them from Excel in "Text CSV", they get half the size on the disk.
    here is the piece of code where the uploaded file get converted from blob to clob then to varchar2 (CSV Util from Oleg.Lihvoinen http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:11000346061523)
    SELECT blob_content
    INTO v_blob_data
    FROM wwv_flow_files
    WHERE NAME = p_file_name;
    v_position := 1;
    blob_csid := 873 ;
    DBMS_LOB.createtemporary (lob_loc => v_clob_data,
    CACHE => TRUE,
    dur => DBMS_LOB.SESSION
    DBMS_LOB.converttoclob (v_clob_data,
    v_blob_data,
    amount,
    dest_offset,
    src_offset,
    blob_csid,
    lang_ctx,
    warning
    v_clob_len := DBMS_LOB.getlength (v_clob_data);
    IF v_clob_len = 0 THEN
    RETURN;
    END IF;
    WHILE (v_position <= v_clob_len + 1)
    LOOP
    v_char := DBMS_LOB.SUBSTR (v_clob_data, c_chunk_len, v_position);
    v_line := v_line || v_char;
    v_position := v_position + c_chunk_len;
    I have tried different values for "blob_csid := 873 ;" (and by the way, the list of possible values for this code is very difficult to find : I know, there is a function CS_name to CS_ID but a list would be great), but without any visible effect.
    If I use the Apex CSV uploader app, the result is the same than with this code.
    Here is an example :
    �O�R�A�C�L�E�
    instead of :
    ORACLE
    How I can have these files imported whithout an Excel conversion ?
    Thanks.

    Hum, looks like the error is thrown before the execution, during the sort of prepare/precompile of the package procedure, and it said that v_line := v_line || v_char is too small string buffer.
    I am a bit surprised.
    Anyone on this ????? I am doing answers myself, it will not help me a lot :)

  • Problem in viewing CSV file

    I am generating CSV file from PL/SQL code. I am using UTIL_FILE for writing file.
    One of the column in csv file is too big. The value is displayed in scientic notation.
    Is there any way that i can modify my code to display data in Number format(Instead of scientific format)
    Any help is appreciated.
    Thanks in Advance
    Gopinath

    The problem is that the user wants to view the file
    in Excel and they dont want to do any format changes
    in excel sheet. They want everything to be done at
    code level.Or, how about spooling formatted numbers in the csv itself, if your end users are okay with it ? For example:
    1234567890123,1234567890123,1234567890123,1234567890123
    "1234567890123","1234567890123","1234567890123","1234567890123"
    "1,234,567,890,123","1,234,567,890,123","1,234,567,890,123","1,234,567,890,123"The first two lines show up in scientific notation, but the third line shows up as is.
    pratz
    Message was edited by:
    pratz

  • Problem with Dreamweaver & csv file!!!!

    Working on website...
    www.banners4churches.com
    Website has special pricing matrix...
    http://www.banners4churches.com/current/banners/order_custombanners.php
    Excel .xml file is run through Linux Fedora 10 wKDE and cli.sh to create .csv file for Dreamweaver.  The .xml file was updated and the new .csv file was inserted back into the root folder for DW.  Was working properly before changes, but now it shows error message "call." 
    Been working on this problem for days!!!!  Any help is greatly appreciated.  Thank you.
    Mike

    tiggercald wrote:
     Been working on this problem for days!!!!  Any help is greatly appreciated.  Thank you.
    What is the problem? The pricing matrix at the URL you provided is working. If it's something not working on your local system, nobody can help unless they see the code you're working with. In any case, it sounds as though there's something wrong with the CSV file, not with Dreamweaver.

  • Problem when opening CSV files after update

    Hello
    I have updated a Mac to OS 10.6
    Before the update, when clicking on a CSV file (bank statements) the file would open in Microsoft Excel and display all the fields in their own columns.
    Afer the update, all the fields are contained in one column. It looks like excel is not seeing the commas ? Previewing the CSV file in numbers works correctly though.
    How can I resolve this?
    Secondly, the CSV file has numbers (deposits) listed as +0000000023.99 for example. Before the update, that transaction would have showed as 23.99 in its column in excel - now it shows it as +0000000023.99.
    Any assistance would be greatly appreciated.

    This looks like an Excel issue. You didn't say which Excel version you're using. Try posting your question on Microsoft's Mactopia Office forum, but include the version and update number in your inquiry. I can tell you though that in the current Excel 2008 version, I open up csv files all the time without any problem at all.

  • Problems with a .csv file in an AP conversion.

    Hi,
    I'm trying to upgrade an Ap1240AG, from stand alone to LWAPP.
    The question is … in the process of upgrading we have to create a .csv file to put some information in the WLC to manually associate the AP (now an LWAPP AP).
    That .csv file has the mac address of the AP, their certification type, and public key hash values.
    Who can I get this .csv file?
    Thanks in advance,
    Rui Capão

    Hi Rui,
    The .csv is generated when running the Upgrade Tool (check the first doc linked below) :)
    Upgrading Autonomous Cisco Aironet Access Points to Lightweight Mode
    http://www.cisco.com/en/US/docs/wireless/access_point/conversion/lwapp/upgrade/guide/lwapnote.html#wp176272
    LWAPP Upgrade Tool Troubleshoot Tips
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_tech_note09186a008072d9a1.shtml#prob
    Hope this helps!
    Rob

  • Problem with getting the file name and type from OAMessageFileUploadBean

    Hi Tapash,
    I am trying the code below to get the file name and mime type from OAMessageFileUploadBean,
    DataObject fileUploadData = (DataObject)pageContext.getNamedDataObject("Documents");
    String uFileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
    String contentType = fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
    But this piece of code gives errors saying that selectValue selectValue(null, java.lang.String) not found in class oracle.svc.DataObject
    Any ideas? why this code is giving error?
    Can i handle the event of browse button for OAMessageFileUploadBean?
    Regards,
    Nagesh Manda.

    Try using class oracle.cabo.ui.data.DataObject
    --Shiv                                                                                                                                                                                                       

  • I am having a problem creating a CSV file

    I have created CSV files and imported them into Mac's contact book before. For some reason this time its not allowing me to import them because its giving me this message: TEXT FILE IMPORT FAILURE "The selected file does not appear to be a valid comma separated values (csv) file or a valid tab delimited file. Choose a different file."
    The text when I copy paste it even comes out deliniated and everything.
    <Emails Edited By Host>

    Hi,
    You need to quote your path.
    Import-Csv 'C:\Scripts\PowerShell Scripts\newusers.csv'
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

Maybe you are looking for

  • External Harddrive won't work on iMac

    I have an external harddrive that I previously used on my PC. It only has generic JPG files saved to it. When I plug it in to my iMac it is read only and will not allow me to save things to the disk. In the information menu it shows that it is read o

  • Copy control settings for Multilevel variant configuration

    Dear All, I have  the following scenario for variant configuration A quotation is created for configurable material with multilevel configurable material with reference to this quoatation a sales order is created. My requirement is that the quoatatio

  • Can value be change in GR??

    Dear Experts , Can the material arte / service rate  & its corresponding freight be changed in the GR document ?? We have a case where the material rate is depended upon the GR parameters . also the freight vendor & the freight value is known only at

  • SymbolicLInker.service not working for folders

    I have been used SymbolicLinker.service successfully for a long time, principally to make symbolic links for folders to be put in my Dropbox. However suddenly the service has stopped working as it should; it does not show up as a Finder Service when

  • Unable to update to 10.6.7

    Hi all, I am not able to update the latest released 10.6.7 updates. I am attaching the screen shot. I am a linux user new to Mac. I tried downloading from the download link, but it says the source file could not be read! Could anyone shed some help?!