Defining a new method for business object

Jensen, Ralph ralph.jensen at sap.com
Thu Feb 7 11:37:49 EST 2002


Ronen,
 
What is the condition that you're evaluating after the score is returned
through your container?
 
Regards,
Ralph
 
-----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