cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module to Trigger a TASK

Former Member
0 Kudos

Hi Friends,

I want to trigger a TASK by the Trigger Event manually.

Is there any Function Module to trigger a TASK.

Regards

Sridhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

<p>

CALL FUNCTION 'SWW_WI_CREATE_VIA_EVENT'

EXPORTING

event = " swetypecou-event "Name of Event

rectype = " swetypecou-rectype "Type of Event Receiver, Here: Task ID

objtype = " swetypecou-objtype "Type of Triggering Object

objkey = " sweinstcou-objkey "Key of Triggering Object

IMPORTING

rec_id = " swelog-recid "Key of Receiving Object

TABLES

event_container = " swcont "Event Container

.

This function module as delay option also, since you are manually triggering the task you may need some time for database updates and start your workflow.

</p>

Former Member
0 Kudos

Thank You Chandra Sekhar.

Answers (1)

Answers (1)

Former Member
0 Kudos

Do you want trigger a worklfow templete or task

if it worklfow templete user this fm --> SWW_WI_CREATE_VIA_EVENT