URL in decision task description
Read, Tony
Tony.Read at woodside.com.au
Thu Sep 11 03:13:07 EDT 2008
Sorry can't help you there use are using WebDympro, for the workitem,
for another reason (requires input fields). But I had thee same problem
before this.
Regards
Anthony Read
SAP ABAP Consultant
Woodside SAP Services
Tel +61 (08) 9348 4428
Fax +61 (08) 9348 5387
Anthony.read at woodside.com.au
________________________________
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Serge Boulay
Sent: Thursday, 11 September 2008 3:01 PM
To: 'SAP Workflow Users' Group'
Subject: RE: URL in decision task description
Hi,
I am not trying to send an e-mail but rather to include, in the
description of a decision task, an hyperlink to a web page.
Thanks,
Serge
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Read, Tony
Sent: 11 septembre 2008 02:16
To: SAP Workflow Users' Group
Subject: RE: URL in decision task description
I have had the same problem. The functions that are used in the generic
Email for workflow have the option of TEXT and you cannot change it to
HTML. I have to create my own method to send an email and then link it
to a task
See below
method SEND_FAC_EMAIL.
TYPES:
ty_tab_soli TYPE bcsy_text.
data:
lcl_send_request TYPE REF TO cl_bcs,
lcl_document TYPE REF TO cl_document_bcs,
lcl_sender TYPE REF TO cl_sapuser_bcs,
lcl_recipient TYPE REF TO cl_cam_address_bcs,
l_subject_text TYPE so_obj_des,
lt_message TYPE ty_tab_soli,
l_uname TYPE syuname,
ls_message LIKE LINE OF lt_message,
lt_urls TYPE ZFIMT_URL_LINK,
ls_url TYPE ZFIMS_URL_LINK.
* Create the document title
CONCATENATE text-m01 me->wa_impr-posid
INTO l_subject_text
SEPARATED BY space.
* Build the message body
CLEAR ls_message.
CONCATENATE text-m02 '</br>' INTO ls_message.
REPLACE '&' in ls_message with me->wa_impr-posid .
APPEND ls_message TO lt_message.
CLEAR ls_message.
CONCATENATE text-m03 '</br></br>' INTO ls_message.
REPLACE '&' in ls_message with me->g_revision.
APPEND ls_message TO lt_message.
CLEAR ls_message.
CONCATENATE '<h3>' text-m04 '</h3></br>' INTO ls_message.
APPEND ls_message TO lt_message.
ls_message = '<table><thead></thead><tbody>'.
APPEND ls_message TO lt_message.
CLEAR ls_message.
CONCATENATE '<tr><td>' text-m05 '</td><td></td>' INTO ls_message.
APPEND ls_message TO lt_message.
CLEAR ls_message.
CONCATENATE '<td><b>' me->wa_impr-posid ' - ' me->g_afe_desc
'</b></td></tr>' INTO ls_message.
APPEND ls_message TO lt_message.
CLEAR ls_message.
CONCATENATE '<tr><td>' text-m06 '</td><td></td>' INTO ls_message.
APPEND ls_message TO lt_message.
CLEAR ls_message.
CONCATENATE '<td><b>' me->G_AFE_VALUE '</b></td></tr>' INTO ls_message.
APPEND ls_message TO lt_message.
CLEAR ls_message.
CONCATENATE '<tr><td>' text-m07 '</td><td></td>' INTO ls_message.
APPEND ls_message TO lt_message.
CLEAR ls_message.
CONCATENATE '<td><b>' me->G_CONTACT_NAME '</b></td></tr>' INTO
ls_message.
APPEND ls_message TO lt_message.
ls_message = '</tbody></table></br></br>'.
APPEND ls_message TO lt_message.
CLEAR ls_message.
CONCATENATE text-m08 '</br>' INTO ls_message.
APPEND ls_message TO lt_message.
* Now display the URL links
CALL METHOD me->reformat_urls
EXPORTING
i_raw_urls = i_urls
IMPORTING
e_new_urls = lt_urls.
loop at lt_urls into ls_url.
CLEAR ls_message.
CONCATENATE ls_url '</br>' INTO ls_message.
APPEND ls_message TO lt_message.
ENDLOOP.
TRY.
* Create a send request object
lcl_send_request = cl_bcs=>create_persistent( ).
* Create message text
lcl_document = cl_document_bcs=>create_document( i_type = 'HTM'"#EC
NOTEXT
i_text = lt_message
i_subject =
l_subject_text ).
* Add document to the send request
lcl_send_request->set_document( lcl_document ).
* Set the sender
l_uname = cl_abap_syst=>get_user_name( ).
lcl_sender = cl_sapuser_bcs=>create( l_uname ).
lcl_send_request->set_sender( i_sender = lcl_sender ).
* Add recipient
lcl_recipient = cl_cam_address_bcs=>create_internet_address( i_email
).
lcl_send_request->add_recipient( i_recipient = lcl_recipient
i_express = zcl_zca_common=>c_true
).
* Send document
lcl_send_request->send( ).
commit work.
ENDTRY.
endmethod.
Regards
Anthony Read
SAP ABAP Consultant
Woodside SAP Services
Tel +61 (08) 9348 4428
Fax +61 (08) 9348 5387
Anthony.read at woodside.com.au
________________________________
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Serge Boulay
Sent: Thursday, 11 September 2008 12:00 PM
To: SAP Workflow Users' Group
Subject: URL in decision task description
Hi everyone,
I am trying to include a URL into a decision task description ( ex. <A
HREF="http://www.google.com <http://www.google.com> ">TEST LINK</A>) but
it always shows up as plain text in the UWL or the SAP Inbox.
How can i make it appear as a clickable text?
Thanks,
Serge
NOTICE: This email and any attachments are confidential.
They may contain legally privileged information or
copyright material. You must not read, copy, use or
disclose them without authorisation. If you are not an
intended recipient, please contact us at once by return
email and then delete both messages and all attachments.
NOTICE: This email and any attachments are confidential.
They may contain legally privileged information or
copyright material. You must not read, copy, use or
disclose them without authorisation. If you are not an
intended recipient, please contact us at once by return
email and then delete both messages and all attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20080911/76be9f55/attachment.htm
More information about the SAP-WUG
mailing list