Triggering of an event

Question: hi,

my requirment is that ,when a user is created in SAP trx su01 it should trigger a buisness object event or an workflow event which would then go ahead and update some data in an custom table.

is it possible by workflow or do we have to trigger the event manually.

thanks,
rgds,
santosh

Answer:
The business objects that might be useful to you are USER (R/3 system user), USR01 (SAP User) or USR01DOHR (SAP user with HR master data) but unfortunately none of these objects have events defined. So, you will have to writre an event for these objects.

Alternatively you can develop a workflow by using trasaction SWUY with application 01 and message 102.

Answer:
hi ,

thanks for the response ,
but for object user we do have events like,create,change,delete my question is what all procedures are there to trigger these events automatically.

like if i want create event to be triggered does it happen automatically when a user is created.

thanks,
rgds,
santosh

Answer:
If you have all the events. Have you checked your binding? You can create an instace of the object and then use the same parameters values to test your workflow.

Most probably your workflow/task binding is not working. check whether it is green in colour. There is a setting which makes workflow binding inactive when there is a problem with the event. So better check and test your binding.

Answer:
If you have all the events. Have you checked your binding? You can create an instace of the object and then use the same parameters values to test your workflow.

Most probably your workflow/task binding is not working. check whether it is green in colour. There is a setting which makes workflow binding inactive when there is a problem with the event. So better check and test your binding.

Answer:
You should possibly be looking at event USER-CLONED.
Switch on the even trace SWELS and then check the trace (SWEL) after creating a user to see if this event is raised.
I am not 100% sure in which cases this event is raised, but I can see entries for this in the event trace of one of our systems.

I'm not sure how you will raise a custom event. You would normally do this using Function SWE_EVENT_CREATE, possibly in a user exit, but where would you do this in SU01??

Allan

Answer:
It sounds like you're looking for how to link the event to the WF.
From within the workflow builder (swdd) click Goto --> Basic Data (Ctrl-F then click the Start Events tab and enter the object info and make sure you 'Activate' by clicking the grey diamond until it is a green circle.

HTH,
Timothy Harris
Copyright ?2007 - 2008 www.jt77.com