Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

what parameters to be passed to 'SWE_EVENT_CREATE'

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

Former Member
0 Kudos

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

Former Member
0 Kudos

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