<?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: outlook issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289632#M1532604</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;Hi use Object oriented to sedn mails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the class CL_BCS is used to send mails.&lt;/P&gt;&lt;P&gt;you can search on SDN you will get a lot of info in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; call function 'SCMS_XSTRING_TO_BINARY'
    exporting
      buffer     = v_fpformoutput-pdf  "PDF file from function module
    tables
      binary_tab = v_att_content_hex.
  try.
      refresh t_message_body.
*---Message body and subject
      append text-001 to t_message_body.
      append ' ' to t_message_body.
      append text-002
      to t_message_body.
      append ' ' to t_message_body.
      append text-003 to t_message_body.

*---Creates an Office Document
      o_document = cl_document_bcs=&amp;gt;create_document(
      i_type = c_raw
      i_text = t_message_body
      i_subject = text-004 ).

      try.
          o_document-&amp;gt;add_attachment(
          exporting
          i_attachment_type = c_pdf
          i_attachment_subject = text-004
          i_att_content_hex = v_att_content_hex ).
        catch cx_document_bcs into o_document_bcs.
          clear v_msg.
          v_msg = o_document_bcs-&amp;gt;get_text( ).
          write : text-006,v_msg.
      endtry.

      o_send_request = cl_bcs=&amp;gt;create_persistent( ).

*---Add attachment
*---Pass the document to send request
      o_send_request-&amp;gt;set_document( o_document ).

*---Create sender
      o_sender = cl_cam_address_bcs=&amp;gt;create_internet_address( p_send ).

*---Set sender
      o_send_request-&amp;gt;set_sender(
      exporting
      i_sender = o_sender ).

*---Create recipient
      o_recipient = cl_cam_address_bcs=&amp;gt;create_internet_address( p_rece ).

*---Set recipient
      o_send_request-&amp;gt;add_recipient(
      exporting
      i_recipient = o_recipient
      i_express = c_x ).
      o_send_request-&amp;gt;add_recipient( o_recipient ).

**---Send email

                call method o_send_request-&amp;gt;send
                  exporting
                    i_with_error_screen = c_x
                  receiving
                    result              = v_result
                    .
      commit work.
  if v_result = 'X'.
  message text-008 type 'I'.
 endif.
*---Catch exceptions
    catch cx_bcs into o_bcs_exception.

      v_msg = o_bcs_exception-&amp;gt;get_text( ).
      write : text-006,v_msg.
  endtry. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Oct 2010 09:55:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-04T09:55:21Z</dc:date>
    <item>
      <title>outlook issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289629#M1532601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI THIS IS SAROJ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am facing issues regarding sending mails from SAP to non sap.my requirement is mail has to be sent from SAP TO NON SAP&lt;/P&gt;&lt;P&gt;I.E ANY NON SAP MAIL BOX(YOUR COMP MAIL BOX).I AM TRYING THIS CODE BUT I AM NOT GETTING THE OUTPUT.&lt;/P&gt;&lt;P&gt;DATA: ld_uid TYPE char20,       "Unique Indentifier&lt;/P&gt;&lt;P&gt;      ls_soli TYPE soli,        "Work area for E mail&lt;/P&gt;&lt;P&gt;      lt_soli TYPE soli_tab.    "Table for Email&lt;/P&gt;&lt;P&gt;CONCATENATE i_recipient-objid i_bus_transaction_info-objid INTO ld_uid.&lt;/P&gt;&lt;P&gt;CONDENSE ld_uid.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calendar logic begin&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_soli-line = 'BEGIN:VCALENDAR'.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;P&gt;ls_soli-line = 'PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN'.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;P&gt;ls_soli-line = 'VERSION:2.0'.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF i_notif_type EQ 'BUCH'. " Abbr for the course booking&lt;/P&gt;&lt;P&gt;ls_soli-line = 'METHOD:REQUEST'.&lt;/P&gt;&lt;P&gt;ELSEIF i_notif_type EQ 'DELVORM'. "Course Cancellation&lt;/P&gt;&lt;P&gt;ls_soli-line = 'METHOD:CANCEL'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;P&gt;ls_soli-line = 'BEGIN:VEVENT'.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'UID:' ld_uid INTO ls_soli-line.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the Sequnce number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_soli-line = 'SEQUENCE:1'.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;P&gt;CLEAR ls_soli-line.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Email ID of the sender&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_soli-line = 'ORGANIZER:send@...'.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;P&gt;CLEAR ls_soli-line.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the Time Stamp&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CONCATENATE 'DTSTART:' sy-datum 'T080000Z' INTO ls_soli-line.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;P&gt;CONCATENATE 'DTEND:' sy-datum 'T100000Z' INTO ls_soli-line.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the Location of the course&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_soli-line = 'LOCATION: This is Course Location'.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This Would appear in Calender file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_soli-line = 'DESCRIPTION: Course Participation'.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;P&gt;CONCATENATE 'SUMMARY: Course Participation for '&amp;amp;Give Participant Name&amp;amp;' INTO ls_soli-line SEPARATED BY space.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;P&gt;ls_soli-line = 'END:VEVENT'.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;P&gt;ls_soli-line = 'END:VCALENDAR'.&lt;/P&gt;&lt;P&gt;APPEND ls_soli TO lt_soli.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Convert the data to Txt format&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'SO_RAW_TO_RTF'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;objcont_old = lt_soli[]&lt;/P&gt;&lt;P&gt;objcont_new = e_contents_txt.&lt;/P&gt;&lt;P&gt;e_no_add = space.&lt;/P&gt;&lt;P&gt;e_doc_type = 'ICS'.&lt;/P&gt;&lt;P&gt;e_obj_descr = 'Name of the Calender file'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN ANY BODY PLEASE PROVIDE ME SOME SAMPLE CODES.WAITING FOR RESPONSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAROJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 09:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289629#M1532601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T09:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: outlook issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289630#M1532602</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;Refer the wiki, [Sending Mails |http://wiki.sdn.sap.com/wiki/display/ABAP/Sending&lt;EM&gt;Mails&lt;/EM&gt;-&lt;EM&gt;Home&lt;/EM&gt;Page] for all mail sending related queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 09:46:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289630#M1532602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T09:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: outlook issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289631#M1532603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Saroj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No where in your code have you used any function to send the mail. The function SO_RAW_TO_RTF will not send any mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For sending the mails you can use the function SO_NEW_DOCUMENT_ATT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the usage of this function, you can search SDN and you will get loads of examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 09:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289631#M1532603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T09:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: outlook issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289632#M1532604</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;Hi use Object oriented to sedn mails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the class CL_BCS is used to send mails.&lt;/P&gt;&lt;P&gt;you can search on SDN you will get a lot of info in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; call function 'SCMS_XSTRING_TO_BINARY'
    exporting
      buffer     = v_fpformoutput-pdf  "PDF file from function module
    tables
      binary_tab = v_att_content_hex.
  try.
      refresh t_message_body.
