‎2005 Dec 21 2:53 PM
Hi ,
I want a Workflow to trigger when a Service Entry
Sheet is blocked for release (ESSR-FRGRL=X).
I have found Business object BUS2091 which does not
have any event for 'Blocked for Release'.
If I create mu object type (as a supertype to BUS2091) and add the above event
to it,then how can I trigger the event when I save the Service Entry Sheet ?
Any help is gratefully appreciated.
Thanks,
Sandip.
Ph: +44 121 683 2561.
‎2005 Dec 21 3:06 PM
You look to see if there is a suitable user exit that you can insert your code to trigger the WF. Alternatively you may have to make a core code change.
Dave
‎2005 Dec 21 3:06 PM
You look to see if there is a suitable user exit that you can insert your code to trigger the WF. Alternatively you may have to make a core code change.
Dave
‎2005 Dec 21 3:30 PM
‎2005 Dec 21 3:31 PM
There is a function module SAP_WAPI_CREATE_EVENT. The parameters are the object type, object key, and event name. There is an optional container parameter that lets you pass in things like the latest end date etc.
You can use this to raise your triggering event manually in a program. However, you will want to use caution and not raise the event before the data is committed to the database. You can use the COMMIT statement inside your program to do this or if you are in a user exit in an SAP program, the better option would be to call the function module in update task.
There are other options to raise your event automatically. You could check for an appropriate change document object (or create one), you could look into the status management area and see if anything there might do the trick.
But the easiest way is to call the Function module.
Hope this helps.
Regards,
Brent