cancel
Showing results for 
Search instead for 
Did you mean: 

Email trigger in workflow

Former Member
0 Kudos

Hi friends,

Using abap program,We can trigger a mail when ever a purchase order is created-A mail sending to Creator and Approver what is the necessity of doing the same using Workflow.

Regards

ABAPer

Accepted Solutions (1)

Accepted Solutions (1)

former_member193382
Active Contributor
0 Kudos

Hi Jansi,

you can use BO BUS2012 and event RELEASESTEPCREATED to trigger a workflow whenever a PO is created. In your workflow use send mail step to send mail and in agents select expression - WFInitiator to send a mail to the PO creator. Let me know if you have any queries.

Regards,

Raj

Answers (2)

Answers (2)

Former Member
0 Kudos

More explanation?

Edited by: Jansi Dorai on Dec 9, 2008 9:51 AM

surjith_kumar
Active Contributor
0 Kudos

Hi..

Once the PO Event Triggers, you can configure the Workflow and Using Send Mail Step you can send Mail.

If your using large content in the mail. You have to write mail sending Function Module and include in the Business Object and Configure via Workflow as a Task.

This [Link |https://wiki.sdn.sap.com/wiki/x/nYKdAw ] shows the Mail sending Function Module.

Regards,

Surjith

Former Member
0 Kudos

Recently,

I have developed a abap program which so_document_sent_api to send mails.

What is the advantage of using workflow .whether any other advantage specifically to use workflow

Former Member
0 Kudos

Thanks for you link.

regards

abaper

former_member193382
Active Contributor
0 Kudos

Hi Jansi,

The purpose of using workflow is to avoid coding and save time. The steps that you use in workflow will generate the code automatically and save your programming time. In ABAP you need to spend half-day in coding where as in workflow you can finish the task in minutes.

Let me know if you have any queries.

Regards,

Raj

Former Member
0 Kudos

Thanks raj but can you tell from abap if we are triggering any mails we will have the list of the users who has executed the program and triggered the mail.

what about workflow Can you tell me in this scenario

former_member193382
Active Contributor
0 Kudos

Hi,

In Workflow we have a container elemetnt WFInitiator which holds the person responsible for triggering this workflow or other words, the person responsible for the occurence of the event.

Jansi, If you still have any doubts let me know. But before proceeding further mark this post as unanswered so that even other people can help you.

Regards,

Raj

Former Member
0 Kudos

Hi

In the previous discussion it is mentioned as expression agents wf_initiator.

what does the term exactly mean

former_member193382
Active Contributor
0 Kudos

Hi,

Workflow containers are data holders that hold the runtime data that is needed to be from/to for proper execution of workflow. As i said earlier WFinitiator holds the SAP user name of the person who is responsible for the occurence of the event in SAP system. This value is passed to workflow and can be used within workflow for various purposes like displaying the user name in mails etc.

Let me know if you still have any doubts.

Regards,

Raj

Former Member
0 Kudos

Thanks raj