Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Read Comment box Data

Former Member
0 Likes
758

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
684

are you using CL_GUI_TEXTEDIT to display the comment box.

and if so use the method

GET_TEXT_AS_R3TABLE

3 REPLIES 3
Read only

Former Member
0 Likes
684

for the comment box you need to define predefined values through which you can use READ_TEXT...

Read only

Former Member
0 Likes
685

are you using CL_GUI_TEXTEDIT to display the comment box.

and if so use the method

GET_TEXT_AS_R3TABLE

Read only

0 Likes
684
 

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