05-13-2015 8:36 PM
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
05-16-2015 9:38 PM
05-14-2015 2:26 AM
Hi Cholen,
You can use transaction SWB_COND to create a new start condition for your workflow.
Regards,
Custodio
05-14-2015 12:19 PM
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?
05-16-2015 9:38 PM
05-18-2015 4:03 AM
Good to see that you solved it and that a 10 years old thread is still helping.