New lines created in excel when displaying multi-line text item value

Hi all,
I put the value of a multi-line text-item into a csv file :
DECLARE
file_filter VARCHAR2(256) := 'Export Files (*.csv)/*.csv/All Files (*.*)/*.*/';
fExp VARCHAR2(256);
in_file Text_IO.File_Type;
linebuf VARCHAR2(4000);
BEGIN
fExp := get_file_name ( directory_name, file_name, file_filter, NULL, SAVE_FILE, TRUE);
IF fExp IS NOT NULL
THEN
set_application_property(cursor_style,'BUSY');
in_file := Text_IO.Fopen( fExp, 'W');
linebuf := NVL(:com_bnc_possibles.LIBEL_TRAITE,'') || ';' ||
NVL(:com_bnc_possibles.NUM_ANFR_ID,'') || ';' ||
                         NVL(:com_bnc_possibles.ver_fiche,'') || ';' ||
                         NVL(:com_bnc_possibles.titre,'') || ';' ||
NVL(to_char(:com_bnc_possibles.date_creat, 'dd/mm/yyyy'),'') || ';' ||
NVL(to_char(:com_bnc_possibles.date_valide, 'dd/mm/yyyy'),'') || ';' ||
NVL(:com_bnc_possibles.LIBEL_STATUT,'') || ';' ||
NVL(:com_bnc_possibles.label_reg,'') || ';' ||
NVL(:com_bnc_possibles.nom,'') || ';' ||
NVL(:com_bnc_possibles.prenom,'') || ';' ||
NVL(:com_bnc_possibles.nom_societe,'') || ';' ||
NVL(:com_bnc_possibles.comp_bnc,'') || ';' ||
NVL(:com_bnc_possibles.motifs,'') || ';' ;
Text_IO.Put_Line( in_file, linebuf);
Text_IO.Fclose( in_file);
set_application_property(cursor_style,'DEFAULT');
END IF;
END;
And when I opened the csv file then the remaining lines , that is from the second line , of the column "motifs" are displayed through the column A of excel. The "motifs" multi-line text-item has 500 as its Maximum Length property value, and has a Char Data Type property value.
So how to display all the motifs' lines through the same column M without displaying the remaining lines in column A ?
Or are there tips to remove CHR(13) characters from a multi-line text-item ?
Thank you very much indeed.
Message was edited by:
andrianiaina

