Word Wrap in export

Hey, I am still working on my export script.
I export data with the spool option into a csv file.
One problem left.
I have one column, where the operator inserted an explicit wordwrap. So opening the file in notepad or in excel I do an wordwrap. Is there a way of deleting this empty row ?
So the text in the sql select statement looks like:
sql> select columnname from table;
ColumnName
Word one two three
word four five six seven
Christian

Hi, Christian,
Whenever you have a problem, please post a complete test script that people can run to re-create the problem and test their ideas. Include CREATE TABLE and INSERT statements for your sample data, your complete query, and any SQL*Plus fomatting commands you use (such as SET LINESIZE).
Also post the exact results you want from the given sample data. You'll probably have to describe things like trailing spaces.
Christian wrote:
Hey, I am still working on my export script.
I export data with the spool option into a csv file.
One problem left.
I have one column, where the operator inserted an explicit wordwrap. Do you mean some user entered a linefeed character?
Maybe you should remove it, using RTRIM, or REPLACE, or some other string amnipulation function.
So opening the file in notepad or in excel I do an wordwrap. Is there a way of deleting this empty row ?Perhaps you need to issue the SQL*Plus command
SET   RECSEP   OFFbefore doing the query.
So the text in the sql select statement looks like:
sql> select columnname from table;
ColumnName
Word one two three
word four five six sevenIt that one row of data, or two, or three?

