Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Notification(Mail) when an Idoc is sent or received

Former Member
0 Kudos

Hello,

My scenarios,

1. Whenever an Idoc say MATMAS05 fails in the ECC a mail should be triggered to a user.

2. Similarly when an Idoc is successful, a mail should be triggered to a user.

Kindly help me getting the configuration steps done.

Regards,

Abhishek

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos

Please check the below mentioned link usin workflow task linkage the email is sent automatically

http://forums.sdn.sap.com/thread.jspa?threadID=1913245

Nabheet

18 REPLIES 18

nabheetscn
Active Contributor
0 Kudos

Please check the below mentioned link usin workflow task linkage the email is sent automatically

http://forums.sdn.sap.com/thread.jspa?threadID=1913245

Nabheet

0 Kudos

Hello,

I have gone through the link, but not able to understand anything.

Regards,

Abhishek

0 Kudos

<External link removed>

Check this..there is lot material available for the same please search

Nabheet

Edited by: Suhas Saha on Jan 12, 2012 11:53 AM

0 Kudos

Hello,

this document says, for custom Idoc.

For MATMAS i will have to create a new workflow and attach it with the events associated with the process code.

or is there a standard workflow given by sap, if so how do i found out which workflow

Regards,

Abhishek

0 Kudos

For MATMAST sap standard already has define the task

Check in Swetypv.

Specify object category as BO

Object type IDOCMATMAS

Task : TS00007947

Try to use it

Nabheet

0 Kudos

Hello,

In WE42, for inbound process code, we have these details

Function Module Idoc_input_matmas01

Maximum Number of Repeats 0

Object Type IDPKMATMAS

End Event MASSINPUTFINISHED

Object Type IDOCMATMAS

Start Event INPUTERROROCCURRED

End event INPUTFINISHED

Success Event

Object Type BUS1001006

Start event <blank>

so is there an workflow associated with this BOR object

or will i have to create an workflow.

And the details you mentioned a complete bouncer

Regards,

Abhishek

0 Kudos

There is a task associated to it...no need of workflow just activate the task linkage in swetypv and check what happens when error occurs

Nabehet

0 Kudos

Hello,

How do i activate the task, there is not activate button, and how do i verify whether its activated or not.

but when i select the Details button after selecting the

Object Category

Object Type IDOCMATMAS

Event IDOCMATMAS_IN_START

Receiver Type TS00007947

, there we have a two check box, do i select the linkage activated check box

regards,

Abhishek

0 Kudos

you have to activate the linkge and in SWEL you need to check which event is raised..

Search on SDN you will find many links

NAbheet

0 Kudos

Hello,

One final, how do i active the linkage.

Regards,

Abhishek

0 Kudos

Check the checkbox linkage activated

Nabheet

0 Kudos

Hello,

What will happen, once i activate the linkage.

My guess once activated, when ever an IDoc fails the system, a mail will be triggered.

Regards,

Abhishek

Edited by: Abhishek Biwal on Jan 12, 2012 3:16 PM

0 Kudos

in case the Idoc gets fails,

the thru WE20- Post Processing : permitted Agent configuration can be use to send an email.

Use WE20 >post processing tab

for single person , we can give the agent name ( Ex: customer)

Sending email to multiple persone use Workcenter

In case if u use workcenter use PO01 > relationships to add multiple people to same workcenter.

If theres an error after idoc sending; if any of the required field is missing: use an error FM and send it. Thereafter rsnasted handles it.

kesavadas_thekkillath
Active Contributor
0 Kudos

You can also create a implicit enhancement in the end of function module IDOC_CREATE_ON_DATABASE to do this. But if you see inside the function module there is a function IDOC_ERROR_WORKFLOW_START called , which uses a work flow to trigger an error event. You may also have a look into [Triggering an Application Event After Successful IDoc Processing|http://help.sap.com/saphelp_40b/helpdata/en/78/2177a251ce11d189570000e829fbbd/content.htm]

0 Kudos

Hello,

I dont wanna to any enhancement to the standard,

i wanna know is there any standard available functionality for sending an mail when the an IDoc fails in the inbound scenario.

Regards,

Abhishek

Former Member
0 Kudos

null

Edited by: Shilpa_gunjan on Feb 10, 2012 6:11 AM

Edited by: Shilpa_gunjan on Feb 10, 2012 6:11 AM

Former Member
0 Kudos

null

Edited by: Shilpa_gunjan on Feb 10, 2012 6:12 AM

Edited by: Shilpa_gunjan on Feb 10, 2012 6:12 AM

Former Member
0 Kudos

Hello Abhishek,

I have the same requirement as you have , I need to trigger a mail when Inbound IDOC fails for message type ORDERS.

WHere you successful in this development, if so please guide me.

Thanks.