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

Large Text Box (Combo Box) on Selection Screen

Former Member
0 Likes
2,142

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.

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
Read only

Former Member
0 Likes
1,326

chk the dataelement for EMAIL in table ADR6 and give that

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

Read only

0 Likes
1,326

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?

Read only

0 Likes
1,326

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

[email protected]

Read only

Former Member
0 Likes
1,326

<b>ADR6-SMTP_ADDR</b>

Greetings,

Blag.

Read only

suresh_datti
Active Contributor
0 Likes
1,326

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

~Suresh

Read only

former_member194669
Active Contributor
0 Likes
1,326

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

Read only

Laxmana_Appana_
Active Contributor
0 Likes
1,326

Hi,

Check this FM : EDIT_TEXT_INLINE

Regards

L Appana