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

Similar Messages

  • Word Wrap -- Imported Excel File Doesn't

    I have a number of Excel files that I'm trying to work with in Numbers.
    In a number of cases the text I enter in a cell is longer than the width of the column. In Excel I indicated that this was text and that the program should wrap. The data transferred over showed the text as I need -- spilling to a second line when needed. But when I enter new text in the same sheet and same column the text is truncated to the width of the column. I have the "Wrap" button clicked.
    Any ideas?
    Thanks
    In a previous post one of our Discussions colleagues was kind enough to suggest that I should read the User's Guide. Let me say that before I post here I do try the Help function and the User's Guide. Often it seems I lack the appropriate vocabulary / can't figure out how to ask / etc. I only post here when I can't figure it out.
    Also I am new to Numbers and am making an effort to switch from Excel. I wonder / fear that the files imported from Excel are not as "clean" as we might expect and so add to my challenges.
    Finally I have a few questions but for the sake of matching a specific solution to a specific issue I will post a number of questions rather than ask all my stuff in the same post.

    jayessemm wrote:
    I have a number of Excel files that I'm trying to work with in Numbers.
    In a number of cases the text I enter in a cell is longer than the width of the column. In Excel I indicated that this was text and that the program should wrap. The data transferred over showed the text as I need -- spilling to a second line when needed. But when I enter new text in the same sheet and same column the text is truncated to the width of the column. I have the "Wrap" button clicked.
    Any ideas?
    Sounds like Numbers (or the user) is setting only the individual cells to wrap. To apply that setting to a whole column, click on any cell in the table to make the row and column reference tabs appear, then click the reference tab for the desired column to select the whole column. Now click the Wrap checkbox to apply or remove the Wrap setting to/from all cells in the column.
    In a previous post one of our Discussions colleagues was kind enough to suggest that I should read the User's Guide. Let me say that before I post here I do try the Help function and the User's Guide. Often it seems I lack the appropriate vocabulary / can't figure out how to ask / etc. I only post here when I can't figure it out.
    Understood. The Preface and Chapter 1 of the Numbers '09 User Guide provide a lot of the vocabulary specific to Numbers. You'll also learn a lot of that vocabulary by scanning the menus.
    Also I am new to Numbers and am making an effort to switch from Excel. I wonder / fear that the files imported from Excel are not as "clean" as we might expect and so add to my challenges.
    That's always a possibility, of course. Also, you'll find that Numbers does not support all of the functions and features found in MS Excel (although for many unsupported features, there are other ways of accomplishing the same thing, or something similar, in Numbers).
    Regards,
    Barry

  • Convert Microsoft Word, PowerPoint, and Excel files to PDF

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/pro/using/WS40411658-73C0-4669-88E8-D410F5993FAC.html

    Acrobat converts a whole Excel sheet to PDF even though one wants to convert only a defined print area (if converting the Excel file with either right-click or from within Acrobat . Converting from within Excel works.)
    -> Applies for Excel 2010 only .
    Workaround:
    Activate in Excel the function "Allow changes by more than one user at the same time" under:
        Tab Review > Share Workbook > set checkmark at "Allow changes by more than one user at the same time"
    then save the document and now creating a PDF with each of the above mentioned methods works as expected.

  • Office 2013 can't open word, excel files from the network after upgrade to 8.1

    Hello,
    Recently, I upgraded all PCs from WIN 8 to Win 8.1. After the upgrade I noticed that I can't open any word documents and excel files. Before the upgraded I have no problem opened any files. All PCs have over 500GB free space on hard drive. Other PCs that
    run Win 7 have no problem open them only the one with Win 8.1. This is what I got:
    I right click--> property and there is no unblocked. All files resided on the network server.
    Please help.
    Jimmy

    Hi Jimmy,
    Did you get any error message when you try to open an Excel file/Word document?
    If so, you can post the error message and  event log here.Also ,if you had antivirus software installed, try to disable them to test this issue.
    In addition, what happens if you add the network server location as a trusted location?
    Wind Zhang
    TechNet Community Support

  • How to Edit Word and Excel file in N9

    Hi, I can open the Ms Word and Ms Excel Files in N9 but I can not edit the text or Cells. Please advise the way to edit the text in the Word or Excel Files.

    Apparently, Nokia considers it to be strange that someone want to edit documents on smartphone, and considering that most of the developers (who are able to produce office software) are not interested in MeeGo, we will not have this option available. 

  • How to import Word or Excel files in Project 2013.

    I am facing a problem in Microsoft Project 2013. I am trying to insert a word or an excel file into Project 2013. But for each file,
    an import wizard appears and after trying all the possibilities, I am unable to finish it. Please help me out and tell me how to import Word or Excel file in Project 2013.

    Parulg --
    From your description, it sounds like you are trying to attach a Word or Excel document to a project, or to insert the Word or Excel document into the project.  If that is the case, you actually need to attach the Word or Excel document to a task in
    the project.  There are several ways to do this, but in either case you first need to open the project to which you want to attach the Word or Excel document.  You can then use one of several methods, which are:
    Click the View tab to display the View ribbon.  In the Data section of the View ribbon, click the Tables pick list button and select the More Tables option.  In the More Tables dialog, select the Hyperlink table and then click the Apply button.
     For any task in the project, enter the hyperlink to the Word or Excel document in the Hyperlink column for that task.
    Double-click a task and then click the Notes tab.  On the Notes page of the Task Information dialog, click the Insert Object button.  In the Insert Object dialog, select the Create from File option and then use the Browse button to navigate to
    the folder containing the Word or Excel document.  In the Browse dialog, select the Word or Excel document and click the Insert button. In the Insert Object dialog, select the Display As Icon checkbox.  You can also select the Link checkbox if you
    want to create a shortcut to the document rather than embedding the document in your Project file.  Click the OK button when finished.
    Just a couple of ideas based on my assumption about what you are trying to do.  Please let us know if my assumption is wrong.  Hope this helps.
    Dale A. Howard [MVP]

  • Word wrap last space to be blank

    hi prestnl in a notepad file output of report the word wrap is being done at positon 225 as the last field county is of three char but the valurs indatabase is two so the word wrp is done on position 225
    we need to display a blank space after "MY' in below eg ie the word wrap for notepad file shold display one blank space after MY
    pls sugges how to do
                                                         11900      Penang                                   MY

    hi,
    use like this.
    SHIFT ld_field LEFT DELETING LEADING SPACE.
    Regards
    Reshma

  • Word document to PDF File possible?

    Hi to all, im using mac mini at home, in office i use windows. in windows theres a software that converts word documents (or excel files or ppt files) to pdf file. is there a freeware on this for mac?
    my dilema is actually this: i am putting pictures in a word document and convert them to pdf.
    any help would be nice.
    Thanks

    Hi iSphere: Have you tried, going to "File" > "Print" then at the bottom of the print dialog box select "PDF" and then "save as PDF". This will create a PDF file to be saved.
    Hope this helps
    Stedman

  • Can I globally change a setting so that Word/Excel files open in NeoOffice

    We are evaluating the use of open "Office" applications. Is there a global setting that will allow us to force Word & Excel files to open in NeoOffice (and vice versa)? In addition, is there an Import Data feature in NeoOffice or OpenOffice?

    See this article:
    http://docs.info.apple.com/article.html?artnum=106171

  • New Laserjet Pro M476NW Will Not Print MS Word or Excel Files

    I just bought a brand new Color Laserjet Pro MFP M476nw printer. I am usint MS Vista 32 bit and MS Office 2007.
    The Printer prints images, emails and I can make copies, etc, but I cannot print Word files, Word Envelopes, Excel files, etc.
    Until my old HP Laserjet 4P finally died the other day (internal electrical short) I could print everything. Have spent 8-hours or so trying everything I have read from Microsoft, HP, etc, with no success. Installed, Uninstalled, reinstalled, ran diasgnostics, still no success.
    I cannot contact anyone at HP for less than $99 to talk to a person. Very frustrating.
    As I said, Word and Excel files printed just fine until I bought the new M476nw printer. How can this be Fixed?
    This question was solved.
    View Solution.

    @DerekChristense 
    Thank you for letting me know that Print and Scan Doctor helped you fix your issue and you are back printing.
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

  • Acrobat 9 - we are unable to merge word and excel files into a pdf.

    Acrobat 9 - we are unable to merge word and excel files into
    a pdf. Any advice?

    To be expected if you are working in a contemporary OS and contemporary MS Office suite.
    The Acrobat 9.x product family passed into End of Support mid-year of 2013.
    The product isn't compatible with contemporary OSs or Office suite.
    You may have to step up into the Acrobat XI product family.
    Be well...

  • Importing Word Files With linked Excel files

    I have a word document with linked excel files that appear as linked images in word. When these images are clicked it opens it up in Excel where I can edit them which is fine. However, I would like to import the word doc into adobe indesign with editable tables - not images. Is there a way I can do this?
    Importing, exporting, converting. Nothing seems to work besides manually bring in the separate excel doc in one by one but that will be very time consuming at my end.
    Thanks for any feedback.

    AFAIK, that won't work. InDesign doesn't support OLE.
    You may need to convert those Excel tables to Word tables before placing into ID.
    Bob

  • Word wrap in RTF for an excel output : BIP 11g

    Hi,
    If we set the word wrap property in RTF and generate the output in Excel format, it doesnt reflect. However, PDF output reflects the difference.
    Looks like Excel overrides the property set in RTF. Is there anyway to text wrap a column for excel output?
    Thanks,
    Divya

    Sorry but this is a longstanding complaint.
    The more people who report a bug or request a feature, the more likely it is to be actioned. Please follow this link.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • 10.9.2 os freezes when quicklook/preview word excel files

    Hi All,
    My MacBook Pro (15-inch Mid 2010) recently updated to 10.9.2. And a problem with preview app and QuickLook function occured right after the update, as described here:
    It is unalbe to 'QuickLook' MS word and excel files (by pressing spacebar to these files on desktop or those in finder). When doing it, a blank Quicklook window pops out and the small circling thing is showing in the middle, but never showing its content. It can be meanwhile sensed that the Hard Disk freezes exremely and I cannot operate other apps or files while QuickLook is stucking as mentioned about. This also happens in Finder's "preview colonm" by highligting any word or excel files.
    Same severe freezing happens when using preview.app to open word and excel files. The preview-app and hard disk will being stuck for a while (roughly one minute) and after that it shows an info. window without displaying file content but only showing file-name&file-type and modified date etc.
    The BMP has installed MS office 2011 and it works fine when using office apps to open doc/docx/xls files directly. Only are the freezings found with Preview.app and using QuickLook fucntion.
    Can Apple developers/technicians or anyone please check upon this issue and sugguest any solution that I could apply. Reply me if further infomation is needed. Thanks ahead.

    Hi,
    I have the same problem. I don't know what cause this, but I can tell you that I tried to reset SMC and VRAM and the problem not was solved. In my case it ocurrs only when the word file have section breaks...
    You can look for the "finder web content" process at system monitor ant force its termination. Then the issue should be solved until you try to preview a new word, excel file in finder...
    Bye

  • How to embed an excel file or word doc in a pdf doc

    How to embed an excel file or word doc in a pdf

    Hi Maxpkh
    Do you mean attachment? You can't do that with free Adobe Reader you need Acrobat to do this.
    ~Deepak

