04-18-2007 6:26 PM
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.
04-18-2007 6:40 PM
chk the dataelement for EMAIL in table ADR6 and give that
parameters : V_email like ADR6-SMT... "<-- not sure check it
04-18-2007 7:13 PM
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?
04-23-2007 8:12 PM
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
04-18-2007 7:14 PM
04-18-2007 7:29 PM
I guess you will need an EDITOR call.. something like CALL FUNCTION 'RH_EDITOR_GET' ..
~Suresh
04-18-2007 7:45 PM
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
04-18-2007 8:49 PM