cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow on Plant Maintenance Work Permit - Solution

Former Member
0 Kudos

Hi,

We have a scenario in which we want to send mail to concerned user if permits are assigned at maintenance order (IW31).

Please help me know how to trigger the workflow in this scenario. Is there any standard solution available or will i have to go for any customization/ABAP?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

SandySingh
Active Contributor
0 Kudos

Hello

If you are looking for a workflow and email sending via userexit is not a agreed approach based on business requirement then you can use BOR BUS2007 with created event to trigger the workflow.

Once the workflow is triggered then you can use email sending step to trigger email.

Regards

Sandy

Former Member
0 Kudos

Thats exactly what I am trying to achieve, but i cant find any attribute/field which can be used to identify the permit and therefore cant use any condition based criteria to send mail.

Can you please tell me any attribute which shall indicate me that permits have been issued on that particular maintenance order.

Thanks for your prompt reply

SandySingh
Active Contributor
0 Kudos

Hello

You can use the "Check Function Module" in Transaction SWE2 for BOR object and event to check the condition for triggering this workflow. You have the notification number as object key BOR BUS2007. Using the notification number you can query the tables and check if permits are assigned to the maintenance order. You can use FM

PM_ORDER_DATA_READ

BAPI_ALM_CONF_GETDETAIL

Check Function Module - Roles in Workflow - SAP Library

Regards

Sandy

Answers (1)

Answers (1)

SandySingh
Active Contributor
0 Kudos

Hello

You dont have to create a workflow for sending email. You can look for a User EXit/BADI/Implicit Enhancement Implementation and send email using CL_BCS* class. Refer to programs BCS_EXAMPLE* in SE38 for reference for mail sending.

You can refer following link for a userexit that gets triggered at save of IW31. You can place a email sending code in this userexit based on your conditions

Other userexits

user exit / Badi for iw31 | SCN

Regards

Sandy