Skip to Content

Restricting workflow

Hi!

I implemented a simple workflow that will send an email when a material is changed in MM02. However, there is an additional requirement such that the workflow should only be triggered for a certain material group MARA-MATKL.

Is there a way to achieve this? I was thinking it should be done via the user-exit. But I'm not sure how to trigger the workflow from there. Can anyone please advise?

select single matkl from mara into lv_matkl where matnr = wmara-matnr.

if lv_matkl = '0110'

* execute / trigger the workflow

endif.

Thanks,

Cholen

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on May 16, 2015 at 08:38 PM

    Resolved - by creating new attribute on the BOR object. Reference for solution: .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 14, 2015 at 01:26 AM

    Hi Cholen,

    You can use transaction SWB_COND to create a new start condition for your workflow.

    Regards,

    Custodio

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Custodio,

      I could not figure out how SWB_COND works. Obviously I'm new to this but I found it can also be done in the triggering event from SWDD. I found the an expression for material group. But another one I need is the cross-plant status (MSTAE). Unfortunately I don't see it here though. Any thoughts?

      Capture.JPG (48.3 kB)

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.