Skip to Content

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

Read Comment box Data

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.

Tags:
Former Member
Former Member replied
 

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question