Hi Experts,
I am making a module pool program. I have a requiremnt to capture the value of text box in database table.
In PAI of the dialog screen , I am writing this code:
CALL METHOD newtext_editor->get_textstream
EXPORTING
only_when_modified = cl_gui_textedit=>true
IMPORTING
text = text_9040
* IS_MODIFIED =
EXCEPTIONS
error_cntl_call_method = 1
not_supported_by_gui = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS
cntl_system_error = 1
cntl_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
But as soon as I hit SAVE button value of text editor gets flushed. Calling the flushing method is also neccesary because then new value can not be inserted.
Please suggest a solution for this.