Maybe you are looking for

  • Bonjour messages only one way

    I can send messages from my new mac mini to my powerbook, but now the other way. I am using wireless and have tried it with every combination of ichat and adium on each, but nothing changes. What's going on here?

  • Washed Out Brightness

    Evening, I have just bought a new Apple TV 2, on my TV it seems too bright or washed out. It's like the brightness is turned up too high, but when I adjust the brightness and contrast so that the blacks are black, the picture overall becomes too dark

  • Segments, extents and data blocks

    I'm somewhat green when it comes to Oracle and databases in general, so bare with me. I bought the OCP Exam Guide to try and learn as much as I can. I'm at the chapter about segments, extents and data blocks and I'm having a bit of trouble grasping t

  • PLSQL FUNCTION (variation of earlier question)

    -- Attempting to COMBINE two parts of -- a table name using a function -- 1. MANY tables begin with the string: -- FT -- 2. each suffixed two digits refer to the -- year of -- the data in the table -- eg. TABLE FT99 includes all 1999 -- data -- how c

  • Opening Indesign 2.0 files in CS4?

    Hello, I have InDesign CS4 and I need to update some older assembly manuals that were made in 2.0. Is there any way to open them in CS4? When I try, InDesign just crashes without an error message or anything. I've tried on both Mac and PC. I've searc