External mail to SAP

HI,
I have a requuirement where users can send a mail to SAP server and upon receiving the mail, a program or workflow has to execute.
We can send mails from Sap to external mail...... how do we do this other way around.... external mail to SAP and how can we trigger the execution of a program upon receiving this mail.
Regards,
Tarun Bahal

Hello Tarun,
This can be done using Inbound Distribution
http://help.sap.com/saphelp_nw70/helpdata/EN/6c/69c2e3418d11d1896e0000e8322d00/frameset.htm
Check more details about Workflow on help.sap.com using Workflow you can also trigger processing of incoming documents.
The link i gave you has Workflow information too.
Regards,
Siddhesh

Similar Messages

  • How to send External mail in sap HR workflow

    Hi experts,
         Anybody con tell me how  to send External mail in sap HR workflow ?
    Regards,
    Umesh.

    Hello,
    Check the workflow builder. There is a step type of "Send mail". Just put that into your workflow definition, and your workflow will send mail.
    Regards,
    Karri

  • BASIS Configuration needed to send an external mail from SAP Program

    Can you please help me about the BASIS configuration needed to send an external mail from SAP Program?
    Regards,
    Subhasish

    Hi Subhasish,
    Please go thru the below link.
    Re: SCOT Configuration--for external mail
    Regards,
    Lakshman.

  • External mail from SAP

    Hi ABAPers,
    My program is trying to send external mail using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    I suppose there is some amount of customizing also involved in txn SCOT,in case any one has an idea about the same, please share the info across.
    Thanks in advance.

    Hi Tarun,
    Check the following link:-
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    these link will help u to config SCOT.
    And one more thing u have to do..
    Go to SE11 n open Table sxnodes in change mode.
    And change F_ESMTP field to false i.e. BLANK for the Field NODE = SMTP.\
    OR problem might me 1 of these as under:-
    1. In the exporting parameters of..FM use
    commit_work = 'X'.
    2. Check for Sy-subrc of FM..
    if sy-subrc = 0.
    SUBMIT rsconn01
    WITH mode EQ 'INT'
    AND RETURN.
    this report program is used to automatically send the e-mails that are pending in the job queue in SCOT or SOST.
    Hope this will work For U.
    Regards
    Sachin Dhingra

  • External Mail from SAP worflow

    We are using the standard SAP PO(BUS2012) workflow, which is activated when the PO release is to be effected.
    I am getting my mails in SAP inbox as desired. Now I want to send this same mail to an external email .  I donot want any background job to do it .. rather i want that whenever the SAP mail is generated also at the same time the external mail is also generated. Could any body help me to configure the same?
    Regards

    Hi Dipak,
    You can also use the approach in below links:
    Re: Send notification to E-Mail id
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/send%252ban%252bexternal%252bmail%252b%252bthrough%252bsap%252bbusiness%252bworkflow%252band%252brecievers%252baddress%252bin%252bcc
    Hope this helps!
    Regards,
    Saumya

  • External Mail To SAP Inbox

    Hi,
    Can one explain me How To send mail to SAP Inbox through externall mail id like abc( at )y a hoo.com  to SAP inbox ETC,
    IF POSSIBLE PLEASE EXPLAIN in detail. . .
    THANKS & REGARDS
    Priyanka M Jain

    Hi .
       Try this it might help you
    https://wiki.sdn.sap.com/wiki/display/Basis/SAP%20to%20send%20external%20mails
    Re: Unable to send mails from SCOT

  • Send External Mail from SAP

    Hi all,
    I have one ALV-report which has 64 columns.
    Now i want to send this report to external mail.
    I have already created a program for this but the problem is that my report contains 64 columns but only 30 columns is sending to external mail remaining data is not generating in excel sheet.

    first check o/p in spool t.code sp02
    o/p is having 64 columns or 30.

  • Sending external mail with excel attachment from SAP

    Hi All,
    I am trying to send a external mail from SAP. Mail is getting posted correctly with attachment having type excel. If attach file has more than 1 records then in mail it is coming in a single lines. it is not getting wrap.
    e.g. my attach internal table has records like LINE1
                                                                      LINE2
                                                                      LINE3
    output in attach excel file is : LINE1         LINE2          LINE3
    in attach file it should come line by line.
    source code of my function module is as follows :
    FUNCTION ZXI_SEND_MAIL_WITH_ATTACHMENT.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(SUBJECT) TYPE  SO_OBJ_DES OPTIONAL
    *"     REFERENCE(ATTACH_NAME1) TYPE  SOOD-OBJDES
    *"     REFERENCE(EXT1) TYPE  SOODK-OBJTP
    *"     REFERENCE(MAIL_ID) TYPE  ADR6-SMTP_ADDR
    *"  TABLES
    *"      IT_CONTENT TYPE  SOLI_TAB OPTIONAL
    *"      IT_ATTACH TYPE  SOLI_TAB OPTIONAL
      DATA: send_request       TYPE REF TO cl_bcs.
      DATA: document           TYPE REF TO cl_document_bcs.
      DATA: sender             TYPE REF TO cl_sapuser_bcs.
      DATA: recipient          TYPE REF TO if_recipient_bcs.
      DATA: exception_info     TYPE REF TO if_os_exception_info,
      bcs_exception      TYPE REF TO cx_document_bcs.
      DATA i_attachment_size TYPE sood-objlen.
    Creates persistent send request
      send_request = cl_bcs=>create_persistent( ).
      TRY.
    *****Create txt mail document**************************
          document = cl_document_bcs=>create_document(
                                        i_type    = 'RAW'
                                        i_text = it_content[]
                                        i_subject = subject ).
    **************Creates Attachment 1***********************
          CALL METHOD document->add_attachment
            EXPORTING
              i_attachment_type    = ext1
              i_attachment_subject = attach_name1
              i_att_content_text   = it_attach[].
    Add document to send request
          CALL METHOD send_request->set_document( document ).
    Get sender object
          sender = cl_sapuser_bcs=>create( sy-uname ).
    Add sender
          CALL METHOD send_request->set_sender
            EXPORTING
              i_sender = sender.
          recipient = cl_cam_address_bcs=>create_internet_address(
                               i_address_string = mail_id ).
          CALL METHOD send_request->add_recipient
            EXPORTING
              i_recipient  = recipient
              i_express    = 'U'
              i_copy       = ' '
              i_blind_copy = ' '
              i_no_forward = ' '.
    **********Trigger e-mails immediately****************************
          send_request->set_send_immediately( 'X' ).
          CALL METHOD send_request->send( ).
          COMMIT WORK.
        CATCH cx_document_bcs INTO bcs_exception.
      ENDTRY.
    ENDFUNCTION.
    please suggest me a solution and thanks in advance.
    Thanks&Regards,
    Sachin

    See the sample code  for sending attachment as Mail
    Mailing with Attachment by ABAP Coding  
    Refer this link:
    Mail with attachment.
    FORM send_list_to_basis .
      DATA: w_path      LIKE rlgrap OCCURS 0 WITH HEADER LINE,
            lt_index    TYPE sy-tabix,
            doc_type(3) TYPE c,
            descr       LIKE it_objpack_basis-obj_descr,
            temp_data   LIKE w_path,
            temp1       TYPE string,
            tab_lines   TYPE i,
            langu(15)   TYPE c,
            expirydate  TYPE so_obj_edt,
            L_FILE1(100).
      CONCATENATE 'C:\' sy-repid '_' sy-datum '.XLS' INTO L_FILE1.
      W_PATH-FILENAME = L_FILE1.
      APPEND w_path.
      CLEAR w_path.
      wa_doc_chng-obj_descr  = 'User List not logged on for 180 days'.
      wa_doc_chng-obj_langu  = 'E'.
      wa_doc_chng-obj_expdat = sy-datum.
      CLEAR w_subject.
      CONCATENATE 'Please find attached document with list of users'
                  'not logged on for 180 days for client' sy-mandt
                  INTO w_subject SEPARATED BY space.
      it_objtxt_basis-line = w_subject.
      APPEND it_objtxt_basis.
      CLEAR it_objtxt_basis.
      it_objtxt_basis-line = text-004.
      APPEND it_objtxt_basis.
      CLEAR it_objtxt_basis.
      CLEAR w_tab_line.
      DESCRIBE TABLE it_objtxt_basis LINES w_tab_line.
      READ TABLE it_objtxt_basis INDEX w_tab_line  INTO l_cline.
      wa_doc_chng-doc_size =
       ( w_tab_line - 1 ) * 255 + STRLEN( l_cline ).
      CLEAR it_objpack_basis-transf_bin.
      it_objpack_basis-head_start = 1.
      it_objpack_basis-head_num   = 0.
      it_objpack_basis-body_start = 1.
      it_objpack_basis-body_num   = w_tab_line.
      it_objpack_basis-doc_type   = 'RAW'.
      APPEND it_objpack_basis.
      CLEAR it_objpack_basis.
      LOOP AT w_path.
        temp1 = w_path.
        descr = w_path.
        CALL FUNCTION 'STRING_REVERSE'
          EXPORTING
            string  = descr
            lang    = 'E'
          IMPORTING
            rstring = descr.
        CALL FUNCTION 'STRING_SPLIT'
          EXPORTING
            delimiter = '\'
            string    = descr
          IMPORTING
            head      = descr
            tail      = temp_data.
        CALL FUNCTION 'STRING_REVERSE'
          EXPORTING
            string  = descr
            lang    = 'E'
          IMPORTING
            rstring = descr.
        CALL FUNCTION 'STRING_SPLIT'
          EXPORTING
            delimiter = '.'
            string    = descr
          IMPORTING
            head      = temp_data
            tail      = doc_type.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename      = temp1
            filetype      = 'BIN'
            header_length = 0
            read_by_line  = 'X'
            replacement   = '#'
          TABLES
            data_tab      = it_upload.
        DESCRIBE TABLE it_upload LINES tab_lines.
        DESCRIBE TABLE it_objbin_basis LINES lt_index.
        lt_index = lt_index + 1.
        LOOP AT it_upload.
          wa_objbin_basis-line = it_upload-line.
          APPEND wa_objbin_basis TO it_objbin_basis.
          CLEAR wa_objbin_basis.
        ENDLOOP.
        it_objpack_basis-transf_bin = 'X'.
        it_objpack_basis-head_start = 0.
        it_objpack_basis-head_num   = 0.
        it_objpack_basis-body_start = lt_index.
        it_objpack_basis-body_num   = tab_lines.
        it_objpack_basis-doc_type   = doc_type.
        it_objpack_basis-obj_descr  = descr.
        it_objpack_basis-doc_size   = tab_lines * 255.
        APPEND it_objpack_basis.
        CLEAR it_objpack_basis.
      ENDLOOP.
      it_reclist_basis-receiver = '[email protected]'.
      it_reclist_basis-rec_type = 'U'.
      APPEND it_reclist_basis.
      CLEAR it_reclist_basis.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = wa_doc_chng
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = it_objpack_basis
          contents_txt               = it_objtxt_basis
          contents_bin               = it_objbin_basis
          receivers                  = it_reclist_basis
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      IF sy-subrc EQ 0.
        SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.
      ENDIF.
    ENDFORM.                    " send_list_to_basis
    Reward points if useful
    Regards
    Anji

  • Problem sending externail mail from SAP

    I am facing problem in sending external mail from SAP. for ex: yahoo, hotmail like that. But, i can able to send the mails to my domain ids. I have configured both the SMTP and SAP internet gateway to send mails.
    But, i dont know what could be the problem in sending external mails.
    Is there any body to help me in this regard
    Regards,
    B.Sudharsan

    Hi Sudarsan,
    How are you trying to send an e-mail using ABAP or using actions or ?
    Enclosed link gives you a complete overview of the settings and the way to send an e-mail using ABAP ( if necessary).
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    Reward points if it helps.
    Regards,
    Vamsi Krishna P.

  • Can SAP send e-mail to external mail with attached file?

    Hi ABAP Guru.
    Can SAP send the E-Mail to external mail server? (e.g. Hotmail, Yahoo and so on.)
    And Can the E-Mail sent with attached file?
    And How to do that?
    Please give me your advice.
    Thank you and Best Regard,
    Nattapash C.

    Thank you very much! Amit Gujargoud.
    And I'm so sorry for my question that not clear for you and everyone.
    What I need to know is How to do with ABAP Code.
    I found the Function Module
    'SO_DOCUMENT_REPOSITORY_MANAGER' with method 'SEND' is being used for my case.
    but I don't know what field of structure RECIPIENTS (Table parameter of this Func. Module) that used for define recipient's E-Mail Address.
    Does anyone know the field or Have any method to solved my case?
    Please give me your advice.
    Thank you and Best regard.
    Nattapash C.

  • Send mails to Agents from Infotype 105  External mails / SAP Inbox

    Hi,
    1) Whenever there is a change in the Address  the change has to be notified to HR Business partner (HRBP)  and Manager (MGR)
       a) The mail has to be  sent to the Extermail id.
       b) OR it has to be sent to the SAPID (Inbox)
    2) These mail ID /SAPID will be taken from the INFOTYPE PA0105, where two custom fields will carry this Mail / SAPIDs
    3) Sending mail To external mail id  is been done using the Function module in  the rule (Inside the function module i have written a program which will collect the mail id from PA0105 and send mails)
    4) Huv can i send mail to SAPINBOX from there if i  have SAPID instread of external mail IDs.
    Please help me to solve .
    Richard A

    Check the Business Object that is relevant to you
    ADDRESS    Address for sending documents
    ADDRESSEMP Employee Address
    BUS4001    Addresses of companies and organizations
    BUS4002    Address of natural oerson
    BUS4003    Address of "Person in company"
    After selecting the Business object check which event is getting triggered when you change address. If no event getting triggered try toi configure in SWEHR3
    You can take reference of the following Wflow Template
    01000015
    01000080
    You can just use SAP User Id in mail if email address is maintained in SU01d.
    <b>Reward points if useful and close thread if resolved</b>

  • Send External mail with Attchment from SAP

    Hi All,
    OUR REQUIREMENT: We need to send EXTERNAL MAIL with ATTACHMENT(Excel) form SAP .
    We have developed a function module which converts the internal table data into Excel Format and sends it as an attachment to External Mail.
    ISSUE : But our issue is we are unable to open that document using GOOGLE DOCS Could any one help me how to do this.
    it was thriughing error like
    Error log is .
    ''Sorry, we are unable to generate a view of the document at this time. Please try again later.
    You can also try to download the original document by clicking here. Alternatively, you can view the plain HTML (automatically redirecting).
    Regards
    Venkat .
    Edited by: venkata pradeep on Mar 5, 2012 10:26 AM
    Edited by: venkata pradeep on Mar 5, 2012 10:28 AM

    Is the excel file recognized by MS Excel? If not, then issue is you have wrongly converted your attachment and/or your FM to create an excel file was wrongly coded or you have passed it wrongly to your mail code.
    If you consider an OOP approach in sending external mail, refer to this link:
    http://wiki.sdn.sap.com/wiki/display/Snippets/SendingmailwithattachmentusingObjectOriented+Approach

  • Getting message in .ALI format from SAP to external mail

    Hi All,
                 We are getting message in .ALI format from SAP to external mail  , we want to receive in HTM or .txt format.
    Please let me know what needs to be changed .
    Thanks in advance
    Thanks&Regards
    Shams
    Edited by: shams111 on Aug 11, 2009 9:23 PM

    Hi Markus,
                                 I have changed the format but iam getting it in format .pdf now .
         Under INET i have selected internet and changed format to : HTM,PDF,TXT .
       Please let me know what to do to get it in HTM format.
    Thanks in advanse.
    Thanks&Regards
    Shams

  • Trigger a mail to sap mail box and external email id

    Hi
    In infotype 0019, we maintain probation details, i want to trigger a mail to sap mial box and external email id , one daye before the probation date mentioned in IT0019.
    Kindly let me know how to go.
    Regards
    Vish

    Hi,
    U have to take the help of your ABAPr he will write a program which will schedule every day in specific time that program will compare the expiry of probation date with system date and if it is one day less then mail will trigger.
    Regards,
    ARU

  • How to send "SPOOL" on SAP MAil or external mail in background???

    I tried using 'SO_DOCUMENT_REPOSITORY_MANAGER' function but it failed when I run it in background. I learned that it calls a screen at the middle of the process which needs user input to go on with the process.
    Is there other way that I could send spool on SAPMail or external Mail in background??? Any suggesstions will be greatly appreciated.. thanx...

    see below sample function module, you can use in backgroud also
    FUNCTION Z_SEND_MAIL_FOR_SPOOLLIST.
    ""Local interface:
    *"       IMPORTING
    *"             VALUE(SPOOLNUMBER) LIKE  SY-SPONO DEFAULT SY-SPONO
    *"             VALUE(MAILNAME) LIKE  SOOD1-OBJNAM DEFAULT 'NOTE'
    *"             VALUE(SUBJECT) LIKE  SOOD1-OBJDES
    *"             VALUE(RECEPIENT) LIKE  SY-UNAME OPTIONAL
    *"             VALUE(DLI) LIKE  SOOS1-DLINAM OPTIONAL
    *"       TABLES
    *"              TEXT STRUCTURE  SOLI OPTIONAL
    *"       EXCEPTIONS
    *"              ERROR
    DATA: OBJECT_HD_CHANGE LIKE SOOD1 OCCURS 0 WITH HEADER LINE,
          OBJPARA          LIKE SELC  OCCURS 0 WITH HEADER LINE,
          RECEIVERS        LIKE SOOS1 OCCURS 0 WITH HEADER LINE.
    OBJECT_HD_CHANGE-OBJLA  = SY-LANGU.
    OBJECT_HD_CHANGE-OBJNAM = MAILNAME.
    OBJECT_HD_CHANGE-OBJDES = SUBJECT.
    OBJECT_HD_CHANGE-OBJSNS = 'F'.
    OBJECT_HD_CHANGE-VMTYP  = 'T'.
    OBJECT_HD_CHANGE-SKIPS  = 'X'.
    OBJECT_HD_CHANGE-ACNAM  = 'SP01'.
    OBJECT_HD_CHANGE-OBJCP  = 'X'.
    RECEIVERS-RCDAT  = SY-DATUM.
    RECEIVERS-RCTIM  = SY-UZEIT.
    IF DLI IS INITIAL.
        RECEIVERS-RECNAM = RECEPIENT.
        RECEIVERS-RTUNAM = RECEPIENT.
    ELSE.
        RECEIVERS-RECNAM = DLI.
        RECEIVERS-ADR_NAME = DLI.
        RECEIVERS-RECESC = 'C'.
    ENDIF.
    RECEIVERS-SNDEX  = 'X'.     " Express-Mail
    APPEND RECEIVERS.
    OBJPARA-NAME = 'SPI'.
    OBJPARA-LOW  = SPOOLNUMBER.
    APPEND OBJPARA.
    CALL FUNCTION 'SO_OBJECT_SEND'
          EXPORTING
               OBJECT_HD_CHANGE           = OBJECT_HD_CHANGE
               OBJECT_TYPE                = 'RAW'
               OWNER                      = SY-UNAME
          TABLES
               OBJCONT                    = TEXT
               OBJPARA                    = OBJPARA
               RECEIVERS                  = RECEIVERS
          EXCEPTIONS
               OTHERS                     = 01.
    IF SY-SUBRC NE 0.
       RAISE ERROR.
    ENDIF.
    ENDFUNCTION.