*---Message body and subject
      append text-001 to t_message_body.
      append ' ' to t_message_body.
      append text-002
      to t_message_body.
      append ' ' to t_message_body.
      append text-003 to t_message_body.

*---Creates an Office Document
      o_document = cl_document_bcs=&amp;gt;create_document(
      i_type = c_raw
      i_text = t_message_body
      i_subject = text-004 ).

      try.
          o_document-&amp;gt;add_attachment(
          exporting
          i_attachment_type = c_pdf
          i_attachment_subject = text-004
          i_att_content_hex = v_att_content_hex ).
        catch cx_document_bcs into o_document_bcs.
          clear v_msg.
          v_msg = o_document_bcs-&amp;gt;get_text( ).
          write : text-006,v_msg.
      endtry.

      o_send_request = cl_bcs=&amp;gt;create_persistent( ).

*---Add attachment
*---Pass the document to send request
      o_send_request-&amp;gt;set_document( o_document ).

*---Create sender
      o_sender = cl_cam_address_bcs=&amp;gt;create_internet_address( p_send ).

*---Set sender
      o_send_request-&amp;gt;set_sender(
      exporting
      i_sender = o_sender ).

*---Create recipient
      o_recipient = cl_cam_address_bcs=&amp;gt;create_internet_address( p_rece ).

*---Set recipient
      o_send_request-&amp;gt;add_recipient(
      exporting
      i_recipient = o_recipient
      i_express = c_x ).
      o_send_request-&amp;gt;add_recipient( o_recipient ).

**---Send email

                call method o_send_request-&amp;gt;send
                  exporting
                    i_with_error_screen = c_x
                  receiving
                    result              = v_result
                    .
      commit work.
  if v_result = 'X'.
  message text-008 type 'I'.
 endif.
*---Catch exceptions
    catch cx_bcs into o_bcs_exception.

      v_msg = o_bcs_exception-&amp;gt;get_text( ).
      write : text-006,v_msg.
  endtry. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 09:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289632#M1532604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T09:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: outlook issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289633#M1532605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;abhii,&lt;/P&gt;&lt;P&gt;          the code i have given there 'ld_uid' varible refers to which table or structure  &lt;/P&gt;&lt;P&gt;                                                      ' i_notif_type' refers to which table or structure  that i could not find out.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;        i have TO send the mail from SAP TO NON SAP WHICH SHOULD BE RECIEVED IN OUTLOOK FORMAT.THAT IS MY REQUIREMENT.PLZ GIVE ME SOME SAMPLE CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAROJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 10:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289633#M1532605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T10:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: outlook issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289634#M1532606</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;If I see your code, You have defined &lt;STRONG&gt;ld_uid&lt;/STRONG&gt; of type &lt;STRONG&gt;char20&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the link I have provided for the sample code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 11:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289634#M1532606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T11:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: outlook issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289635#M1532607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 14:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outlook-issue/m-p/7289635#M1532607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T14:05:37Z</dc:date>
    </item>
  </channel>
</rss>

