<?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: Email issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485619#M1556757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For issue 1, you can use FM CONVERT_ITF_TO_STREAM_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Issue 2, use HTML as suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Nov 2010 07:48:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-24T07:48:21Z</dc:date>
    <item>
      <title>Email issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485614#M1556752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing below issue while sending a email...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.I have to show order long text in email .For reading long text iam using FM:READ_TEXT.&lt;/P&gt;&lt;P&gt;   If in long text '&amp;amp;'  is used then READ_TEXT is returing it has &amp;lt;(&amp;gt;&amp;amp;&amp;lt;)&amp;gt;.&lt;/P&gt;&lt;P&gt;e.g. if long text is : test &amp;amp; test  then READ_TEXT is returning test &amp;lt;(&amp;gt;&amp;amp;&amp;lt;)&amp;gt; test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.When iam checking email in SOST transaction its showing me email content in the format i need &lt;/P&gt;&lt;P&gt;ORDer no.:...&lt;/P&gt;&lt;P&gt;decription:..&lt;/P&gt;&lt;P&gt;operation :....&lt;/P&gt;&lt;P&gt;operation description:...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when iam checking the mail in my inbox(Microsoft offcie outlook) the content is getting wrapped&lt;/P&gt;&lt;P&gt;ORDer no.:...&lt;/P&gt;&lt;P&gt;decription:..operation :....operation description:...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines from now on.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Nov 24, 2010 1:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 04:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485614#M1556752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T04:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Email issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485615#M1556753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u please let me know the piece of code u writing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 04:38:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485615#M1556753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T04:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Email issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485616#M1556754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For point 1:&lt;/P&gt;&lt;P&gt;Im using       &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ALM_NOTIF_GET_DETAIL'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          number             = lv_qmnum1&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          notifheader_export = lt_header_notif&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          notlongtxt         = lt_long_text&lt;/P&gt;&lt;P&gt;          notifpartnr        = lt_partner1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this read notification details..along with notification long text...&lt;/P&gt;&lt;P&gt;i have checked this BAPI inside it FM:READ_TEXT is called to read the long text....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pbhosey on Nov 24, 2010 6:01 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 05:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485616#M1556754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T05:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Email issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485617#M1556755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for point 2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Read the email body from standard text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          REFRESH : l_t_lines.&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              client   = sy-mandt&lt;/P&gt;&lt;P&gt;              id       = l_c_st&lt;/P&gt;&lt;P&gt;              language = l_c_e&lt;/P&gt;&lt;P&gt;              name     = 'ZITSE_EMAIL_PERNR'&lt;/P&gt;&lt;P&gt;              object   = l_c_text&lt;/P&gt;&lt;P&gt;            TABLES&lt;/P&gt;&lt;P&gt;              lines    = l_t_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          IF l_t_lines IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;            CLEAR : l_v_endline.&lt;/P&gt;&lt;P&gt;            DESCRIBE TABLE l_t_lines LINES l_v_endline.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                To convert Text symbols into dynamic values in standard text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          CLEAR : l_v_string.&lt;/P&gt;&lt;P&gt;          REFRESH : l_t_body_txt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          DO l_v_endline TIMES.&lt;/P&gt;&lt;P&gt;            CLEAR : l_wa_lines.&lt;/P&gt;&lt;P&gt;            READ TABLE l_t_lines INDEX sy-index INTO l_wa_lines.&lt;/P&gt;&lt;P&gt;            IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;              MOVE l_wa_lines-tdline TO l_v_string.&lt;/P&gt;&lt;P&gt;              REPLACE ALL OCCURRENCES OF '&amp;amp;AUFNR&amp;amp;' IN l_v_string WITH l_wa_email_data-aufnr.  "Order no.&lt;/P&gt;&lt;P&gt;              REPLACE ALL OCCURRENCES OF '&amp;amp;KTEXT&amp;amp;' IN l_v_string WITH l_wa_email_data-ktext.  "order description&lt;/P&gt;&lt;P&gt;              REPLACE ALL OCCURRENCES OF '&amp;amp;VORNR&amp;amp;' IN l_v_string WITH l_wa_email_data-vornr.  "operation no.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If sub operation exits then then sub-operation short text will be same as operation short text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              IF l_v_subflag IS NOT INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               If subopration is present then addign the suboperations fiedls to email body&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                REPLACE ALL OCCURRENCES OF '&amp;amp;UVORN&amp;amp;' IN l_v_string WITH l_wa_email_data-uvorn.&lt;/P&gt;&lt;P&gt;                REPLACE ALL OCCURRENCES OF '&amp;amp;DESC&amp;amp;' IN l_v_string WITH l_wa_email_data-ltxa1.&lt;/P&gt;&lt;P&gt;                REPLACE ALL OCCURRENCES OF '&amp;amp;LTXA1&amp;amp;' IN l_v_string WITH l_c_space.&lt;/P&gt;&lt;P&gt;              ELSE.&lt;/P&gt;&lt;P&gt;                REPLACE ALL OCCURRENCES OF '&amp;amp;UVORN&amp;amp;' IN l_v_string WITH l_c_space.&lt;/P&gt;&lt;P&gt;                REPLACE ALL OCCURRENCES OF '&amp;amp;DESC&amp;amp;' IN l_v_string WITH l_c_space.&lt;/P&gt;&lt;P&gt;                REPLACE ALL OCCURRENCES OF '&amp;amp;LTXA1&amp;amp;' IN l_v_string WITH l_wa_email_data-ltxa1.&lt;/P&gt;&lt;P&gt;              ENDIF.&lt;/P&gt;&lt;P&gt;              REPLACE ALL OCCURRENCES OF '&amp;amp;PARNR&amp;amp;' IN l_v_string WITH l_v_parnr.              "service coodinator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              IF l_v_ltrmn IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;                REPLACE ALL OCCURRENCES OF '&amp;amp;LTRMN&amp;amp;' IN l_v_string WITH l_v_ltrmn.              "required end date&lt;/P&gt;&lt;P&gt;              ELSE.&lt;/P&gt;&lt;P&gt;                REPLACE ALL OCCURRENCES OF '&amp;amp;LTRMN&amp;amp;' IN l_v_string WITH l_c_space.              "required end date&lt;/P&gt;&lt;P&gt;              ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; To get the first name of personel assigned&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              CLEAR l_wa_pernr.&lt;/P&gt;&lt;P&gt;              READ  TABLE l_t_pernr INTO l_wa_pernr WITH KEY pernr = l_wa_email_data-pernr.&lt;/P&gt;&lt;P&gt;              IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;                CONCATENATE l_wa_pernr-vorna ',' INTO l_wa_pernr-vorna.&lt;/P&gt;&lt;P&gt;                REPLACE ALL OCCURRENCES OF '&amp;amp;USER&amp;amp;' IN l_v_string WITH l_wa_pernr-vorna.      "recipient name&lt;/P&gt;&lt;P&gt;              ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              MOVE l_v_string TO l_wa_body_txt-line.&lt;/P&gt;&lt;P&gt;              APPEND l_wa_body_txt TO l_t_body_txt.&lt;/P&gt;&lt;P&gt;            ENDIF.&lt;/P&gt;&lt;P&gt;          ENDDO.&lt;/P&gt;&lt;P&gt;          IF l_t_body_txt[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;            if l_v_subflag = l_c_x.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; If sub-operation flag is set then remove the operation description text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            DELETE l_t_body_txt WHERE LINE EQ l_c_opdes.&lt;/P&gt;&lt;P&gt;            else.&lt;/P&gt;&lt;P&gt;*Else remove the sub-operation no. and sub-operation description text&lt;/P&gt;&lt;P&gt;              DELETE l_t_body_txt WHERE LINE EQ l_c_subop.&lt;/P&gt;&lt;P&gt;              DELETE l_t_body_txt WHERE LINE EQ l_c_subopdes.&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;*-----Email sending&lt;/P&gt;&lt;P&gt;*preparing email body&lt;/P&gt;&lt;P&gt;          CLEAR l_wa_document.&lt;/P&gt;&lt;P&gt;          REFRESH l_t_document.&lt;/P&gt;&lt;P&gt;          MOVE l_t_body_txt TO l_wa_document-content_text.&lt;/P&gt;&lt;P&gt;          MOVE l_v_subject TO l_wa_document-subject.&lt;/P&gt;&lt;P&gt;          APPEND l_wa_document TO l_t_document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CLEAR l_o_document.&lt;/P&gt;&lt;P&gt;          TRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              CLEAR l_o_send_request.&lt;/P&gt;&lt;P&gt;*" Create persistent send request&lt;/P&gt;&lt;P&gt;              MOVE cl_bcs=&amp;gt;create_persistent( ) TO l_o_send_request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              UNASSIGN &amp;lt;fs_document&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              LOOP AT l_t_document ASSIGNING &amp;lt;fs_document&amp;gt;.&lt;/P&gt;&lt;P&gt;                IF sy-tabix EQ 1.&lt;/P&gt;&lt;P&gt;*" Create Document.&lt;/P&gt;&lt;P&gt;                  MOVE cl_document_bcs=&amp;gt;create_document(&lt;/P&gt;&lt;P&gt;                                                         i_type    = l_c_raw&lt;/P&gt;&lt;P&gt;                                                         i_text    = &amp;lt;fs_document&amp;gt;-content_text&lt;/P&gt;&lt;P&gt;                                                         i_subject = &amp;lt;fs_document&amp;gt;-subject&lt;/P&gt;&lt;P&gt;                                                        )&lt;/P&gt;&lt;P&gt;                                                     TO l_o_document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                ENDIF.&lt;/P&gt;&lt;P&gt;              ENDLOOP.&lt;/P&gt;&lt;P&gt;*" Set Subject of Email&lt;/P&gt;&lt;P&gt;              TRY.&lt;/P&gt;&lt;P&gt;                  CALL METHOD l_o_send_request-&amp;gt;set_message_subject&lt;/P&gt;&lt;P&gt;                    EXPORTING&lt;/P&gt;&lt;P&gt;                      ip_subject = l_v_subject.&lt;/P&gt;&lt;P&gt;                CATCH cx_sy_dyn_call_illegal_method.&lt;/P&gt;&lt;P&gt;              ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" Add document to send request&lt;/P&gt;&lt;P&gt;              CALL METHOD l_o_send_request-&amp;gt;set_document( l_o_document ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Sender&lt;/P&gt;&lt;P&gt;              CLEAR : l_o_sender.&lt;/P&gt;&lt;P&gt;              MOVE cl_cam_address_bcs=&amp;gt;create_internet_address( l_v_sender ) TO l_o_sender.&lt;/P&gt;&lt;P&gt;              CALL METHOD l_o_send_request-&amp;gt;set_sender&lt;/P&gt;&lt;P&gt;                EXPORTING&lt;/P&gt;&lt;P&gt;                  i_sender = l_o_sender.&lt;/P&gt;&lt;P&gt;*Recever&lt;/P&gt;&lt;P&gt;              CLEAR l_wa_pernr.&lt;/P&gt;&lt;P&gt;              READ TABLE l_t_pernr INTO l_wa_pernr&lt;/P&gt;&lt;P&gt;                   WITH KEY pernr = l_wa_email_data-pernr.&lt;/P&gt;&lt;P&gt;              IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;                MOVE l_wa_pernr-usrid_long TO  l_o_receiver_email_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" Add recipient (e-mail address)&lt;/P&gt;&lt;P&gt;                CLEAR : l_o_recipient.&lt;/P&gt;&lt;P&gt;                MOVE cl_cam_address_bcs=&amp;gt;create_internet_address(&lt;/P&gt;&lt;P&gt;                                                                  l_o_receiver_email_id&lt;/P&gt;&lt;P&gt;                                                                 )&lt;/P&gt;&lt;P&gt;                                                              TO l_o_recipient.&lt;/P&gt;&lt;P&gt;*" Add recipient with its respective attributes to send request&lt;/P&gt;&lt;P&gt;                CALL METHOD l_o_send_request-&amp;gt;add_recipient&lt;/P&gt;&lt;P&gt;                  EXPORTING&lt;/P&gt;&lt;P&gt;                    i_recipient = l_o_recipient.&lt;/P&gt;&lt;P&gt;              ENDIF.&lt;/P&gt;&lt;P&gt;              CLEAR l_o_sent_to_all.&lt;/P&gt;&lt;P&gt;*" Send document&lt;/P&gt;&lt;P&gt;              CALL METHOD l_o_send_request-&amp;gt;send(&lt;/P&gt;&lt;P&gt;                EXPORTING&lt;/P&gt;&lt;P&gt;                  i_with_error_screen = l_c_x&lt;/P&gt;&lt;P&gt;                RECEIVING&lt;/P&gt;&lt;P&gt;                  result              = l_o_sent_to_all ).&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;          ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pbhosey on Nov 24, 2010 6:03 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 05:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485617#M1556755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T05:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Email issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485618#M1556756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use html tag for the alignment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1975532"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 05:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485618#M1556756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T05:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Email issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485619#M1556757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For issue 1, you can use FM CONVERT_ITF_TO_STREAM_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Issue 2, use HTML as suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 07:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-issue/m-p/7485619#M1556757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T07:48:21Z</dc:date>
    </item>
  </channel>
</rss>

