cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Automatic status e-mail notifcation for custom process chain

Former Member
0 Kudos
287

Hi experts,

We have a custom process chain with two steps.We trigger this process chain based on the events maintained in the SM62 by executing a

custom report.

Now our requirement is to add e-mail notification for this process chain whether it is successful or failure.

It should always trigger an e-mail to the user whether it s failed in any of the steps or it is executed successfully.

We have tried by adding the e-mail alerts as described in the below document but it did not work.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10979a4a-d3da-2e10-3bab-8916d8245...

Please let us know is there a way so that this can be achieved.

Accepted Solutions (0)

Answers (2)

Answers (2)

ThangaPrakash
Active Contributor
0 Kudos

Hello Pavan,

See the reply in your post in APO community.

Automatic status e-mail notifcation for custom ... | SCN

Former Member
0 Kudos

Hi Prakash,

Thanks for your reply.

However I manged to pull through it by creating two local chains inside my main chain:

Both local chains contain only one single step to execute one ABAP report.

RaymondGiuseppi
Active Contributor
0 Kudos

Adding a message in case of error to each and every step and a message in case of success to the last step should fulfill your requirement.

So could you elaborate on


but it did not work.

Regards,

Raymond

Former Member
0 Kudos

Hi Raymond,

I am able to create the message step and it is triggering the e-mail message.

But my requirement is if step fails then it should trigger the notification with failure message

and if success then with successful.

While creating message it is not asking me what type of message you want.

can you please help on this?

Thnanks,

Pavan   

RaymondGiuseppi
Active Contributor
0 Kudos

You can add 2 messages to a process of the chain

Regards,

Raymond

Former Member
0 Kudos

HI Reymond,

Thanks for your reply!

Sorry, but I am novice to process chains and doing it first time.

However when I am creating the message step I am getting that "With END" and do not have any clue from where and how it is coming and how to change this as in your case 'WITH Succes' and second message is 'WITH Errors'.

and when I click on the 'maintain message' I am getting below one:

Can you please elaborate how you are getting With Success and with Error?

And One more question how will system determine which needs to executed with success and errors?

former_member189845
Active Participant
0 Kudos

Hi Pavan,

I understand your requirement can you check the below links

which will solve the issue.

http://scn.sap.com/docs/DOC-31355

Return code from ABAP program in process chain? | SCN

Thanks,

Siva

Former Member
0 Kudos

Hi Shiva,

My requirement in short is to add one email notification when the below steps fails or executed sucessfully:

can you please help me in here and please elaborate how your link can help here which I have tried

but no success?

RaymondGiuseppi
Active Contributor
0 Kudos

Right-click twice on the process, and select create message. first time select when okay, second time when error. So create TWO messages and you can give different titles to message. (In you case first select delete message to remove the always sent message)

Regards,

Raymond