Defining a new method for business object

Smith, Cassaundra Cassaundra.Smith at anheuser-busch.com
Thu Feb 7 10:15:25 EST 2002


Hi Ronen,
 
In 4.6c there is a setting for tasks called 'confirm end of processing'.  Upon
setting this, the end of processing for the task must be confirmed explicitly.
My experience with this has been that it is  an extra step for users which they
usually don't pay a lot of attention to.  Eventhough they may have been done
with the step, they don't confirm this and the workflow just hangs there in
their inbox until we get a support call for it.  Another thing you may want to
consider is within your method, check to see what your user chooses, 'save' or
'exit', and if they choose 'save' set a flag that can be checked within a
workflow loop.  If the flag is set, exit the loop and move forward in the
workflow.  Or you could raise a terminating event for the task so that the
workflow will know to move forward.  If they choose 'exit' don't raise the
terminating event or exit the loop and the workflow will wait at that point.
 
Hope this helps.
 
Casey
 
-----Original Message-----
From: Ronen at mccann-kb.co.il [mailto:Ronen at mccann-kb.co.il]
Sent: Thursday, February 07, 2002 8:33 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Defining a new method for business object
 
 
Dear workflow people,
 
I am in the stages of building my first 'serious' method for a business object.
 
A function module has been written, and this function module is called from the
method.
 
The function module is a simple dialog screen in which the user inputs data in
one field
 
The source code in the method looks like this:
 
BEGIN_METHOD BBC_SCORE_STRATEGY CHANGING CONTAINER.
data:
BBC_SCORE TYPE NUM03,
 
CALL FUNCTION 'Z_WF_BBC_STRATEGY'
 IMPORTING
   BBC_SCORE                  = BBC_SCORE
 
SWC_SET_element CONTAINER 'bbc_score' bbc_score.
 
END_METHOD.
 
A task is defined based on this method.
 
My problem: in the workflow, the task is always completed, without difference if
the user chooses 'save' or 'exit' or 'cancel' in the dialog screen (the function
module)
 
Am I missing something in the source code of the method ?
 
The desired situation is that if the user chooses 'exit' or 'cancel' without
saving, the task will not be completed.
 
Thanks in advance for your help.
 
Best regards
 
Ronen
 


More information about the SAP-WUG mailing list