‎2008 Sep 02 4:00 PM
Hi All,
I am working on Screens.I have created a Comment box with the Customer Container.
Its coming perfectly.
I entered some text with in that comment box.
I want to read the data which i entered with in that comment box.
I tried to use READ_TEXT function module.I am not able to read the data.
How can i read the the data from comment box.
Is there any function module or class for tat.
Please give me a solution.
Thanks,
Swapna.
‎2008 Sep 02 4:05 PM
are you using CL_GUI_TEXTEDIT to display the comment box.
and if so use the method
GET_TEXT_AS_R3TABLE
‎2008 Sep 02 4:01 PM
for the comment box you need to define predefined values through which you can use READ_TEXT...
‎2008 Sep 02 4:05 PM
are you using CL_GUI_TEXTEDIT to display the comment box.
and if so use the method
GET_TEXT_AS_R3TABLE
‎2008 Sep 02 4:16 PM
DATA: BEGIN OF STEXT OCCURS 200,
* LINE(72),
LINE(78),
END OF ST
CALL METHOD editor->get_text_as_r3table
* EXPORTING
* ONLY_WHEN_MODIFIED = FALSE
IMPORTING
table = stext[]
* IS_MODIFIED =
* EXCEPTIONS
* ERROR_DP = 1
* ERROR_CNTL_CALL_METHOD = 2
* ERROR_DP_CREATE = 3
* POTENTIAL_DATA_LOSS = 4
* others = 5
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
^Saquib