DOI Wordprocessor: why is long text being cut in table cells?

I use DOI Word Processor Interface to populate a [templ.doc] template file with data.
There is an empty table in the template and I put there my internal table content with
the method wpi->insert_table2( ).
The problem long (too long for corresponding cells) strings are not wrapped but cut to the length of the cells.
As a result I have loss of data.
Also tried wpi->insert_table() but the same result.
How do I solve the problem?

It may also be windows (for OLE). I also tried with a sapgui 710 and word 2003 and there's no problem.
Could you try my little program : copy SAPRDEMOOFFICEINTEGRATION to custom program, and replace code below WHEN 'COPYLINK', with:
      DATA lt_col TYPE soi_cols_table.
      DATA ls_col TYPE LINE OF soi_cols_table.
      TYPES : BEGIN OF ty_s_data,
                var TYPE char128,
              END OF ty_s_data.
      DATA ls_data TYPE ty_s_data.
      DATA lt_data TYPE TABLE OF ty_s_data.
      DATA lo_error TYPE REF TO i_oi_error.
      CALL METHOD document->get_wordprocessor_interface
        IMPORTING
          wp_interface = wp_ref
          retcode      = retcode.
      IF retcode EQ c_oi_errors=>ret_ok.
        REFRESH lt_col.
        ls_col-colindex = 1.
        APPEND ls_col TO lt_col.
        REFRESH lt_data.
        GET TIME.
        ls_data-var = 'text djkfdjslfkjsd jfksdfjdlskdf jfkdsfjd jkfsdjflksdj jdfskfj sdlkf jkldfsjfklsdjflks jklfsdjfklsdfjl'.
        APPEND ls_data TO lt_data.
        CALL METHOD wp_ref->insert_table
          EXPORTING
            data_table      = lt_data
            info_table      = lt_col
            lowerbound      = 0
            upperbound      = 1
            doctable_number = 1
            clearoption     = 0 "1=clear only accessed columns
            startrow        = 1
            varsize         = 'X'
          IMPORTING
            error           = lo_error
            retcode         = retcode.
      ENDIF.
Run the program, click F2 (-> word is started asynchronously, doc is displayed), insert a table in this doc, do not close, click F7 from program (-> it inserts the text in the first cell).
Tell me what happens.

