preventing changes once WF underway

michael.klika@de.pwcglobal.com michael.klika at de.pwcglobal.com
Tue Jul 3 05:12:23 EDT 2001


hi john
 
there's another way to prevent an object from being changed but its a b=
it
'brute force':
 
1. check whether you either have an user exit at the beginning of the
transaction or you can use a field exit at a field on the FIRST screen =
that
appears when entering the application.
 
2.in this exit you either check against the workflow runtime tables whe=
ther
there is a relevant instance (workitem) with exactly your object OR you=
 
check against a field of you object (might be an unneaded field or a
customer field) which you use as an indicator for being in a workflow
process. you might set a flag in this field at the beginning of your
workflow process an delete it at the end.
 
3. if you find out (in the exit) that the object is part of an active
workflow process you raise an error message '...is not aloud for any ch=
ange
but may be viewed...' or something like that.
 
usualy this works fine AND sap is using the first technique (searching =
the
runtime tables) itself in a few standard workflows (e.g. treasury).
 
hope i could be of any help,
regards, michael
 
 
 
 
 
"Dart, Jocelyn" <jocelyn.dart at sap.com>@MITVMA.MIT.EDU> am 03.07.2001
01:40:54
Hinweis: Dieses Mail kommt aus einer fremden Dom=E4ne!
 
Bitte antworten an SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
 
Gesendet von:  SAP Workflow <Owner-SAP-WUG at MITVMA.MIT.EDU>
 
 
An:    SAP-WUG at MITVMA.MIT.EDU
Kopie:
Thema: Re: preventing changes once WF underway
 
 
Hi John,
You can only prevent changes to a sales document if the transactions
around it allow you to block it in some way.   Perhaps someone with
sales specific knowledge can help here.
 
If you can't block it, another technique is to set up parallel paths
in your workflow that wait on events indicating that the sales document=
 
has changed.  If it has changed, then send a mail to everyone who has
reviewed it so far telling them it has changed, then retrigger your
triggering event to raise a new workflow for the changed sales document=
.
 
You do need to be careful about overlap - for instance if your agents
change the sales document using the workflow and this raises the same
events which is used to terminate the work item.
In this case you may need to add a check function module
to the event to check whether there is both a work item and an event
item waiting for the event, and close the work item only if there is mo=
re
than one event.  (Hope that makes sense, you are basically just trying
to make sure the event will trigger the correct path in your workflow).=
 
Or you could use the check function module to check that the
event creator is an agent of the waiting work item.
 
Hope that helps.
Regards,
        Jocelyn Dart
Consultant (BBP, Ecommerce, Internet Transaction Server, Workflow)
SAP Australia
Email jocelyn.dart at sap.com <mailto:jocelyn.dart at sap.com>
Tel: +61 412 390 267
Fax: +61 2 9935 4880
 
 
 
 
-----Original Message-----
From: John A Haworth [mailto:jhoworth at csc.com]
Sent: Monday, 2 July 2001 11:33 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: preventing changes once WF underway
 
 
HI all
 
Could anyone offer advice on the following:
 
I have a sales document that, once created has to go though a number of=
 
review panels, how can I prevent further changes being made to the sale=
s
document, whilst it is going through the various reviews, e.g. for
consistency, I dont want item quantities being inadvertently changed wh=
ilst
the doc is between the various reviews (by non-workflow agents), the
workflow agents themselves could make changes.
 
Thanks in advance
 
John
 
 
----------------------------------------------------------------
Diese Information ist ausschliesslich fuer die adressierte Person oder
Organisation bestimmt und koennte vertrauliches und/oder privilegiertes=
 
Material enthalten. Personen oder Organisationen, fuer die diese
Information nicht bestimmt ist, ist es nicht gestattet, diese zu lesen,=
 
erneut zu uebertragen, zu verbreiten, anderweitig zu verwenden oder sic=
h
durch sie veranlasst zu sehen, Massnahmen irgendeiner Art zu ergreifen.=
 
Sollten Sie diese Nachricht  irrtuemlich erhalten haben, bitten wir Sie=
,
sich mit dem Absender in Verbindung zu setzen und das Material von Ihre=
m
Computer zu loeschen.
Sie haben uns gebeten, mit Ihnen ueber das Internet per E-Mail zu
korrespondieren. Unbeschadet dessen ist allein die von uns unterzeichne=
te
schriftliche Fassung verbindlich.
Wir weisen darauf hin, dass derartige Nachrichten mit und ohne Zutun vo=
n
Dritten verloren gehen, veraendert oder verfaelscht werden koennen.
Herkoemmliche E-Mails sind nicht gegen den Zugriff von Dritten geschuet=
zt
und deshalb ist auch die Vertraulichkeit unter Umstaenden nicht gewahrt=
.
Wir haften deshalb nicht fuer die Unversehrtheit von E-Mails nachdem si=
e
unseren Herrschaftsbereich verlassen haben und koennen Ihnen hieraus
entstehende Schaeden nicht ersetzen. Sollte trotz der von uns verwendet=
en
Virus-Schutz-Programmen durch die Zusendung von E-Mails ein Virus in Ih=
re
Systeme gelangen, haften wir nicht fuer eventuell hieraus entstehende
Schaeden. Dieser Haftungsausschluss gilt nur soweit gesetzlich zulaessi=
g."
English:
The information transmitted is intended only for the person or entity t=
o
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, o=
r
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you rece=
ived
this in error, please contact the sender and delete the material from a=
ny
computer.
You have asked us to correspond with you via the Internet per e-mail.
However, the written version signed by us is the only authoritative
version.  We draw your attention to the fact that such messages can be
lost, changed or falsified, with or without any interference by third
persons.  Normal e-mails are not protected against access by third pers=
ons
and, therefore, their confidentiality may not be assured in certain
circumstances. We cannot be responsible for the integrity of emails aft=
er
they have left our sphere of control.  We shall not, therefore, indemni=
fy
you for any damages resulting out of these circumstances.   If, despite=
 our
use of  anti-virus software, a virus enters your systems in connection =
with
the sending of the e-mail, you may not hold us liable for any damages t=
hat
may possibly arise in that connection.  We will accept liability which =
by
law we cannot exclude.=
 


More information about the SAP-WUG mailing list