Hi,
I tried to do it in different way. What i did is I have created a item of type formattted text and set its text like:--
<html>User authentication failed. <br*> Cause: Invalid password.</html> --remove *
So I am able to see the prompt like :-
User authentication failed.
Cause: Invalid password.
Hope this helps you...
Thanks
--Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Displaying Multi Line Text

    Hi,
    I am having issues in displaying multi line text on a Text Item. Basically there is data in the database column DetailText which is stored like this with carriage returns :
    If I look at the column in Toad it is formatted with all the carriage returns correctly eg.
    Hello
    World
    When I display this in my StaticStyled Item it displays like "Hello World" in one line. I want to be able to display it as it is with the carriage return on 2 seperate lines.
    I have looked in this forum and one search 2 places and one suggestion was to use RawText Item type. I have tried changing the Item Type to Raw Text and FormattedText but it doesn't make any difference. The lines are still displayed horizontally instead of vertically. Another place I saw was to use OAHTMLWebBean but doesn't show how I can do this.
    This should be simple enough but I have searched the DevGuide and this forum and couldn't figure out the solution. Any help would be appreciated.
    Thanks

    Hi,
    I tried to do it in different way. What i did is I have created a item of type formattted text and set its text like:--
    <html>User authentication failed. <br*> Cause: Invalid password.</html> --remove *
    So I am able to see the prompt like :-
    User authentication failed.
    Cause: Invalid password.
    Hope this helps you...
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to display multi line headings in procedural alv report

    Hi experts,
    How to display multi line heading in alv( procedural alv report) report.
    some columns single line and some columns multi line in the same report.
    ex: 
                  solvent consumed          solvent recovered
                   fresh |   recovery             recovery | spent                            batch no                         storage
    I am using procedural alv .pls give me idea.

    Hi Ram,
    Check the sample report [how to display multi line headings in procedural alv report|http://sample-code-abap.blogspot.com/2008/01/printing-multiple-line-header-and.html]
    Thanks,
    Duy

  • How do you display multi line text

    Hi
    How does one display multi line text? I would like to display address information on the screen so that the user can select it and copy/paste it into another application (ms word).
    I have the address information as separate columns (address1, address2, city, province, postal code) so I've changed the query on my view object to add it as address1 || chr(10) || address2 || chr(10) || city ....
    If I display it on the page as an output text, it all displays as one line (okay, the chr(10) thing did not work but that's beside the point).
    In general, is there a way to display multi line text? What component is suitable for this, if there is one?
    Thanks

    You can use normal outputText components in a panelGroupLayout (vertical layout) and add each attribute to it. The remove the labels or set the components to simple. You can then mark the data in the browser and use normal copy&paste to transfer the data.
    If you want to output longer text with line breaks you can use an outputText with escape=false and use the br html tag to generate a line break;
    <af:outputText escape="false"
    value="+++++++long<br>test<br> this is a long text in multiple lines" id="ot10" truncateAt="#{viewScope.ToggleBean.truncateLength}"/>Timo

  • Display Multi language text

    Hi All,
    I would like to display all language text
    I am getting as a parameters.
    How i can display multi language text?

    You can do something like this
    http://wiki.mediaboxtraining.com/doku.php/tutorials:flex:localization
    If this post answers your question or helps, please kindly mark it as such.

  • Multi Row Text Item (Not Text Area)

    Is it possible to create a multi-row text item for entering data i.e. a text area WITHOUT a scrollbar?. I know exactly how many rows I need e.g. an address field
    The scroll bar looks terrible on printouts when printing off data entry forms.
    Also any way of having ruled lines appear in the multi row text field?
    regards
    Paul

    Hello,
    No, just use three text items. or a textarea with the style ="overflow:hidden;" should supress the scrollbar
    Carl
    Message was edited by:
    Carl Backstrom

  • New page in smart form when displaying internal table data in table

    Hi ,
    My requirement in smartform is like
    I'm using the tables to display the internal table data in main window .
    based on SORTF field in the internal table ,when SORTF field value changes all the related to that SORTF value should be displayind in the new page.
    Please anybody tell me that , how to do this?
    Thanks
    Naveen

    Hi Navi,
        Try this Logic.
    1) Go to Smartform,
    2) Declare a flag variable w_flag type c
    3)Go to Main Window
       a) Go to table
       b) Create one more Table Line
       c) Create a CODE Line in that.
           write inside CODE  as Below:-
                 CLEAR: w_flag.
                 ON CHANGE OF w_final-sortf.
                   w_flag  = 'X'.
                  ENDON.
       d) Create one COMMAND Under CODE line created above.
           click on check Box "Go to New Page"  ( Page1 or Page2 or give as reqd ).
           click on conditions tabe of COMMAND
           write: w_flag = 'X'.
    Hope this will work
    Reward Points if Useful
    regards
    Avi.............

  • Stop creating multiple points when making a line

    Hello, new to this and for some reason when I go to create a line or shape it keeps creating multiple end points like a fan for example when using the line, or multiple boxes from the same start point etc...any help?  Can't seem to find any content on this.

    That was it exactly, huge thanks to you!

  • How to display multi-lines text correctly (view only mode)

    Hi,
    I have a description field that includes multi-lines format, where the lines are being separated by
    characters: chr(10) and chr(13).
    When I’m using messageStyleText (or rawText) – I’m getting all the data in one line.
    Can you please recommend of an OAF item that will display the text correctly?
    Should I use another character as the line separator?
    Thanks in advance,
    Rona

    Hi Rona;
    rawText item supports HTML tags. so you can use br tag.
    Best Regards;
    GsrC.
    Message was edited by:
    GsrC

  • JTable -showing column headers and displaying multi-line strings

    Hi,
    This is two questions really.
    #1 - Does anyone know why my column headers aren't showing in my jtable using the model below?
    #2 - Does anyone know how I can display, mulitple line strings in a jtable? Currently my newline character ('\n') is just being displayed as a character.
    any help very much appreciated,
    Tom
    private class TaskHistoryTableModel extends AbstractTableModel {
    private List taskHistory = new ArrayList();
    public Object getValueAt(int row, int col) {
    if (col == 0) {
    return ((TaskHistoryItem) taskHistory.get(row)).getText();
    } else {
    return ((TaskHistoryItem) taskHistory.get(row)).getDate().getTime();
    public int getRowCount() {
    return taskHistory == null ? 0 : taskHistory.size();
    public int getColumnCount() {
    return 2;
    /** Getter for property taskHistory.
    * @return Value of property taskHistory.
    public List getTaskHistory() {
    return taskHistory;
    /** Setter for property taskHistory.
    * @param taskHistory New value of property taskHistory.
    public void setTaskHistory(List taskHistory) {
    this.taskHistory = taskHistory;
    public String getColumnName (int col) {
    return col == 0 ? "Text" : "Entered At";
    public boolean isCellEditable(int row, int col) {
    return false;
    }

    fixed my own problem - make your mulit-line string into html format e.g.
    this string will appear on two lines in a jtable
    "<html><p>A much more interesting entry</p> <p>on multiple lines</p></html>"

  • How to display multi-line popup message in user exit?

    Hi,
    I need to display a multi-line popup text message with controllable response buttons in a user exit.
    I looked at POPUP_TO_CONFIRM with its DIAGNOSE_OBJECT, but I need substitution parameters and the FM doesn't support this functionality. So this won't meet my needs.
    Does anyone have any suggestions (maybe with some example code?) about how to do this?
    Thx.
    Andy

    Code:
    LOOP AT I_KNB1 WHERE ZTERM NE ZPAGDESCR-ZZTERM.
    IF SY-TABIX = 1.
      IF I_TEXT_TABLE[] IS INITIAL.
         PERFORM HEADER TABLES I_TEXT_TABLE.
         REFRESH :  I_T052U.
            SELECT ZTERM ZTAGG TEXT1
           FROM T052U
           INTO TABLE I_T052U
           FOR ALL ENTRIES IN  I_KNB1
           WHERE SPRAS = SY-LANGU AND
                 ZTERM = I_KNB1-ZTERM.
        ELSE.
        REFRESH :  I_T052U.
        SELECT ZTERM ZTAGG TEXT1
           FROM T052U
           INTO TABLE I_T052U
           FOR ALL ENTRIES IN  I_KNB1
           WHERE SPRAS = SY-LANGU AND
                 ZTERM = I_KNB1-ZTERM.
           I_TEXT_TABLE-TDLINE = TEXT-T01.
           APPEND I_TEXT_TABLE.
           CLEAR I_TEXT_TABLE-TDLINE.
      ENDIF.
         MOVE 'Company' TO I_TEXT_TABLE-TDLINE+0(10).
         MOVE 'Payment' TO I_TEXT_TABLE-TDLINE+10(10).
         MOVE 'Day' TO I_TEXT_TABLE-TDLINE+20(5).
         MOVE 'Description' TO I_TEXT_TABLE-TDLINE+26(100).
         APPEND I_TEXT_TABLE.
         CLEAR I_TEXT_TABLE-TDLINE.
         MOVE 'Code' TO I_TEXT_TABLE-TDLINE+0(10).
         MOVE 'Term' TO I_TEXT_TABLE-TDLINE+10(10).
         MOVE 'Limit' TO I_TEXT_TABLE-TDLINE+20(5).
         APPEND I_TEXT_TABLE.
         CLEAR I_TEXT_TABLE-TDLINE.
         I_TEXT_TABLE-TDLINE = TEXT-T01.
         APPEND I_TEXT_TABLE.
         CLEAR I_TEXT_TABLE-TDLINE.
    ENDIF.
         MOVE I_KNB1-BUKRS TO I_TEXT_TABLE-TDLINE+0(10).
         MOVE I_KNB1-ZTERM TO I_TEXT_TABLE-TDLINE+10(10).
         LOOP AT I_T052U WHERE ZTERM = I_KNB1-ZTERM .
           MOVE I_T052U-ZTAGG TO I_TEXT_TABLE-TDLINE+20(5).
           MOVE I_T052U-TEXT1 TO I_TEXT_TABLE-TDLINE+26(100).
          APPEND I_TEXT_TABLE.
          CLEAR I_TEXT_TABLE-TDLINE.
         ENDLOOP.
    ENDLOOP.
    ENDIF.
    IF NOT I_TEXT_TABLE[] IS INITIAL.
      CALL FUNCTION '/RWD/POPUP_TO_DISPLAY_TEXTLIST'
        EXPORTING
      TASK             = 'DISPLAY'
          TITEL            = 'Inco term payment term mismatch'
    IMPORTING
      FUNCTION         =
        TABLES
          TEXT_TABLE       = I_TEXT_TABLE .
    ENDIF.

  • How to display multi-line event in Ical

    I read that you could display multiple lines of an event description in ical using Option-enter. This works...However, after I select "All Day" event, it reverts it back to single line display on my monthly view. I want to be able to print my ical Monthly View and I need the whole event description to display. Any suggestions?
    I'm using ical 4.0.2

    Hi,
    I don't think iCal does this.
    Best wishes
    John M

  • "Join Failed" When Attempting Multi-way Text Chat

    iChat AV 3 under 10.4.5 on iMac Duo behind WRTG54 behind Adelphia Cable modem. One-on-one text chat works. Likewise one-on-one audio and video. But multi-way text (didn't test multi-audio/video) fails with "Join Failed" error as soon as I enter a second message (the very first outgoing message appears in the chat window, the second locks it up until the error is cleared).
    Curiously, I can participate in multi-way text chats that are initiated elsewhere. Tried 3 different machines, all behind the same router/modem. Tried one of those machines connected directly to the cable modem. No joy.
    Any help/ideas/troubleshooting hints very much appreciated.

    Hi Hans,
    iChat uses port 5190 on the TCP protocol to log in to AIM and text chat 1-1.
    To send files in text chats (or Pics) and doing Group (yext) Chats requires that port 5190 is also open to the UDP Protocol.
    As the router is doing UPnP this shoul be covered there.
    I would look towards the modem and how that is set up and possibly the Mac Firewall if On.
    See here for Pics and Instructions on the Mac Firewall.
    We would need to know if the modem is routing and has ports for iChat set up ?
    10:23 PM Sunday; March 5, 2006

  • Help! Errors when changing category in text items!

    I'm very often experiencing problems when editing a text item and moving it from one category to another. It won't do it. The editing page will stay the way it is and the only message I get is: Error 30694: Error in API - update item failed
    What could this be? This is very annoying. The portal can be seen at http://www.crmexpert.nl
    Aliktte

    I haven't seen this problem. Please provide more details: what version of Portal, what types of items are affected, and anything else you think may be relevant.
    Thanks,
    Jerry

  • Error when changing category of text items!

    I'm very often experiencing problems when editing a text item and moving it from one category to another. It won't do it. The editing page will stay the way it is and the only message I get is: Error 30694: Error in API - update item failed
    What could this be? This is very annoying. The portal can be seen at http://www.crmexpert.nl
    Aliktte

    I haven't seen this problem. Please provide more details: what version of Portal, what types of items are affected, and anything else you think may be relevant.
    Thanks,
    Jerry

Maybe you are looking for

  • Adding the filed to segment

    Hi All, I want to add one filed to an existing segment .may i know what is the procedure ? than you sunny.

  • Podcasts synced as music

    I am having trouble syncing my new 80g Video iPod. I am running iTunes 7.2.0.34 on Windows XP Pro. I have successfully subscribed to several podcasts and imported CDs into my library. When my iPod auto-synced for the first time, it loaded the podcast

  • Two Mini's displays both went wrong at the same time!

    The other morning mine and the person sitting next to me's Mini's both reverted back to 800x600 at startup. I have the only keys to the office and I know no one messed with them over night. Eventually I got mine back to the screens native resolution

  • Can my computer be saved?

    I've got a Vista here that I purchased about three years ago. I've been having some troubles with it, and a couple of months ago it completely died. I tried using the system recovery discs, but no luck. I just bought a new harddrive, as I was told th

  • WANTED: Test Engineer for CCD/CMOS image sensors and cameras...

    TEST ENGINEER Education:  BSEE or equivalent Experience:  5+ years experience in Test Engineering.  Preferred experience with Imaging and CCD cameras.  Must have programming experience with labview, and experience with other languages is a plus.  Mus