Hi,
My requirement is that when i save the long text once in the text editor, next time when i access that texteditor, i SHOULD NOT BE able to change the text which i entered, BUT I SHOULD ENTER THE NEW TEXT.
I am using the method:
CALL METHOD EDITOR4->PROTECT_LINES
EXPORTING
FROM_LINE = 0
PROTECT_MODE = EDITOR4->TRUE
TO_LINE = V_LINES
ENABLE_EDITING_PROTECTED_TEXT = EDITOR4->TRUE
EXCEPTIONS
ERROR_CNTL_CALL_METHOD = 1
INVALID_PARAMETER = 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.
I am able to disable the text which i entered earlier but not able add new text.
Pls suggest.
Thanks,
Ravi