Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Display text in Text Editor

Hi,

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...

In PAI

WHEN 'SAVE'.

WA_AAAA-SLNO = ZTEST-SLNO.

CALL METHOD TEXT_EDITOR->GET_TEXTSTREAM

  • EXPORTING

  • ONLY_WHEN_MODIFIED = CL_GUI_TEXTEDIT=>TRUE

IMPORTING

TEXT = TEXT

  • 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.

  • MESSAGE TEXT TYPE 'I'.

WA_AAAA-EMPI = TEXT.

ENDCASE.

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.

Thks

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question