on 09-23-2009 10:16 AM
Hi,
Emails are generated through WD4A. The email has an URL Link along with the text. How to provide
an on click option to the URl ?? I am looking in TC: SOST for generated e-mails.Any suggestion pls.
Thanks,
Kumar.
hi Kumar ,
u cn use the LTU ( link to URL ) UI element instead to send emails :
1)bind the "reference" and "target" property of ur Link to URL UI element to context attribute eg mailto
of type string.suppose u have created under node cn_mail of cardinality 1..1
2) u have to send mail to a email id , whcih is contained in a variable lv_sendto of type string
so do concatenation like
CONCATENATE 'mailto:' lv_sendto into lv_sendto .
3) set the context attribute mailto to lv_sendto
..
DATA : lo_nd_cn_mail TYPE REF TO if_wd_context_node ,
lo_el_cn_mail TYPE REF TO if_wd_context_element ,
ls_cn_mail TYPE wd_this->element_cn_mail ,
lv_mailto LIKE ls_cn_mail-mailto.
* navigate from <CONTEXT> to <CN_MAIL> via lead selection
lo_nd_cn_mail = wd_context->get_child_node(
name = wd_this->wdctx_cn_mail ).
* get element via lead selection
lo_el_cn_mail = lo_nd_cn_mail->get_element( ).
* get single attribute
lo_el_cn_mail->set_attribute(
EXPORTING
name = `MAILTO`
value = lv_sendto ).
I hope it wud help u
rgds,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For one I don't really see how this is a Web Dynpro ABAP question. It sounds like you want to know how to generate an HTML based email. This is something that belongs in ABAP general.
If you really want a link in the body of your email, then the email needs to be HTML based and not plain text.
Also consider the usage of the CL_BCS classes for sending email instead of the older 4.6 based function modules.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you used the LinkToURL UI element and gave the reference as URL.
Can you be more clear...
Regards,
Lekha.
Edited by: Lekha on Sep 23, 2009 3:02 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lekha,
Am using the following code to generate the emails. Not using any UI elements .
Data: lt_objtxt type table of solisti1.
wa_objtxt = 'http://test.................................'. <-- URL link
append wa_objtxt to lt_objtxt.
*then using the fm
*Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = lt_objpack
object_header = lt_objhead
contents_bin = lt_objbin
contents_txt = lt_objtxt
receivers = lt_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
Regards,
Kumar
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.