cancel
Showing results for 
Search instead for 
Did you mean: 

Comment Box in Web Dynpro Screen

Former Member
0 Kudos

Hi Friends,

We have developed a portal using webdynpro.

Where we need to bring user comments from ECC, which are provided through java portal.

Please suggest me in designing comment box(Feedback long text) and displaying the data.

Which UI_element I need to use.

Thanks in advance.

Regards,

Praveen G.V.S

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member215344
Contributor
0 Kudos

Hi Praveen,

If you want user to edit the text you can use TEXT_EDIT or FORMATTED TEXT EDIT (for advance formatting) UI element for your requirement. Or else you can use Text View or FORMATTED_TEXT_VIEW (for advance formatting).

Thanks,

Ajay Bose

Former Member
0 Kudos

Praveen,

You can use TEXT_EDIT UI element to display long text of more than 255 chars. OR

Create text using SO10 transaction(SCRIPT text) and then READ_TEXT. u can use the UI Element FormattedTextView.

         data : ls_header type thead,

           lt_lines type standard table of tline,

           lr_fm  type ref to cl_wd_formatted_text.

  call function 'READ_TEXT'

    exporting

      client                  = sy-mandt

      id                      = 'ST'

      language                = 'E'

      name                    = (name of the standard text)

      object                  = 'TEXT'

    importing

      header                  = ls_header

    tables

      lines                   = lt_lines

    exceptions

      id                      = 1

      language                = 2

      name                    = 3

      not_found               = 4

      object                  = 5

      reference_check         = 6

      wrong_access_to_archive = 7

      others                  = 8.

  lr_fm = cl_wd_formatted_text=>create_from_sapscript( sapscript_head = ls_header

                                                       sapscript_lines = lt_lines ).

  WD_context->set_attribute( name = 'FOOTER' value = lr_fm->m_xml_text ). 

Hope it will resolve your issue.

Thanks

Katrice

Former Member
0 Kudos