Maybe you are looking for

  • Hard Drive died and Apple replaced. Please help me reinstall.

    My hard drive failed in my G5, and it was replaced by Apple under the Protection Plan. I was running 10.4.4 at the time, but Apple has installed 10.3 on the new disk. I just picked up my G5 from the Apple store and need some help. I have a cloned bac

  • Safari - "web pages not responding" about once an hour. I'm about to switch to Chrome if I can't fix this.

    Safari - "web pages not responding" about once an hour. I'm about to switch to Chrome if I can't fix this. Help?

  • Front Panel connector for JAUD1 on K9A2 Platinum mobo

    I bought some headphones for my computer and they work well when plugged into the line out and mic on the back. It's a pain unplugging my speakers in the back and plugging in the headphones, then switching back when I want my speakers again. I notice

  • PC to Mac compatability questions

    This is probably a well aired topic on this forum but I am planning on converting from a Win XP PC to a mac mini in the next couple of weeks but am looking for advice on the following questions 1. Will I be able to use my flash memory drive on the ma

  • ZFS boot partition?

    Hi All, I'm currently being asked to look creating a number of servers with mirroring. Ideally the whole server will use ZFS which would mean it would also need to boot from ZFS. Looking at the OpenSolaris website: http://www.opensolaris.org/os/commu