Similar Messages

  • Long Text Field in a Table

    Hello Everyone,
    I am looking for a solution for including a Long Text Field in a Table. I was not able to find any UI Element for LongText Field in a table. Could anyone suggest me a solution for this. I greatly appreciate your help.
    Regards,
    Gopal.

    Hi Pankaj,
    Thanks for your reply. I know that we cannot insert "TextEdit" UI Element in a table as this option is not available in ABAP WD. I also know that we can increase the width of the table Cell editor. But we dont want the Long text field to look like that.
    We are looking for some thing that looks a bit meanigful for entering short paragraphs. It would be great if you can suggest us with some other ways of doing this.
    I hope you can understand my requirement. I appreciate your help.
    Regards,
    Gopal.

  • How to write text vertically in an table cell?

    Is it possible to make a table cell where the
    text would be written along a vertical base line?
    I found how to make a text box and rotate it
    vertically.
    How may I place such a text box in a table cell?
    dan    

    Hello daniel,
    if the table will not be resized or repositioned a lot, the best way to display what you want to have is to create a textbox with the styles and adjustments you need, rotate it and place it over the table cell. Be sure to make the cell big enough to pretend the text of the textbox would be inside of it. The textbox has to be a fix positioned object in the top layer.
    It's only a work-around, but the best you can achieve.
    Frank.

  • Why are my song being cut off, not all just some?

    Some of my songs that I bought on itunes are being cut off when there is about 30 seconds left to the song, both on my iphone and my macbook.  I dont know why this is happening. any help would be grealty appreciated.

    Are the episodes being shortened when you publish to a local folder and launch them in the browser as well as when published to the server? See this page under "Troubleshooting"...
    http://www.iwebformusicians.com/iWeb/iWeb-Tips.html
    If the local files are OK it would suggest the problem is on the server. Otherwise you need to troubleshoot iWeb.
    If the problem is files that are too large, you can reduce the sampling rate and/or convert to mono if the content is mostly speech rather than music.

  • FI document Line item Long text store in which table .

    Respected Members,
    During posting of the FI document through Tcode F-02 i m giving the some text in the long text not in the text field.
    Please anybody can be help me out where exactly this long text is going to be stored or in which table.
    Through F1 it is saying Field is TXLINE and Structure is RSTXT.
    But  i want the table name.
    Please give me the answer as soon as possible .
    Thanks a lot.

    Hi Lee,
    I am also facing problem in getting the long text information into my on e of the custom report, i need onformtion in longtext field of the accounting document number which is against item posted to vendor.here i am sending you the screenshot of the document number and long text filed and READ_TEXT function module parameters, i  tried with lot of options,but no luck, it would be great if you could provide me some hint on this..

  • Displaying Long text of hierarchy in variable cell

    Hi,
    What I'm trying to do is get the profit center node variable to show the medium/long text description of the node within the Layout->Display Text Elements section(SAPBEXheaderItem) of the query.
    I tried playing around with both the display and BEx Description settings in:  InfoObject->Business Explorer->General Settings
    I also tried to select the medium text setting within the query definition.
    Any ideas?

    Hello,
    Unfortunately, there is no possibility to change the length to more than 60. This is because all interfaces are based on  60 characters and the storage on the database is 60. Please refer to the attached SAP notes :
    545923     FAQ: Technical limits/customer namespace/p             
    540868     Technical limits for characteristics                   
    Best Regards,
    Des

  • Long Text Field in Transparent Table

    Hi,
    I have a requirement more than 3 fields in table with more than 4000 character and same data or text to print using smartforms.
    I have taken string data type in transparent table but maximum 3 fields can be  string data type in a table.
    And after save the data in table it automatically convert into upper case but it should be same as input.
    So what is the solution for this type of requieremnt  means how to sovle this issue.
    i.e.
    field type
    a    char key field
    b    char  key field
    c    string
    d    string
    e    string
    f     string
    g    string
    and so on..
    Thanks in Advance.
    Ram

    hello sir,
    can you guide me how to create z object for long text and how to use this .  please ..I have read save_txt Function but unable to find the use of this.
    Actually I want to use in Module Pool Program. I have 7 field which have long text in a zTable.
    Thanks.
    Ram
    Edited by: Ram Shanker on Oct 12, 2011 5:45 PM

  • Why is my text being sent by my iCloud account and not my number

    My text are being sent by my iCloud email and not my phone number. Why? and how do I change it back.
    Thanks
    Rebecca

    Settings>Messages>Send & Receive
    Add your phone number and set it as the default to send messages from.

  • Why is my text being sent as an email after iOS 7

    Ever since we upgraded to the iOS 7, all texts from our iPhone 4 are being sent as an email attachment?? Does anyone know how to fix this?

    I'm having this problem also.
    Both my wife and I have an iPhone 4 running iOS5, we were texting using iMessage, and it was working but then for some strange reason, the last 3 or so messages we sent got sent as text, but it didn't show them being sent as a text, until you left iMessage, and returned to it.
    The problem was, I had sent 2 pictures through iMessage, they got sent as MMS, and I got charged for them.
    Apple need to split iMessage from sms, instead of rolling them in the same app, that way you know your in iMessage, and you know when your in sms.
    Why apple have decided to leave them in the same app is a mystery.
    Sort it out Apple.

  • Header and Footer Items in Adobe Muse? Also Menu text being cut off half way.

    How can I make the header and footer items load faster in Adobe Muse? I am hosting with Business Catalyst. Everything else loads almost immediatly on my web page, but my Header and Footer graphic- wood grain picture- take almost 10 seconds to load, and almost a minute to load on mobile devices.
    As well, my menu's are not loading correctly on other peoples devices. On my lap top everything looks fine, but on other peoples devices the text in my menus is only loading half way? -only shows half the text.
    Still working on my site, but to see what I am talking about you can visit the web page I am in the middle of building at www.bkskin.com
    Please give me some advice if any of you have some, thank you.
    Megan Burnett

    Hello,
    It seems to be an issue with the Font that you have used.
    You have used Bubble-one font and if you check this font in Google Chrome it is cut off and if you check in Firefox, it comes up fine.
    Please have a look at this link in Google Chrome and Firefox and you will see the difference : http://www.google.com/fonts/specimen/Bubbler+One
    I would suggest you to use some other font in order to fix it.
    Regards,
    Sachin

  • Why is my logo being cut off in form wizard

    I am creating a series of fillable forms, and 4 out of 5 work just fine, but one of them cuts off part of the company logo. I have created them all in the same manner so I don't know why this one won't work.

    In the header, you have your image as a background image.  A BG image does not change the height of the container, so the only thing that is giving your height is your use of
    <p></p>
    which is not the correct way to go.
    Set a new rule in your .header for a min-height of however large your background image is, that is will solve the header/image issue.
    In the side nav, change the background color to your menu color, see if that solves your problem, if not a better option would be to use a faux column, you can read about them here.
    http://www.paulgdesigns.com/faux-columns.php
    Your footer you have the image set to 25 px in height, and that appears to be what you are getting.
    Gary

  • Why are my texts being received as emails

    I am receiving group text messages as emails, which i have to download to view. why is this?

    We want to get your text messages working properly NickBob! I know it can be annoying downloading the email to view your messages. What is your make/model of your device? When did you start having this issue? What messaging application are you using?
    AmberF_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Text being cut off on screen

    Hi Everyone,
    I have been having the weirdest problem...not all, but many of my text boxes are cropping the text...and if I continue typing to do a second line, it squishes the text together...almost like a leading problem for those of you familiar with typography...enlarging/shrinking the text does not help, does anyone know how to fix this? some examples are below, let me know, thanks
    btw here are some screen shots of windows where this issue happens, if that helps:
    http://gallery.me.com/benjaminbudzak#100062

    yeah I did a font evaluation and found problem fonts but font book could not get rid of them when I went to remove the problem fonts...so I removed all the system fonts (which were replaced) and them I removed all the regular fonts and put them into fontagent pro...thanks ago

  • Why are my songs being cut short when I am exporting to Itunes/Soundcloud?

    Whether 3 minute tracks or 6 minute tracks my songs are getting cut off in their prime when I try exporting to Itunes/Soundcloud. I have the end of track marker in the right position and it was never a problem before upgrading to the New garageband

    See last post of this link - I've got a hack which may work for you:
    Re: Problems exporting full track to iTunes from Garageband

  • Why are my texts being received as picture message emails?

    When I send a text from work to my wife from my iphone 4 she receives an email on her iphone 3GS and her ipad 2 from <my phone number>@media messaging.o2.co.uk. The email says 'Here's a picture message you've been sent from <my phone number>. The message has no other content even though it is indicated that there is an attachment.
    Is this a problem with my network provider or are there some settings which need changing?

    I'm also having this problem intermittently when the other phone is outside 3G coverage (on Edge or GPRS). iMessage and Send As SMS are on on both phones. This should be reproducable at home by turning cellular data off. Will check tonight.

Maybe you are looking for