Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 19, 2008 at 08:49 PM

    The development class SAPTEXTEDIT contains example and test programs.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 05:01 PM

    Answered

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi venkat,

      I would like to display the text captured from text editor. I already saved the text in my Ztable.

      Could you please let me know what is the procedure to show this again on screen?

      Thanks,

      Krishna.