Skip to Content
author's profile photo Former Member
Former Member

Workflow trigger

HI All

What about calling workflow using SAP_WAPI_CREATE_EVENT for all scenarios from an enhancement/Badi/customer exit instead of hassling with BO/events/SWEC?

Even for workflow for Material change/create/delete we can use an enhancement instead using BO BUS1001006 and event CREATE?

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 09, 2014 at 08:22 AM

    SAP_WAPI_CREATE_EVENT call in BADI/user exit/enhancement is a totally valid option. A lot of times it is much simpler than using change documents (SWEC) etc. and you will have a better control over things than with SWEC. You might have also some additional logic in your code (don't trigger the event always or deliver some additional data to the workflow through even paremeter, etc.).

    Kind regards,

    Karri

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 09, 2014 at 01:07 PM

    as Former Member said SAP_WAPI_CREATE_EVENT call in BADI/user exit/enhancement is a valid option. it's simply sometimes easier to use change documents / status changes and other workflow customizing options to raise events since you don't need to find a BADI or a user exit and most objects have change documents or other options. And you have the option to limit the triggering to specific field / status changes.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.