2008 Oct 19 5:16 AM
Hi,
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...
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
2008 Oct 20 8:48 AM
I'm not sure I really understand your question. You have PAI code that captures the content of the text control and stores it in WA_AAAA-EMPI. In the PBO logic you could call CL_GUI_TEXTEDIT->SET_TEXTSTREAM to set the content of the text control and display the text that is in the WA_AAAA-EMPI field.
2008 Oct 20 8:48 AM
I'm not sure I really understand your question. You have PAI code that captures the content of the text control and stores it in WA_AAAA-EMPI. In the PBO logic you could call CL_GUI_TEXTEDIT->SET_TEXTSTREAM to set the content of the text control and display the text that is in the WA_AAAA-EMPI field.
2008 Oct 21 11:15 AM