Similar Messages

  • Word Wrap In Excel File

    Hi experts,
    I am trying to send an excel file as attachment . I have a column called remarks which is way too long. So  i need to Wrap the text
    Can any one help me out in this?
    CONCATENATE DUMMY BUKRS WERKS  it_inv-bstnk_vf IT_INV-ORT01 VEHNO 'SUGAR' FKLMG BP EXCDUTY EXINVNO
    EXDAT NETVL IT_INV-NAM_1 IT_INV-KZABE IT_INV-KZGBE  INTO IT_ATTACH SEPARATED BY CON_TAB.
    CONCATENATE IT_ATTACH CL_ABAP_CHAR_UTILITIES=>CR_LF INTO IT_ATTACH."nam_1 has to be Word Wrapped
    APPEND IT_ATTACH.
    With thanks in Advance
    Syed Ibrahim .G

    thanks simone,
    I tried with converting to XML and then to excel.It is getting generated , but i cannot open the excel file.
    It is showing the error when i am trying to open the file in the log.
    XML PARSE ERROR:  Undefined namespace
    this is the code i am using.
      l_ixml = cl_ixml=>create( ).
    * Creating the DOM Object Model
      l_document = l_ixml->create_document( ).
    * Create Root Node 'Workbook'
      l_element_root  = l_document->create_simple_element( name = 'Workbook'  parent = l_document ).
      l_element_root->set_attribute( name = 'xmlns'  value = 'urn:schemas-microsoft-com:office:spreadsheet' ).
      call method l_element_root->set_attribute_node"( ns_attribute ).
      exporting
        NEW_ATTR = ns_attribute.
      r_element_properties = l_document->create_simple_element( name = 'TEST_REPORT'  parent = l_element_root ).
      l_value = sy-uname.
      l_document->create_simple_element( name = 'Author'  value = l_value  parent = r_element_properties  ).
      r_styles = l_document->create_simple_element( name = 'Styles'  parent = l_element_root  ).
    call method r_style->set_attribute_ns
      exporting
         name = 'ID'
         prefix = 'ss'
         value = 'Header' .
      r_format  = l_document->create_simple_element( name = 'Font'  parent = r_style  ).
      r_format->set_attribute_ns( name = 'Bold'  prefix = 'ss'  value = '1' ).
      r_format  = l_document->create_simple_element( name = 'Interior' parent = r_style  ).
      r_format->set_attribute_ns( name = 'Color'   prefix = 'ss'  value = '#92D050' ).
      r_format->set_attribute_ns( name = 'Pattern' prefix = 'ss'  value = 'Solid' ).
      r_format  = l_document->create_simple_element( name = 'Alignment'  parent = r_style  ).
      r_format->set_attribute_ns( name = 'Vertical'  prefix = 'ss'  value = 'Center' ).
      r_format->set_attribute_ns( name = 'WrapText'  prefix = 'ss'  value = '1' ).
      r_border  = l_document->create_simple_element( name = 'Borders'  parent = r_style ).
      r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
      r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Bottom' ).
      r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
      r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
      r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
      r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Left' ).
      r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
      r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
      r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
      r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Top' ).
      r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
      r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
      r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
      r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Right' ).
      r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
      r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
      r_worksheet = l_document->create_simple_element( name = 'Worksheet'  parent = l_element_root ).
      r_worksheet->set_attribute_ns( name = 'Name'  prefix = 'ss'  value = 'Sheet1' ).
      r_table = l_document->create_simple_element( name = 'Table'  parent = r_worksheet ).
      r_table->set_attribute_ns( name = 'FullColumns'  prefix = 'x'  value = '1' ).
      r_table->set_attribute_ns( name = 'FullRows'     prefix = 'x'  value = '1' ).
      r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
      r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '40' ).
      r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
      r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
      r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
      r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '140' ).
      r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
      r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '150' ).
    With thanks in advance,
    Syed Ibrahim . G

  • How can I copy and paste a pdf form onto my Mavericks Clipboard. I only see word-wrapped text.

    How can I copy and paste a pdf onto my Mavericks Clipboard. I only see word-wrapped text.

    Yes, Thank you for using the term Place. You moved my focus off the clipboard, and Place set me back on course. Somewhere, the terms Copy and Paste need to be tagged to Place and Export. I'm a database designer who only uses Illustrator for forms the database fills. My need isn't yet met, but the rest should come with reading the right references. Thanks Larry!

  • GIFT question import - word wrap

    I've created an excel macro spreadsheet to export all of my questions to the GIFT text format.  Some of the answers are single sentence, maybe 100 characters max, some are single words, etc.
    The problem is when I import the question file, the answer text fields are not adjusting height to accommodate the text length. Is there a way to have Captivate 7 handle word wrapping question text without having to manually adjust the height of each answer text field?

    Did you get an answer to this question? I have the same question.

  • Webforms - Wrap Text/Word Wrap for Column Headings

    I have some member aliases that are set as my webform's column headings, but they are fairly long. Setting the column width to a custom value that fits most of the text in the heading makes the form very wide and ugly to work with. I don't see any option to Wrap Text or use Word Wrap in the column headings. Is there any way to do this?
    Thanks!

    Hi,
    I am not aware of any option which allows you to wrap the text, it may be possible customizing the [CSS |http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_hp_admin/ch12s03.html] though to be honest I am not even sure about that and even if it was possible it would apply to all apps.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to word wrap within text field

    I've created a form with a text field but when filling the form out, the words don't word wrap, but merely go in a single line across the text box field. 
    When can I format the text box to word wrap?
    tks

    I have set my text fields to multi line and the text wraps but it only starts about halfway down the text box.  Please help, this is getting frustrating...

  • How can I turn off word wrap in the View Source output?

    I'm trying to extract HTML from Word and one way to do that is to save the Word file as a .htm file and then View Source in a browser and copy that. But the words are wrapped in the View Source file. I want each paragraph to be all on one line. Is there a setting for the View Source feature that will turn off word wrap?
    Once I have that done and copied into a plain text editor, I will use Search>Replace to get rid of all the stuff Word puts there and just end up with the simple paragraph tags at the end of each paragraph, all on one line.

    You can disable wrapping and syntax highlighting in the View menu in the Edit > View Source window.

  • Looking for a word processor without word wrap, text edit doesn't cut it

    I'm looking for a word processor without word wrap, text edit doesn't work. In text edit, it automatically scoots my text over to the next line but I just want it to keep going with a horizontal scrollbar. Is there a text editor I can download from the app store or can I get textedit to work somehow where it uses a horizontal scroll bar instead of entering text to the next line?

    Hi,
    thought TextWrangler can do it.
    But it seems that the 'no word-wrap' "feature" isn't that much wanted anymore.
    Maybe one of these http://www.macupdate.com/find/mac/text%20editor can do it.
    Regards
    Stefan

  • Read Only TextAreas with Carriage Return, Line Breaks and Word Wrapping

    Hi all,
    I know there are a few posts around this subject but I cannot find the answer to the exact problem I have.
    I have a page that has a 'TextArea with Character Counter' (4000 Chars) that is conditionally read only based on the users credentials (using the 'Read Only' attributes of the TextArea item).
    When the field is editable (not Read Only) everything works fine but when I make the field Read Only I start to have problems:
    The first problem is that the Carriage Return and Line Breaks are ignored and the text becomes one continuos block. I have managed to fix this by adding pre and post element text of pre and /pre tags. This has made the Carriage Return and Line Breaks word nicely and dispaly correctly.
    However, it has introduced a second problem. Long lines, with no Carriage Returns or Line Breaks, now extend to the far right of the page with no word wrapping, making my page potentially 4000+ characters wide.
    How can I get the field to be display only, with recognised Carriage Returns and Line Breaks, and Word Wrapping inside a fixed width of, say, 150 characters?
    Many thanks,
    Martin

    Hi,
    Just a cut and paste of yours with the field name changed:
    htp.p('<script>');
    htp.p('$x("P3_COMMENTS").readonly=true;');
    htp.p('</script>');I also have the following in the page HTML Header, could they be conflicting?
    <script type="text/javascript" language="JavaScript">
    function setReleaseToProd(wpTypeCode){
       //setReleaseToProd($v(this))
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=set_release_to_prod',0);
      get.addParam('x01',wpTypeCode);
      gReturn = get.get();
      if(gReturn) {
         $s('P3_RELEASE_TO_PROD',gReturn);
      get = null;
    </script>I am a long way from knowing much about Javascript (this page code was written by someone else) so all help is much appreciated.
    Martin

  • Word Wrap with a Vertical Grid

    I've got a vertical grid with my headers in the left column and descriptive text in the column immediately to the right.  I'd like to have the descriptive text word wrap but checking the word wrap box on the layout tab doesn't seem to have any effect.
    Any ideas?  I'm using 11.5 SP3

    I'm not sure if it will work with the iGrid in a vertical orientation, but have you tried setting the RowHeight to something like 20 or 30 instead of the default of 0?  This setting will auto adjust the grid lines based upon the font-size, but you may need to force it to a certain height in order for the wrapping to work.
    Regards,
    Jeremy

  • Word wrap with jLabel

    Is it possible to word-wrap text in a jLabel field? If not, what would be a good choice of component?

    displayArea.setLineWrap (true);
    displayArea.setWrapStyleWord (true);I thought it wasn't added automatic.
    Kind regards,
      Levi

  • Q: How do I convert a pdf file to Word using Adobe Export PDF? - all my attempts are scrambled.

    Q: How do I convert a pdf file to Word using Acrobat Export PDF - all my attempts are scrambled

    Do you subscribe an Adobe Export PDF account? If you do not have an account, please go to https://www.acrobat.com/exportpdf/en/home.html?trackingid=JPZKN to subscribe.
    If you have an account, make sure verify your email address and sign in from https://exportpdf.acrobat.com/SignIn.html
    Jyh-Jiun Liou

  • How to make items in a list word wrap as needed and be variable heights

    I am trying to build a custom itemrenderer for the List control.  The items in the list are variable lengths of text, some of the text items will have different colors determined at runtime base on some criteria (this works fine now with my custom itemrenderer).  What I need is for the items to word wrap, and therefore for the list to display items of varying heights.  Is this possible to do?  All my attempts seem to have failed.  If I can't do this with an item renderer any suggestions about how to do this?  Thanks very much in advance to any of you gurus who are able to help me.

    Trick here is not to specify any height for the renderer so that Flex will determine the height according to the content. Also set the variableRowHeight="true"
    Here is a simple example
    <mx:ArrayCollection id="dp">
            <mx:Array>
                <mx:Object label="some very long text"/>
                <mx:Object label="some very loooooooooooooooooooooooooooooooooong text"/>
                <mx:Object label="some very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text"/>
                <mx:Object label="some very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text"/>
                <mx:Object label="some very long text"/>
            </mx:Array>
        </mx:ArrayCollection>
        <mx:List dataProvider="{dp}" variableRowHeight="true">
            <mx:itemRenderer>
                <mx:Component>
                    <mx:Canvas width="100%">
                        <mx:Text width="100%" text="{data.label}"/>
                    </mx:Canvas>
                </mx:Component>
            </mx:itemRenderer>
        </mx:List>

  • Force word wrap in JTextPane (using HTMLEditorKit)

    Hi!
    I have a JTextPane on a JScrollPane inside a JPanel. My text pane is using HTMLEditorKit.
    I set the scrolling policies of my JScrollPane to: JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED & JScrollPane.HORIZONTAL_SCROLLBAR_NEVER.
    I did not find in JTextPane�s API any relevant property I can control word-wrapping with (similar to JTextArea�s setLineWrap) and I have tried a few things to force word-wrapping but nothing worked...
    What happens is my text is NOT being wrapped (even though there is no horizontal scrolling) and typed characters (it is an enabled editable text componenet) are being added to the same long line�
    I�d like to force word-wrapping (always) using the vertical scroll bar whenever the texts extends for more then one (wrapped) line.
    Any ideas?
    Thanks!!
    Message was edited by:
    io1

    Your suggestion of using the example only holds if it fits the requirements of the featureDid your questions state anywhere what your requirement was?
    You first questions said you had a problem, so I gave you a solution
    You next posting stated what your where currently doing, but it didn't say it was a requirement to do it that way. So again I suggested you change your code to match the working example.
    Finally on your third posting you state you have some server related issues causing the requirement which I did not know about in my first two postings.
    State your problem and special requirments up front so we don't waste time quessing.
    I've used code like this and it wraps fine:
    JTextPane textPane = new JTextPane();
    textPane.setContentType( "text/html" );
    HTMLEditorKit editorKit = (HTMLEditorKit)textPane.getEditorKit();
    HTMLDocument doc = (HTMLDocument)textPane.getDocument();
    textPane.setText( "<html><body>some long text ...</body></html>" );
    JScrollPane scrollPane = new JScrollPane( textPane );If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • JOptionPane.showMessageDialog() - word wrapping exceptions?!

    Hey ppl,
    Probably a silly question...
    I'm currently working with JDBC, and SQLexceptions can be very long! Currently displaying them in a JOptionPane.showMessageDialog() (as i guess most people do?), but being so long they cause it to span the whole screen & then some!
    I looked through the JOptionPane API, but didn't spot anything that might help. Is there a way to get this exception to dispaly on multiple lines, kinda like word wrap in notepad?
    Cheers for any suggestions.
    Jim

    I can't speak for other developers..But as for myself, I rarely if ever print error messages to the JOptionPane. Almost always, I print my error messages and the stack if necessary, to the ouput. This is either a command line window, console, log file, or output screen in an ide depending upon how you program. My code looks something like this.
    catch(Exception e)
        System.out.println(e.getMessage());  // Will print only the message property of the exception
        e.printStackTrace();  // Will print the stack for more information
    }Sorry I couldn't answer your question directly. Maybe someone else can. Hope I was helpful anyway.

Maybe you are looking for

  • Where can I buy a new motherboard for my lenovo r500 2732-32g ?

    Hi there,  I have a IBM Lenovo r500 2732-32g and I need to replace the motherboard. Any idea where I can get hold of a replacement part for a Czech Republic delivery? Many thansk Justin

  • Wait Step, Exception Handling, Alerts

    Hi Everybody,              I am implementing a BPM scenario. I have a few questions: 1) The wait step i am using in BPm, allows me the min wait time as 1 min, can't I have lesser wait time then that. Lets say 30 secs. 2) Under what conditions should

  • Trouble with Power Supply

     have a question, my mainboard is a KT3 Ultra-ARU and I just got a Antec TruePower 480W power supply and this power supply comes with a 3pin sensor and I connected this sensor to my mainboard but it does not show the speed, what can I do. I have also

  • Contract Total value change after PO creation & GR

    Hi, I would like to understand whether the below mentioned behaviour is a standard one of SAP. Value contract (WK) is created for 10,000 INR. And PO created for 5,000 INR and GR&IR also done for 5000 INR. Now I am able to reduce the target value of c

  • 648max + 9700 Solution

    HI Everyone, This message is aimed at anyone who is having stability problems with the MSI648 and ATI 9700 Pro, below is a copy of the e-mail i sent to ATI, Crucial, MSI and SIS stating what i thought the problem was. If your interested read it all..