Display text in text editor
Excuse me for posting the post in this forum.As i didnt got any response for ABAP general forum.
I am able to save the data that is entered in the text editor into my customized field which is of 255 char length this is for creation object.
I have designed another screen to display the text that is entered in the text editor fetching from my my customized field.
This is my coding for save...
WA_AAAA-SLNO = ZTEST-SLNO.
CALL METHOD TEXT_EDITOR->GET_TEXTSTREAM
ONLY_WHEN_MODIFIED = CL_GUI_TEXTEDIT=>TRUE
TEXT = TEXT
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.
CALL METHOD CL_GUI_CFW=>FLUSH
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2
OTHERS = 3.
MESSAGE TEXT TYPE 'I'.
WA_AAAA-EMPI = TEXT.
MOVE-CORRESPONDING WA_AAAA TO WA_ZAAAA.
INSERT INTO ZTEST VALUES WA_ZAAAA.
ENDMODULE. " USER_COMMAND_1111 INPUT
Now text that is entered is saved in the field EMPI, this EMPI value i want to display.
How can i write the same code for displaying the text whether in PAI or PBO. Any suggestions.