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: 

standard event to trigger a workflow (urgent)

Former Member
0 Kudos
115

hi all,

actually i have a Z table (customised data base table) i want whenever the table gets updated an event should trigger a workflow.

Thanks in advance

Kingshuk

3 REPLIES 3

Vinod_Chandran
Active Contributor
0 Kudos
78

Hi,

How are you updating the database? If it is through a program you can call the function module SWE_EVENT_CREATE to raise an event. This event can be linked to a workflow.

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING

objtype = <- Your object

objkey = <- Key of the table

event = <- Event name

EXCEPTIONS

OBJTYPE_NOT_FOUND = 1

OTHERS = 2

Thanks

Vinod

0 Kudos
78

Hello,

Do not forget to do a commit work.

/Peter

Former Member
0 Kudos
78

Hi,

What Vinod and Peter suggested is definitely a good solution.

Also you can try the use of change documents to trigger your workflow task. For that you need to activate change documents and then link it to your task.

Imp Transactions : SCDO and SWEC.

Let me know if this approach helps you.

Thanks, Debasish