Application Development and Automation 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: 
Read only

Workflow : How to trigger my event in Z-object type ?

Former Member
0 Likes
471

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
403

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

3 REPLIES 3
Read only

Former Member
0 Likes
404

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

Read only

0 Likes
403

That's great,thanks a lot dave.

Read only

Former Member
0 Likes
403

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