Line Feed within the cell in .CSV output file

Hello Experts,
I have created one z-report, and the output of the report is in .CSV file format separated by 'semi-colon' as separator.
Their is one column "Product" in which data is in the format
<b>"[Product1][Product2][Product3][Product4]"</b>
My code looks something like this:
LOOP AT product_new INTO wa_product. 
  CONCATENATE Prod_str
              wa_product-tdline             
         INTO prod_str.
ENDLOOP.
Our requirment is to insert Line-feed between each product entries within the cell.Line-Feed between each product within the cell is possible with ALT+ENTER key
The output required is
"[Product1](ALT+ENTER)
[Product2](ALT+ENTER)
[Product3](ALT+ENTER) 
[Product4]"
I would appreciate if anybody can help me to solve this.. (urgent)
Thanx.

Hi
Go thru these links
Regarding line feed
add line feed to string
When you concatenate try using the abap char utility for newline as well.
i.e CL_ABAP_CHAR_UTILITIES=>NEWLINE.
LOOP AT product_new INTO wa_product.
CONCATENATE Prod_str
wa_product-tdline
CL_ABAP_CHAR_UTILITIES=>NEWLINE.
INTO prod_str.
ENDLOOP.
Regards,
balaji
**rewrds for helpful answers

Similar Messages

  • When I copy and paste text in facebook, the text looks fine until I hit 'share' or 'comment' to submit it. Firefox then adds indiscriminate line-feeds within the text and it looks nothing like the original text. This does not happen in Safari. (Mac OSX 10

    When I copy and paste text in facebook, the text looks fine until I hit 'share' or 'comment' to submit it. Firefox then adds indiscriminate line-feeds within the text and it looks nothing like the original text. It makes it very difficult to read and awful to look at.
    This does not happen in Safari.
    (Mac OSX 10.6.4 with Firefox 3.6.6).
    == URL of affected sites ==
    http://

    Same problem, 3.6.8 and previous recent versions. I never thought to try another browser but I just pasted into IE and it worked fine. I copied from Firefox to IE and it worked as well. It's just when you paste into Firefox that you get the weird line breaks.

  • Gui Upload and Line Feed within a CSV cell from Excel

    Hi all,
    I am facing the problem that my CSV file to be uploaded via GUI_UPLOAD is containing cells where the Excel user has split the line within the cell. So there are CRLF at the end of the CSV row and single LF within a cell between the field separators.
    GUI_UPLOAD is not making a difference and splits the line within the cell.
    Is there any solution for this?
    Thanks in advance for hints.
    Axel

    Hi Axel,
    I didn't know that it was considering CRLF and LF the same way. A workaround is to do the job yourself: call GUI_UPLOAD using BIN format (you'll get the characters as bytes), get the frontend encoding (cl_gui_frontend_services=>GET_SAPLOGON_ENCODING), then convert the bytes into characters using CL_ABAP_CONV_IN_CE class (see documentation), and split (statement SPLIT AT) the characters at cl_abap_char_utilities=>cr_lf to get each line, then split each line at cl_abap_char_utilities=>horizontal_tab.
    BR
    Sandra

  • How to insert line feed in the alert text

    HI,
    I am sending a message from BMP using alert.
    I need to insert a line feed in the error message because the message is a concatenation of multiple error messages.
    Regards
    Vijay.

    You already have the solution. The XML created by EDI disassembler does not have White Space and Indent enabled so what you see is unindented/non-whitepaced XML.
    However if you view it in IE then you will see it indented and properly formatted. I would assume that you want to do something with the disassembled message such as store it or process it as opposed to having someone read it in a browser or notepad++ ?
    because for processing the data whitespace or indentation is not really consequential.
    Regards.

  • Remove Line feed at the end of the file while using file adapter

    Hi All,
    I have a requirement. We are sending a file from SAP to FTP using file adapter. we are successful in sending the file to FTP but at the end of the file a extra blank line is created .
    Can anyone please suggest how to remove the extra line feed at the end of the file.
    Thanks and Regards,
    LRK.

    check this:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
    To define an additional string as a separator after the last column in a row, specify it here. The system skips this string when it processes the last column (otherwise the system would treat it as part of the last column).
    Also there are solved threads which deal with same problem....you can even check them out...
    regards,
    Abhishek.

  • Utl_file.utl_raw adds a line feed at the end of the line. How to avoid it.

    utl_file.utl_raw adds a line feed at the end of the line. I have to send some binary files to my vendor and they do not want a line feed at the end of the line.
    When I execute the sample program below, it creates a file with a line feed(chr(10)) at the end of the line. When I do dump in hexa, it shows a character x0A
    How to avoid the line feed at end of line?
    We are using Oracle 9i on unix platform.
    declare
    l_output           utl_file.file_type;
    v_raw      raw(32767);
    v_trlr_rec_code      VARCHAR2(2);
    v_trlr_evnt_title      VARCHAR2(6);
    begin
    l_output := utl_file.fopen( 'RM_MHE_IN_DIR', 'abc.dat', 'w', 14 );
    v_trlr_rec_code      := '99';
    v_trlr_evnt_title      := 'STARTD';
    v_raw := HEXTORAW(v_trlr_rec_code) || utl_raw.cast_to_raw(v_trlr_evnt_title);
    utl_file.put_raw( l_output, v_raw );
    utl_file.fflush( l_output );
    utl_file.fclose( l_output );
    dbms_output.put_line( utl_raw.cast_to_varchar2( v_raw ) );
    EXCEPTION
    WHEN OTHERS THEN
         dbms_output.put_line( sqlerrm );
    end;
    /

    oops, sorry i overlooked the fact that the db is 9i; thanks for pointing it out Solomon.
    Not sure about this, but a workaround could be to remove the "\n" characters at the end of each line using one of the many Unix utilities after the file has been created.
    isotope

  • I'm currently using Adobe Acrobat X to create PDF portfolios for client deliverables. Within the portfolio, there is a "Files" view which can be seen below. I'm interested in knowing if it's possible to bulk import metadata into either the Description fie

    I'm currently using Adobe Acrobat X to create PDF portfolios for client deliverables. Within the portfolio, there is a "Files" view which can be seen below. I'm interested in knowing if it's possible to bulk import metadata into either the Description field or any user created field via a CSV, spreadsheet, etc. Thanks for any insight which can be given.

    I'm currently using Adobe Acrobat X to create PDF portfolios for client deliverables. Within the portfolio, there is a "Files" view which can be seen below. I'm interested in knowing if it's possible to bulk import metadata into either the Description field or any user created field via a CSV, spreadsheet, etc. Thanks for any insight which can be given.

  • Need a line feed after 120 characters in a text file

    Hi ,
    I am in the verge of developing a report program which generates a text file (space delimited) for a third party vendor -
    After 80 characters (name field) - I need to have space till 120th position in the record and then the cursor should navigate to the
    the next line (line feed)  in the text file-
    I used several techniques but couldn't succeed u2013 Since there is no characters after 80th position the cursor navigates to the next line or record in the text file u2013  Can anyone help on this regard?
    Thanks in advance.
    Regards
    Rajesh.

    Rajesh,
    Insteadof  differentiating the fields in the text file with SPACE use # or @ as separator and then check by defining a field with length 40 and leave it  blank.
    K.Kiran.

  • ODI - Produce .txt or .csv output file

    Hi Guru's,
    I am new to ODI and have hit a problem I am hoping someone could help me with!
    I have a table/datastore in MS SQL (2005) that I would like to use ODI to produce a .txt or .csv output file. I have looked into the documentation but cannot find an obvious way to do this - can someone please advise how this can be done?
    Many Thanks,
    Joe

    Hi Joe,
    Here is a link for an "Oracle by Example" explaining how to load to a flat file :
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/odi_project_ff-to-ff/odi_project_flatfile-to-flatfile.htm
    You just need to change the LKM used to pick one for MS SQL.
    Regards,
    Jerome

  • Is there a way to get to a certain measure without having to scroll the line thing all the way there if our file is hours long?

    Is there a way to get to a certain measure without having to scroll the line thing all the way there if our file is hours long?

    CNWSMT wrote:
    Is there a way to get to a certain measure without having to scroll the line thing all the way there if our file is hours long?
    double click the measures display (the LCD) and type in the measure

  • How to show line feeds in table cell

    Dear Expert,
    Now we meet one question,we have a long text which include many line feeds,when show it in a cell of one table in smartform.we can only see the line feeds become to  some ##. not do the ENTER or TAB..
        For example, the show like below:
        ABECDEF#MNIOPHN
       not
       ABECDEF
       MNIOPHN
    So, Would you like to tell me how to do?
    Thanks&Regards,
    Kerry

    Hi Kerry,
    You can use the attributes of class: cl_abap_char_utilities
    If it_longtext is the table which contains your longtext data.
    DATA:  c_new value cl_abap_char_utilities=>newline,
                v_ltxt type string.
    loop at it_longtexts into wa_longtexts.
      concatenate v_ltxt wa_longtexts-text_line  into v_ltxt.
    endloop.
    refresh it_longtexts[].
    split v_ltxt at c_new into it_lontexts.
    Regards,
    Swarna Munukoti
    Edited by: Swarna Munukoti on Dec 4, 2009 11:44 AM

  • Editing Chart legends: How to change the line structure within the legend?

    Hi,
    I have one problem: I have several charts in Numbers and since I need to print them in black/white, colors cannot be used to differentiate between the lines. So if I have a dotted line and a solid line, the legend only shows me solid lines as line symbols, so the line structure is not reflected within the legend. Can I change that?

    _This question was already asked and responded._
    Put a text box with the true kind of line above the one displayed automatically.
    Yvan KOENIG (VALLAURIS, France) samedi 1 mai 2010 16:52:44

  • Multiply cell entry by 1.15 /within/ the cell?

    would anyone mind just helping me figure out how i put a value in a cell and have it show up with an additional 15% markup? i am searching percent and i am getting help docs explaining how to enter percentages.
    i /tried/ clicking on Numeric > PRODUCT and i get an entry that says "=PRODUCT(num-value, num-value) and i then tried changing the second num-value to "1.1.5" [i.e. "=PRODUCT(num-value,1.15"] but i get a red arrow stating "you must specify a number value for all arguments" and i am guessing that it wants to see a value in the first num-value.
    is there a way to set this up so i can ENTER a number in the cell and have numbers bump it up 15%? i don't want to have a separate column for the 15% markup and it seems like there should be a way to have numbers do this in the cell. this way if i want to see the original number that was entered i can just click in the cell but the number that is visible is the value with the markup.
    is there a better search term i should use in the help menu for this or maybe it is a different function?
    THANKS

    HW,
    Numbers has never supported the operation you want.  A cell can contain either:
    1) a formula OR
    2) a value (or text)
    You may make a feature suggestion to Apple using the menu item "Numbers > Provide Numbers Feedback".
    if you want to inflate a cell by 15% then you can create a new column and enter the formula as needed.
    e.g.:
    Column B contains values I want to inflate by 15%.  Column C has the formulas to perform this operation:
    C1=B1×1.15
    select C1, copy, select the column header ("C"), paste
    If you want you can hide column C even while referencing it OR, you cam select column C, then copy, then just paste the values back over column using the menu item "Edit > Paste Formula Results"

  • Inserting Line feed using PL/SQL at end of file

    Hi,
    I am creating a text file using TEXT_IO package in Developer Forms. The terminator for end of line should be line feed. but
    when we use TEXT_IO.PUT package it inserts carriage return also along with line feed. This code is running on windows 2000 professional OS and forms version 6.
    How do I insert only line feed character Chr (10).
    thanks for any help

    Hi,
    This file will be mostly consumed in windows platform,but the requirement is that it shall end with a line feed during generation only.
    thanks,
    guru

  • I am not able to modify the text in pdf output file using pdf editor

    Hi,
    We have upgrade the xml 5.6.1 in server level. After upgrading this, we are not able to modify the pdf output file. Previously we used to modify text and delete text in pdf file which is generated by oracle Application. As of now we cann't upgrade higher version. Can you suggest what to do?.

    Check the xdo configuration file option in the user guides. There should be options that allow / disallow modifying text specifically. If you are in EBS, you should be able to change the configuration file options from the XML Publisher Administrator UI.
    Klaus

Maybe you are looking for