Skip to Content
author's profile photo Former Member
Former Member

Sending mail from workflow to outlook - urgent

Hi,

i want to send mail from sap workflow to external email id and outlook as well.

please send me docs or tips preferably with screen shots describing how to configure it at my id rahulbhasin83@gmail.com.

points will be given to usefull answers ,

regards,

rahul

Message was edited by:

Rahul Bhasin

Message was edited by:

Rahul Bhasin

Message was edited by:

Rahul Bhasin

Message was edited by:

Rahul Bhasin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 07:05 AM

    Hi Rahul,

    Find the below code.

    DATA : RECEIVER TYPE SOMLRECI1 OCCURS 1 WITH HEADER LINE,

    S_DOC_CHNG TYPE SODOCCHGI1,

    S_OBJECT_ID TYPE SO_OBJ_ID.

    need to fill up the following compulsory

    1. S_DOC_CHNG-OBJ_DESCR = 'Mail subject line here'.

    2. RECEIVER-RECEIVER = 'rahulbhasin83@gmail.com'.( or as per ur requirement ).

    3. RECEIVER-REC_TYPE = 'U'. "Internet address

    4. S_OBJCONT contains the content of the mail.

    you have to append it.

    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

    EXPORTING

    DOCUMENT_DATA = S_DOC_CHNG

    DOCUMENT_TYPE = 'RAW'

    COMMIT_WORK = 'X'

    IMPORTING

    NEW_OBJECT_ID = S_OBJECT_ID

    TABLES

    OBJECT_CONTENT = S_OBJCONT

    RECEIVERS = RECEIVER

    EXCEPTIONS

    TOO_MANY_RECEIVERS = 1

    DOCUMENT_NOT_SENT = 2

    DOCUMENT_TYPE_NOT_EXIST = 3

    OPERATION_NO_AUTHORIZATION = 4

    PARAMETER_ERROR = 5

    X_ERROR = 6

    ENQUEUE_ERROR = 7

    OTHERS = 8.

    IF SY-SUBRC <> 0.

    MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO

    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    Hope it helps you.

    Reward points if helpful.

    Gowri

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      HI Gowri,

      Thanks for your reply first.

      the code that u sended is to be written in se38 program , so where to attach that program with workflow as my requirementiis to send email from workflow to outlook. so please llet me know how to do this.

      regards,

      rahul

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 07:20 AM

    Hey check the first document in this link..

    http://saptechnical.com/Tutorials/Workflow/Workflow.htm

    if you want two mail-id's then you can create a rule or create 2 mail steps one after one with different mail-id's.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2007 at 09:45 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 10:14 AM

    Hey ..!

    Go to the Business workflow ...then follow the below steps ...!

    its kind of configuration needed in the SAP System no coding required.

    Step1..go to the Business Workplace

    Step2..

    Access the settings by choosing SETTINGS - OFFICE SETTINGS.

    Choose the automatic forwarding tab.

    Here you can create new forwarding rule using the create button.you will get new window then..

    Step3...

    Insert your email address into the forward to field and choose External address from the drop down box.

    Choose the time period of this forwarding rule. In this example want to keep this forwarding for a long time.

    Step4....

    If you don’t want to keep copies of received SAP office mails remove the option.

    Choose copy to save the values

    If your email address is already maintained in your user profile you will receive a following pop up

    Step5...

    Now you can save the new forwarding rule and all of your SAP Office mails will be forwarded to you outlook inbox.

    You can also remove the forwarding rule anytime you want.

    If this answer solved your problem then rewarding the point will be greatly appreciated.

    BBye

    Rajesh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.