on 07-31-2015 7:51 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.