cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow System Administrator: document sent

MVE
Explorer
0 Kudos

Hi,

I would like to change the content of the document Workflow <workitemId> set to status ERROR sent to Wf System Admin when a Workflow fails at runtime.

Could you please explain me how to change this document and where the template is stored?

Thanks in advance,

Mathieu

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190818
Active Contributor
0 Kudos

Hi,

What document are you using ??? If that document is related to workflow, it will send to particular agent, so check where it has gone..

Regards,

JMB

MVE
Explorer
0 Kudos

I don't know which document is used.

This document is automatically sent by the system as soon as the workflow fails.

I didn't customize anything except in the Basic Data of my workflow definition I specified my user as agent of the rule Wf System Admin.

So I receive it in my Sap Business Workplace.

Regards

Mathieu

Edited by: Mathieu Van Ende on Feb 15, 2008 12:05 PM

Former Member
0 Kudos

Hi Mathieu,

This has nothing to do with the setting in your current workflow definition. This setting is made in the workflow customizing - transaction SWU3.

There you can define who is the workflow system administrator and if mails should be sent. Go to transaction SWU3 and look at the following activities:

- Maintain Runtime Environment --> Maintain Workflow System Administrator: Here you set who this is. Your user-id is set here.

- Maintain Runtime Environment --> Schedule Background Job for Work Items with Errors: Here you can define if a background job should be scheduled for workflowinstances that go into error. This also controls if a message is sent to the WF System Administrator each time a workflow goes into error. Check also the explanatory text of this activity:

Function

You use this activity to schedule monitoring and special treatment for background work items that could not be executed initially because of a temporary error in the underlying object method. These background work items with temporary errors are then restarted automatically. The activity must also be scheduled if the workflow system administrator is to be notified automatically by mail in the event of application errors and system errors.

Kind regards,

Joost van Poppel

MVE
Explorer
0 Kudos

Hi Joost,

Thanks for you answer but I know SWU3 contains the activity Maintain Runtime Environment --> Schedule Background Job for Work Items with Errors that schedules the job SWWERRE. The corresponding report RSWWERRE is executed frequently. I looked in it but didn't find any email or document reference.

Anyway, I'm looking for a reference to the document sent to the Wf System Admin.

I'm progressing:

I retrieved some reference of the document:

- Folder ID: FOL 31 000000000193

- Object ID: RAW 33 000000000040

- Document Name: ERRORMESSAGE

But I still don't know where to find the template of such a document

For your information, by performing the step Maintain Runtime Environment --> Maintain Workflow System Administrator, you specify a global Wf System Admin. You can specify it locally for specific Wf definitions by filling their Basic Data section with an appropriate agent rule.

Best regards,

Mathieu

Edited by: Mathieu Van Ende on Feb 15, 2008 2:37 PM

Former Member
0 Kudos

Have you tried to temporarily de-activate SWWERRE and the corresponding report. I would then expect that workflows in error would not trigger a send mail to the wf-administrator, because this is explicitly mentioned in the description of the activity in SWU3. If this is the case there is still something in RSWWERRE that triggers it and from there you probalby can find some kind of template.

Before my last post I also looked briefly in RSWWERRE, but couldn't directly find anything that looked like something that would send a mail. However, didnt take the time to test it by deactivating it.

The document you retrieved is I guess from table SOOD? At least there I can find a lot of these mails back, but these are all already generated documents and won't be of any help I guess.

Hope you figure it out.

Kind regards,

Joost van Poppel

MVE
Explorer
0 Kudos

Thanks Joost for your proposal.

I found where is that text written.

You put me on the track with the reference SOOD.

First I traced the workflow execution via ST01.

By reading the log, I found that the function SBCOMS_SR_FROM_DOCUMENT_CREATE is executed.

I set the WF-BATCH user as Dialog User.

I put a breakpoint. Finally, via debug, I discovered that the text sent to the Workflow System Administrator is hardcoded in the method GET_BODY of the class CL_SWF_UTL_MAIL_ERROR_NOTIFY.

Thanks to all for your participation.

Regards,

Mathieu Van Ende