Calling a workflow task in program

Lyal Schumann, RMC UK Ltd Lyal.Schumann at RMC.CO.UK
Fri Dec 3 06:42:23 EST 2004


Hi Ananth
 
To run a method, you need to instantiate the object and then call the
method. Something like:
 
INCLUDE <cntn01>.
swc_container obj_cont .
DATA : obj_name TYPE swc_object ,
       obj_key  TYPE swo_typeid .
 
* Set your Object Key
MOVE '1234567890' TO obj_key .
 
* Instantiate the Object
swc_create_object obj_name 'BUSxxxx' obj_key .
 
* Set your Input Parameters in the Container
swc_set_element obj_cont : 'ShoeSize' '15' .
 
* And then call the Method
swc_call_method obj_name 'zKickMyDog' obj_cont .
 
And any Output Parameters will be stuck into your container.
 
Good Luck!
 
Lyal
 
 
-----Original Message-----
From: Ananth [mailto:write2ananth at gmail.com]
Sent: 03 December 2004 10:30
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Calling a workflow task in program
 
 
Hi All,
 
I have created a customised method which will be triggered by an
event. I want to execute this task from ABAP program. Can any one pls
let me know how to do this.
 
Thanks in advance,
Ananth
 
 
**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
 
This email is sent by a member of the RMC Group p.l.c. group of Companies.
RMC Group p.l.c. is registered in England under company no. 249776. The registered office address of RMC Group and its UK subsidiaries is RMC House, Coldharbour Lane, Thorpe, Egham, Surrey TW20 8TD.
 
This footnote also confirms that this email has been swept by MIMEsweeper for the presence of computer viruses.
 
www.mimesweeper.com
**********************************************************************
 


More information about the SAP-WUG mailing list