06-17-2008 4:19 AM
Hi friends,
I need to Use the objecttype : ISUCONTRCT
Event : Assessed
and trigger the standard work flow
so i am using the function module 'SWE_EVENT_CREATE'
could any one help me what are the input parameters that I need to pass
I am giving this input parameters, the control is goin into it and i can see the debugging,
I am getting the SY-SUBRC = 0.
I am passing the below Input parameters
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'ISUCONTRCT'
objkey = objkey " Contract Number
event = 'ASSESSED'.
Kindly help me
Thanks in Advance
Ganesh
06-17-2008 4:35 AM
Hi,
Refer the sample code
https://forums.sdn.sap.com/click.jspa?searchID=12961414&messageID=3003485
Regards
Kiran Sure
06-17-2008 5:33 AM
Hi Ganesh Yerramsetti,
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'PAYOH'
objkey = objkey
event = event
start_recfb_synchron = 'X'
IMPORTING
event_id = lf_event_id
TABLES
event_container = i_swcont
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
ENDFORM. " ext_event_gen_po
Object type, key and event are defined and working fine. Th event is triggered in the RFCDESTINATION system .
If we We raise an event by function SWE_EVENT_CREATE, and a Workflow is
launched by this event. A parameter of the event is bound with the WF container ; we pass this parameter to the function SWE_EVENT_CREATE. But the WF container element is not filled, although the workflow does start.
thanks
karthik
06-17-2008 10:18 AM
Hi,
objtype,obj key and event these parameters will be enough.
additionally u have to add COMMIT WORK statement at end of the function module.
Regards
Krishna