cancel
Showing results for 
Search instead for 
Did you mean: 

How to send Notification email to Outlook mail?

Former Member
0 Kudos

Hi all,

am new to workflow,

is there any possiblity with sending notification emails using rule?

in my requirement i have to send email notifications to concerned manager using A002 relationship in HR?

Can anybody help me?

Thanks in advance,

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

See this

A Step-by-Step guide on SMTP Configuration and File to Mail Scenario Using Process Integration Scenario in PI 7.1

[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a0a27c01-26b0-2c10-bd8a-94498efa7ff6|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a0a27c01-26b0-2c10-bd8a-94498efa7ff6]

Former Member
0 Kudos

I recommend looking into "Extended Notifications".

One other thing you want to consider is getting these users to set the auto-forwarding flag in their inbox so that any e-mail they receive in their SAP inbox will automatically be forwarded to their external e-mail address.

Former Member
0 Kudos

Hi,

'is there any possibility with sending notification emails using rule?'

No, we cannot use rule in 'send mail ' step. So in order to send mail to the approver, you have to write a background method that will fetch the approver id .ONce the approver id is fetched, p[ass it to workflow container element. Create a mail step and choose recipient type as 'expression' and provide the workflow container name in the expression that will hold the approver SAP ID or position..

For background method, you can use FM RH_STRUC_GET with wegid id as A002, check for other parameters in table HRP1001.

Once you have the approver id or position(based on HR org structure) pass it to mail step.

Hope this helps.

Sangvir SIngh

former_member184495
Active Contributor
0 Kudos

Hi KB,

for your A002 relationship, create an organization structure, where you can assigne position id for supervisors using A002 in t-code PO13 (if I am not wrong).

Once this is done, you can use FM RH_LEADING_POSITION, where you would fetch the position id for supervisor, later use FM RH_*O*_POSITION (dont recollect the exact FM) in your Rule or Method and then send notifications.

For sending it to Outlook, search the forum you would get many threads with solution.

Hint Search for RSWUWFML2 or SWNCONFIG.

Hope it helps.

Aditya

Edited by: Aditya Varrier on Oct 20, 2010 1:27 PM

Edited by: Aditya Varrier on Oct 20, 2010 1:27 PM

Former Member
0 Kudos

Hi,

You will have to do the following:

1. Create a new container element (for eg. APPROVER) with Data type WFSYST-AGENT.

2. Create a new background method(if required create a new Business object also) to your BO object to populate this container element.

3. Use the following code in your method:

DATA: G_SNAME TYPE SMNAM,

G_USER TYPE SYSID,

NEXT_PROCESSOR_TAB TYPE PTREQ_UIA_APPROVER_TAB.

PERFORM FIND_NEXT_PROCESSOR(RPTREQAPPRCHK)

USING

PERNR

REQTYPE

CHANGING

NEXT_PROCESSOR_TAB

G_SNAME

G_USER.

CONCATENATE 'US' G_USER INTO APPROVER.

3. Add a new activity step to your workflow calling this method.

4. Use your(current) send mail step with agent field having value 'APPROVER'.

Hope this will work.

Regards

Gautam