Can we trigger a workflow from e-mail create event?
Hi Experts,
My scenario is very simple-Whenever a mail is send for approval to the approver,two workitems-Approve or Reject should be created in the Appover's inbox.On clicking on any one workitem, corresponding mail for approval/reject should be sent.
My only doubt is how to trigger an event which will start the workflow. Also it should be triggered only when the mail is sent to a particular person-say admin and not to every individual.
Can you please guide me on this since I am new to workflows?
What I am looking for here is:-
a) The definition of E-mail creation event, which can trigger my workflow.
b) This definition has to be specific. I mean workflow should trigger only when a mail is send to admin.It should not trigger everytime a new mail is created in the system.
c) I thought that the business object for E-mail is activity-BUS2000110.But again activity can be anything-E-mail,task,telephonic conversation.Which business object should be used here?
Please give me some pointers on this.
Thanks and Regards,
Rohit
Hi Aditya,
Atlast somebody replied to my thread. Since yesterday I have created 3-4 threads and didn't got any single reponse.
Anyways, my query is:-
how to trigger the workflow? I know we need some event to trigger a workflow. Now how to generate this event, when the user is simply sending an e-mail to the admin for some approval request? How can an e-mail trigger an approval workflow in the background?
Any pointers/suggestions?
Thanks and Regards,
Rohit
Similar Messages
-
How can i trigger the workflow from REPORT
hi,
my requirement is, whenever Z... Report Is generated there is Icon called print. the write the code for printing icon. if printing Icon fails the workflow will be trigger.
how can i trigger this from report. and i send attachent of report with mail to next person to sap inbox.
pls let me know.
pls give any documentation if you have.
thanks & Regards
Sankar.Hi,
Workflow container
swc_container lt_container.
swc_create_container lt_container.
swc_set_table lt_container '<cont_name>' lit_int_tab.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = lc_objtyp
objkey = lv_objkey
event = lc_event_name
IMPORTING
event_id = lv_eventid
TABLES
event_container = lt_container
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
yv_err_flg = gc_true.
EXIT.
ENDIF.
Rgds,
Prakash -
Can we trigger other workflow from BADI- PT_GEN_REQ
Hi all,
I would like to know , if we can trigger other ( custom) workflows, using the badi - PT_GEN_REQ - method start_wf, instead of the standard workflow
( WS12300111).
Regards,
NRHi,
In the existing custom workflow ( WS20000081) which was modified earlier with some addditional 27 activities in it.
Now we are implementing EP7 , and in the standard leave request, uses standard WS12300111 worflow.
Is it possible that we can use old WF get triggered instead of the new one by using this BADI?
Regards,
NR. -
HOW TO TRIGGER AN WORKFLOW FROM A PROGRAM ?
HELLO THERE ,
CAN ANYBODY PLZ TELL ME HOW TO TRIGGER AN WORKFLOW FROM AN PROGRAM AND TO PAS THE VALUE TO THE CONTAINER ?Hello Neon,
If you want to trigger the workflow directly, use the FM, SWU_START_WORKFLOW
CALL FUNCTION 'SWU_START_WORKFLOW'
EXPORTING
task =
* LANGUAGE = SY-LANGU
user =
* SENDER_ID =
* IMPORTING
* RETURN_CODE =
* WORKITEM_ID =
tables
* CONTAINER =
* MESSAGE_LINES =
attachment_list =
A workflow can also be triggered by and event which is in turn triggered by a program.
By the FM, SWE_CREATE_EVENT
Example:
w_key = 'Connie'.
w_creator-otype = 'US'.
w_creator-objid = 'SAPDEV02'.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'YH_BUDDIES'
objkey = w_key
event = 'event'
creator = w_creator
* TAKE_WORKITEM_REQUESTER = ' '
* START_WITH_DELAY = ' '
* START_RECFB_SYNCHRON = ' '
* NO_COMMIT_FOR_QUEUE = ' '
* DEBUG_FLAG = ' '
* NO_LOGGING = ' '
* IDENT =
* IMPORTING
* EVENT_ID =
* TABLES
* EVENT_CONTAINER =
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
WRITE: / 'EVENT TRIGGERED'.
ENDIF.
COMMIT WORK.
Hope it helps you.
Regards
Indu. -
Is i possible to trigger a workflow from the creation of an event in iCal
Is i possible to trigger a workflow from the creation of an event in iCal
Or is is possible to create a workflow to ad events to an iCal calendar which then triggers the workflow or is combined with the ad events workflow.
GraemeHmm, nope. Not that I'm aware of. Very few apps allow you to hook scripts directly to user activity. Finder* is a notable exception. iCal's "publish" feature has the ability to auto-update after user activity, but you'll either need dot mac accounts or your own webdav server to get that working.
I'd re-consider the idea of triggering a periodic workflow with iCal. That way if the computer is shut down or asleep, iCal will wait to run the workflow at its next opportunity. You could hide the unsightly repeating events in a second calendar so they're out of the way.
The next best thing is to write a faceless AppleScript application with a long-duration idle handler. The user would simply add it to their login items in System Preferences. This would also resume its cycle after sleep or shutdown.
Yet another option is to write an AppleScript that can register itself in the crontab. This has the advantage of running at a predictable time. If you're careful, you can even set the script to wake up or power on the computer as necessary.
* Folder action scripts can be triggered when files are created, moved, or deleted, but not when they're merely updated. This probably rules out much of iCal's activities in ~/library/application support/ical/. -
How to trigger the workflow from the excel sheet
hello friends,
my problem is that i should trigger the workflow from a excel sheet which contains a list of appraisers and appraisees.how to do this. can anyone help on this.
thanks.Hi Murthy,
If you are asking if a workflow can be started on R/3 while in Excel - may be possible if you can develop some fancy macros that can make RFC calls to an ABAP function module. I won't even attempt to travel that route.
Save the excel sheet as CSV or Tab delimited file and process it using ABAP. You can use the WAPI function module SAP_WAPI_CREATE_EVENT (Rel 4.7)to start the Workflow by raising the relevant event. In earlier releases, see FM SWE_EVENT_CREATE.
Please do keep in mind there could be performance and response time issues for dialog users of the system if you are going to start several workflows using a report program.
Cheers,
Ramki. -
How to trigger the workflow from RFC
Hi,
I need to trigger a workflow from a RFC.How can I call the event and start my workflow?
How can i do this?
please advice.
Thanks,
AnandHello Anand,
Goto swetypv transaction.Mention the abap class/bor object with the corresponding event.
In the receiver type, just mention some unique name.In the receiver function module mention the async RFC.
Mention the SENDER TYPE SIBFLPORB Local Persistent Object Reference - BOR Compatible
EVENT TYPE SIBFEVENT Event
RECTYPE TYPE SWFERECTYP Name of Receiver Type
HANDLER TYPE SIBFLPORB Local Persistent Object Reference - BOR Compatible
EXCEPTIONS_ALLOWED TYPE SWEFLAGS-EXC_OK SPACE Checkbox
XML_SIZE TYPE SWF_XMLSIZ Size in Bytes
EVENT_CONTAINER TYPE SWF_XMLCNT Container as XML Stream of Fixed Width
So that the guid can be used inorder to identify the instance.
you can use : "sap_wapi_start_workflow" fn module.
Hope this helps.
Best Regards,
Saujanya -
Trigger an workflow from webdynpro abap.
hai
gurus!
iam new to webdynpro.iam femilier with workflow . can anybody explain me with an clear example, how to trigger an workflow from webdynpro abap.
regards
roseHi Rose
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf">Click</a> Here, to know the step by step procedure of using Webdynpro in Workflows
Use SAP_WAPI_START_WORKFLOW RFC
Regards
Abhimanyu L
Message was edited by:
Abhimanyu Lagishetti -
Want to trigger the workflow from MIGO
Hi Experts,
I want to trigger the workflow from MIGO transaction and should handle the created material document number (i.e. I am doing the goods receipt for the process order, when he post it, the material document details (material doc number) should be mailed immediately when it is created). Please give me the suggestions for the same.
Thanks & Regards,
Ravi.Dear Ravi,
Please refer this link [Trigger workflow from MIGO tcode|Trigger workflow in MIGO Tcode;.
KR,
Bharath -
2013 Workflows - Trigger a workflow from a Content Type
So now that a workflow cannot be triggered from a Content Type, how are people doing this now?
Any suggestions appreciated.
Thanks
J SykesHi,
According to your description, my understanding is that you want to trigger a workflow from a Content Type.
As we all know, we can attach a workflow to a Content Type, but the workflow cannot run until the Content Type is added to a list or library.
The elements of a list content type include the columns of metadata that are associated with the content type and workflows that can run on items of that content type.
More information about the content type and workflow are provided in the link below:
http://technet.microsoft.com/en-us/library/cc262735.aspx
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
How can I export email addresses from apple mail?
How can I export email addresses from Apple Mail?
Just to be CRISTAL CLEAR please don't reply with export instructions from the address book.....not interested in this.
I have customers that fill-out a request form online, then the data is sent to our database on our server, and another copy is sent to my email account. The server database got corrupted and is now lost. The only data left are in my email app called APPLE MAIL. I have created Filtered Folders so the data is just in one Folder, not mixed with all other emails. Is there a way to export the email names & addresses from APPLE MAIL to a CVS file or Excel file?
Again this is not a question related to Apple Address Book. This is ONLY for Apple MAIL exporting!
ThanksThere is a collection of AppleScripts called Mail Scripts you can download at this link.
http://homepage.mac.com/aamann/Mail_Scripts.html
The script to use from the collection of scripts is Add Addresses (Mail) which adds addresses found in the selected messages (in the header fields "From", "To", "Cc", and "Bcc") to the Address Book. This is much more flexible than the "Add Sender to Address Book" available in Mail and provides a convenient way for creating mailing lists. -
Can i trigger jar app. from as3
Can i trigger jar app. from as3.
i'm trying like this..but i getting error.
var jarPath:String ="http://websitename.com/folder/JavaApplets/ScreenRecorder.jar";
record_btn.addEventListener(MouseEvent.CLICK, recordClick);
function recordClick(event:MouseEvent):void
var jarLoader:Loader = new Loader();
var jarRequest:URLRequest = new URLRequest(jarPath);
jarLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, jarError_Handler);
jarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, jarCompleteHandler);
jarLoader.load(jarRequest);
addChild(jarLoader);
function jarCompleteHandler(e:Event):void
function jarError_Handler(error_Event:IOErrorEvent):void
trace(error_Event);
Error:
[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2124: Loaded file is an unknown type. URL: http://sitename.com/folder/JavaApplets/ScreenRecorder.jar"]
or any other solution through flash button click.You cannot load Java applets into the Flash movie display list. I was going to test if Java applets run in a HTML loaded into a StageWebView (AIR only), but never got around to it Another approach is to let Flash call javascript to write the applet embed code in the HTML.
Kenneth Kawamoto
http://www.materiaprima.co.uk/ -
I have two email accounts. However, the iPad automatically uses the account that I only want to use for business. How can I change the account from which mail is sent and received?
You are most welcome
-
How to Trigger a Workflow from ABAP Webdynpro
Hi All Gurus,
I have the following urgent requirement, my client is implementing HR and there is a requirement, where is a ABAP Webdynpro component in which we have integrated a Adobe Interactive Form. When the user calls this from through Portal and fills out the relevant data and submits it, a Workflow in the backend ECC system should lauch,
I am not familiar with, this concept although I have worked in Workflow this is the first time I am interfacind with ABAP Webdynpro and Adobe Interactive From.
Can you please let me know in steps what needs to be done to make the workflow trigger for my scenario and also the specific settings to be done in the bacckend.
Regards,
Pratima JainHi,
If you are using HCM Processes and Forms, the Workflow and form are not directly related, thats true.
But the method in the task calls the corresponding webdynpro application which responds to the action triggered by the user in turn to trigger the workflow and update the data in the HR Master Data.
There are 3 layers 1. UI (webdynpro which launches Adobe Interactive form based on ISR Framework)
2. Workflow
3. Backend framework (used for retrieving F4 helps, default values, save data in the infotypes).
for more documentation, please refer it on help.sap.com.
http://help.sap.com/erp2005_ehp_03/helpdata/EN/82/b6b94278560c31e10000000a1550b0/content.htm
hope this helps.
Best Regards,
Saujanya. -
How to trigger MDM Workflow from ABAP Program.
HI
I have requriment to trigger MDM Workflow(Design in MDM) from My Module pool program. Suggest how to do it?
Thanks in Advance.
Regards,
Shyam Babu Sah.Hi,
This question is for forum SAP Netweaver --> Workflow. There are functions and programmes that SAP delivers for this.
[Example here|Re: How can I trigger workflow from my report]
Maybe you are looking for
-
Problem with Hibernate Connection and MySQL
I have the following setup: J2EE web-application, Java Servlets, Jsp, Hibernate for DB persistence, MySQL 4 (InnoDB tables) I have not specified any connection pool parameters (c3p0) in my hibernate.cfg.xml, as the default settings should suffice for
-
OBIEE 11g Recent Reports in a custom dashboard
Hi, I have a requirement to put "Recent Report" of a user in a Custom built Dashboard. I know this functionality is available in OBIEE 11g home page. But our requirement is to put the same sections in few Custom Dashboards. Please let me know if this
-
Previous Automator task no longer working in Leopard
Here's what I had - I use the Sonos music system which has a limit on total metadata. The longer the file path the more data was used. Therefore the folder system set up by iTunes (which I could not get rid of no matter what I tried) would end up usi
-
How Reset Workflow options in ACR?
I looked up workflow, but didn't find any discussions, and I can find items online that tell me how to SET workflow, but so far, I can't find anything that tells me how to RESET workflow....... I don't want it to do ANYTHING. I don't want it to set
-
Sales order error - Only 0 EA of material 24 is available
Hi friends, I got this message during sales order creation 'Only 0 EA of material 24 is available'. I checked for solutions for similar problem in this forum by search button. Could get hold of two unanswered question. I tried possibilities listed th