Application Development 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: 

Large Text Box (Combo Box) on Selection Screen

Former Member
0 Kudos

I am trying to design a screen to accept a few parameters and then one large text field. The user will need to be able to paste an email into this text field. I am having trouble seeing how I can do that.

Any help is appreciated.

7 REPLIES 7

Former Member
0 Kudos

chk the dataelement for EMAIL in table ADR6 and give that

parameters  : V_email like ADR6-SMT...  "<-- not sure check it

0 Kudos

Thanks for the response, but I need to paste an entire email message, not the email address.

What about somehow importing the email as an object? Would that work?

0 Kudos

Hi i think you might have got the solution to this question i am also facing the same issue like i have to send the whole text typed in the text box( combo) as an email..

Please let me know the solution

U r response is appriciatable

Regards

Pavan

pavan.k.kumar@accenture.com

former_member583013
Active Contributor
0 Kudos

<b>ADR6-SMTP_ADDR</b>

Greetings,

Blag.

suresh_datti
Active Contributor
0 Kudos

I guess you will need an EDITOR call.. something like CALL FUNCTION 'RH_EDITOR_GET' ..

~Suresh

former_member194669
Active Contributor
0 Kudos

Hi,

Use the cl_gui_textedit class to get the whole email in the text


    g_repid = sy-repid.

    create object g_editor_container
        exporting
            container_name = 'TEXTEDITOR'
        exceptions
            cntl_error = 1
            cntl_system_error = 2
            create_error = 3
            lifetime_error = 4
            lifetime_dynpro_dynpro_link = 5.
    if sy-subrc ne 0.
    endif.

    create object g_editor
      exporting
         parent = g_editor_container
         wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
         wordwrap_to_linebreak_mode = cl_gui_textedit=>true
      exceptions
          others = 1.


* For retreveing the text from text editor

  call method g_editor->get_text_as_r3table
    importing
      table  = g_texttab
    exceptions
      others = 1.
  if sy-subrc ne 0.
  endif.
  call method cl_gui_cfw=>flush
    exceptions
      others = 1.

aRs

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

Check this FM : EDIT_TEXT_INLINE

Regards

L Appana