Defining a new method for business object

Das, Raj c-rdas at state.pa.us
Thu Feb 7 09:53:38 EST 2002


Hi Ronen,
 
In the method check for the function key.
 
If the user press "CANCEL' or 'EXIT' ,
 
then attached following code 'EXIT_CANCELLED'.
 
It will take care of the problem.
 
Raj Das
 
-----Original Message-----
From: Ronen at mccann-kb.co.il [mailto:Ronen at mccann-kb.co.il]
Sent: Thursday, February 07, 2002 9: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