SWWDHEX starts a French workflow

Paul.Bakker@osr.treasury.qld.gov.au Paul.Bakker at osr.treasury.qld.gov.au
Mon Jan 23 22:17:41 EST 2012


Thanks for that. Unfortunately, Inbox settings won't help.

The problem is that the workflow is using 'SendTaskDescriptio'n to send
emails containing the workitem text.
Because WorkitemLanguage = 'FR', it is always choosing to send the
translated French text in the email.

(I know - it should have been built to use Extended Notifications
instead.... I'm just the maintenance guy)

Also, it's not so easy to change the WI language - once the WI Language of
the toplevel workflow is set, it flows through to every subsequent
workitem.

+++

This is a bit of a worrying 'feature' of deadlines - any new workflows
kicked off by deadline handling will inherit a hardcoded language..... the
logon language of the guy who happened to run SWU3 in Production!

cheers
Paul Bakker



From:	"Dart, Jocelyn" <jocelyn.dart at sap.com>
To:	"SAP Workflow Users' Group" <sap-wug at mit.edu>
Date:	24/01/2012 01:00 PM
Subject:	RE: SWWDHEX starts a French workflow
Sent by:	sap-wug-bounces at mit.edu



Hi Paul,
Maybe you should just get them to set on the inbox Personal Workflow
Settings to translate work items to your own language (English)
temporarily?
Or is the problem that French isn't giving you any text at all?

You could also try just updating WI_LANG on table SWWWIHEAD which should do
the same thing.
Regards,
Jocelyn

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of
Paul.Bakker at osr.treasury.qld.gov.au
Sent: Tuesday, 24 January 2012 1:18 PM
To: sap-wug at mit.edu
Subject: SWWDHEX starts a French workflow


Regular readers of the WUG group might remember my question from a few
weeks ago:

        How is the WorkItemLanguage of a workflow set?

I had an urgent problem: mining engineers in the outback were receiving
workflow emails in French, and they weren't happy about it.

Using advice from Florin W. I tracked down the culprit: the deadline job
SWWDHEX (!). This job had been set up from SWU3 with a language of 'FR' (in
the 'step' tab).

When a workitem deadline expires, SWWDHEX (under user WF-BATCH) terminates
the current workitem. The workflow continues on and approves the
procurement  document (at the current release level), and this triggers a
new approval workflow for the next level.

This new workflow is started with the WorkItemLanguage copied from the
SWWDHEX job. Presumably the language id 'FR' is stored in SY-LANGU  at the
time that the workflow is triggered.

My question is now: how can I change SY-LANGU in the ABAP code, before the
next workflow is triggered?

In the code just before BAPI_REQUISITION_RELEASE_GEN I have tried:
- sy-langu = 'EN'.
- 'SET LOCALE LANGUAGE 'E'.

But neither have had any effect.

Is there a better approach? Or is there another way to stop the evil
influence of the SWWDHEX job?

thanks
Paul Bakker


*********************************************************************************************

Only an individual or entity who is intended to be a recipient of this
e-mail may access or use the information contained in this e-mail or any of
its attachments.  Opinions contained in this e-mail or any of its
attachments do not necessarily reflect the opinions of Queensland Treasury.

The contents of this e-mail and any attachments are confidential and may be
legally privileged and the subject of copyright.  If you have received this
e-mail in error, please notify Queensland Treasury immediately and erase
all copies of the e-mail and the attachments.  Queensland Treasury uses
virus scanning software.  However, it is not liable for viruses present in
this e-mail or in any attachment.
***************************************************************************************************


_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




More information about the SAP-WUG mailing list