Skip to Content
0
Former Member
Aug 27, 2009 at 09:29 AM

how to delete texteditor value

278 Views

i have requirement to capture employee remarks on text editor.when i enter other employee id it is not deleting previous emplyee

remarks.i want delete previous remarks.how can i achieve this one?

i have create texteditor using below code:

IF p_cust_cont IS INITIAL.

CREATE OBJECT p_cust_cont

EXPORTING

container_name = p_cont_textedit

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5

OTHERS = 6

.

IF sy-subrc 0.

MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

  • Create obejct for the TextEditor control

CREATE OBJECT p_text_edit

EXPORTING

wordwrap_mode =

cl_gui_textedit=>wordwrap_at_fixed_position

wordwrap_position = c_line_length

wordwrap_to_linebreak_mode = cl_gui_textedit=>true

parent = p_cust_cont

EXCEPTIONS

error_cntl_create = 1

error_cntl_init = 2

error_cntl_link = 3

error_dp_create = 4

gui_type_not_supported = 5

OTHERS = 6

.

IF sy-subrc 0.

MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

ENDIF.

kindly need your help.....

thanks....

Ram