Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 02, 2008 at 03:05 PM

    are you using CL_GUI_TEXTEDIT to display the comment box.

    and if so use the method

    GET_TEXT_AS_R3TABLE

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member
       
      
      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

  • avatar image
    Former Member
    Sep 02, 2008 at 03:01 PM

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

    Add comment
    10|10000 characters needed characters exceeded