Skip to Content
0
Former Member
Apr 28, 2009 at 08:17 PM

Retreiving long text from custom control not working

54 Views

Hi,

I have defined a text edit control on a screen in a custom transation and this works in that I can type text into it on the screen.

However when I come to need to save the text I use the method 'get_text_as_r3table' to return it into an internal table read for saving.

However nothing is returned and I cannot see what is wrong.

Below is a summary of the code where I create the container object, then the text edit object.

Finally I call 'get_text_as_r3table' to get the contents of what has been typed into the table on the screen. This bit returns an empty table lt_table.

Can anyone see what I am doing wrong here?

  CREATE OBJECT go_containersio
    EXPORTING
      container_name              = 'SIO_TEXT'


  CREATE OBJECT go_siotextedit
    EXPORTING
     wordwrap_mode                    = cl_gui_textedit=>wordwrap_at_fixed_position
     wordwrap_position                 = 72
     wordwrap_to_linebreak_mode = cl_gui_textedit=>true
      parent                                 = go_containersio

............
............
............


  CALL METHOD go_siotextedit->get_text_as_r3table
    IMPORTING
      table = lt_table.

Many Thanks

David