<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to insert hyperlinks in email generated from Workflow in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-hyperlinks-in-email-generated-from-workflow/m-p/6108994#M1361824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all you need to  create custom function module to send mail that contains HTML data for that you can function module   SO_DOCUMENT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create the HTML page for the email format for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;lt;html&amp;amp;gt;&lt;/P&gt;&lt;P&gt;&amp;amp;lt;body&amp;amp;gt;&lt;/P&gt;&lt;P&gt;60001226 has submitted Purchase Order 4500169047 for your Approval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;lt;/body&amp;amp;gt;&lt;/P&gt;&lt;P&gt;&amp;amp;lt;/html&amp;amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Code the above created  HTML page format  in the ABAP as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  for eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; *"Body of mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;amp;lt;html&amp;amp;gt; TO li_object_content.&lt;/P&gt;&lt;P&gt;  &amp;amp;lt;body&amp;amp;gt; TO li_object_content.&lt;/P&gt;&lt;P&gt;  CLEAR lw_object_content.&lt;/P&gt;&lt;P&gt;  CONCATENATE iv_buyer_id  text-003  iv_buyer_name  text-004  INTO lw_object_content SEPARATED BY space.&lt;/P&gt;&lt;P&gt;  APPEND lw_object_content  TO li_object_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iv_buyer_id is a variable for dynamic data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code the complete page like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the packing list pass doc type as HTM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Call the above created funcition module with receivers using workflow step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. For implementing approval or rejection by clicking you need to create the function module with webservice.&lt;/P&gt;&lt;P&gt;   When user clicks the hyperlink the webservice is called for approval or rejection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harpreet Singh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harpreet Singh Bhuee on Sep 17, 2009 12:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2009 10:42:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-17T10:42:36Z</dc:date>
    <item>
      <title>How to insert hyperlinks in email generated from Workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-hyperlinks-in-email-generated-from-workflow/m-p/6108993#M1361823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a requierement where in we need to send an email to approver based on status change in the transaction. For eg, when the status is changed from Inprogress to "to be approved, an email should be sent automatically to the approver. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Approver should have the flexibility to approve/reject the request by selecting the hyperlinks in the email.&lt;/P&gt;&lt;P&gt;Can some ohe guide us on how to achieve this functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Udaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 07:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-hyperlinks-in-email-generated-from-workflow/m-p/6108993#M1361823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-17T07:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert hyperlinks in email generated from Workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-hyperlinks-in-email-generated-from-workflow/m-p/6108994#M1361824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all you need to  create custom function module to send mail that contains HTML data for that you can function module   SO_DOCUMENT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create the HTML page for the email format for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;lt;html&amp;amp;gt;&lt;/P&gt;&lt;P&gt;&amp;amp;lt;body&amp;amp;gt;&lt;/P&gt;&lt;P&gt;60001226 has submitted Purchase Order 4500169047 for your Approval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;lt;/body&amp;amp;gt;&lt;/P&gt;&lt;P&gt;&amp;amp;lt;/html&amp;amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Code the above created  HTML page format  in the ABAP as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  for eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; *"Body of mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;amp;lt;html&amp;amp;gt; TO li_object_content.&lt;/P&gt;&lt;P&gt;  &amp;amp;lt;body&amp;amp;gt; TO li_object_content.&lt;/P&gt;&lt;P&gt;  CLEAR lw_object_content.&lt;/P&gt;&lt;P&gt;  CONCATENATE iv_buyer_id  text-003  iv_buyer_name  text-004  INTO lw_object_content SEPARATED BY space.&lt;/P&gt;&lt;P&gt;  APPEND lw_object_content  TO li_object_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iv_buyer_id is a variable for dynamic data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code the complete page like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the packing list pass doc type as HTM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Call the above created funcition module with receivers using workflow step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. For implementing approval or rejection by clicking you need to create the function module with webservice.&lt;/P&gt;&lt;P&gt;   When user clicks the hyperlink the webservice is called for approval or rejection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harpreet Singh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harpreet Singh Bhuee on Sep 17, 2009 12:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 10:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-hyperlinks-in-email-generated-from-workflow/m-p/6108994#M1361824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-17T10:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert hyperlinks in email generated from Workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-hyperlinks-in-email-generated-from-workflow/m-p/6108995#M1361825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;constants : lc_htm type string value 'HTM',&lt;/P&gt;&lt;P&gt;              lc_x(1) type c value 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lw_document_data  TYPE sodocchgi1,&lt;/P&gt;&lt;P&gt;        lw_object_content TYPE solisti1,&lt;/P&gt;&lt;P&gt;        lw_packing_list   TYPE sopcklsti1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: li_object_content TYPE STANDARD TABLE OF solisti1,&lt;/P&gt;&lt;P&gt;        li_packing_list   TYPE STANDARD TABLE OF sopcklsti1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"Packing list for main document&lt;/P&gt;&lt;P&gt;  CLEAR   lw_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FREE li_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE: 1              TO lw_packing_list-head_start,&lt;/P&gt;&lt;P&gt;        0              TO lw_packing_list-head_num,&lt;/P&gt;&lt;P&gt;        1              TO lw_packing_list-body_start,&lt;/P&gt;&lt;P&gt;        lw_tab_lines   TO lw_packing_list-body_num,&lt;/P&gt;&lt;P&gt;        lc_htm          TO lw_packing_list-doc_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND lw_packing_list TO li_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"Function module to send email&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_data              = lw_document_data&lt;/P&gt;&lt;P&gt;      put_in_outbox              = lc_x&lt;/P&gt;&lt;P&gt;      commit_work                = lc_x&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list               = li_packing_list&lt;/P&gt;&lt;P&gt;      contents_txt               = li_object_content&lt;/P&gt;&lt;P&gt;      receivers                  = it_receivers&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;      document_not_sent          = 2&lt;/P&gt;&lt;P&gt;      document_type_not_exist    = 3&lt;/P&gt;&lt;P&gt;      operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;      parameter_error            = 5&lt;/P&gt;&lt;P&gt;      x_error                    = 6&lt;/P&gt;&lt;P&gt;      enqueue_error              = 7&lt;/P&gt;&lt;P&gt;      OTHERS                     = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harpreet Singh Bhuee on Sep 17, 2009 12:54 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 10:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-hyperlinks-in-email-generated-from-workflow/m-p/6108995#M1361825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-17T10:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert hyperlinks in email generated from Workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-hyperlinks-in-email-generated-from-workflow/m-p/6108996#M1361826</link>
      <description>&lt;P&gt;thank you!&lt;/P&gt;&lt;P&gt; wa_objpack-doc_type = '&lt;STRONG&gt;HTM&lt;/STRONG&gt;'."'RAW'.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 05:09:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-hyperlinks-in-email-generated-from-workflow/m-p/6108996#M1361826</guid>
      <dc:creator>former_member365150</dc:creator>
      <dc:date>2020-12-03T05:09:30Z</dc:date>
    </item>
  </channel>
</rss>

