How to trigger an event when a file is created.
Hi!
I need labview to wait until a file is created in a certain folder (by other program) and then perform a task.
Is this possible?
I have no idea how to implement it.
Thank you!
Solved!
Go to Solution.
File System Watcher does what you want if you don't want to poll.
I can't remember where I found this VI but attached is an example of it working.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
Attachments:
Monitor File Changes FileSystemWatcher_working.vi 37 KB
Similar Messages
-
How to trigger a event when WBS gets changed in Cj02
Hello,
I have a requirement where I need to send create an idoc and send the idoc to external system when WBS is created or changed. Currently, I have the following setup:
- I have created a YBUS2054 as a subtype of BUS2054 using SWO1
- YBUS2054 has been delegated to BUS2054
- created an CHANGED event in the YBUS2054. This event is implemented and then released
- created a type linkage (object type=YBUS2054, event=CHANGED, receiver type null, and receiver function module = zz_create_wbs_idoc) using SWETYPV. This function is supposed to create an idoc when CHANGED event occurs. I just don't know how to trigger the event to occur.
- all the port, define idoc type, logical system, and etc are setup
- when I try to create an entry in "Event for Chagne Document" using SWEC with change doc object=PROJ, business object type = YBUS2054, with on change, I get "Key for change doc object PROJ and business object type YBUS2054 are incompatible".
I tried various configurations, and I was not successfully in creating an event on CHANGED
can you please advise what I am missing in getting the changed event to trigger?
Thank you in advance,
ShawnHi,
If the change doc doesnt exist, check if you can create an event using BSVW.
Also use the event log to see if there are other sap standard events happening.
I checked the package belonging to CJ02 to see if there is something useable, but didn't find anything: CN_PSP_OPR
If there are no sap standard ways to get an event, you'll have to find a badi/enhancement spot and include some coding to start the event using fm SAP_WAPI_CREATE_EVENT.
Kind regards, Rob Dielemans -
How to trigger an event when a job is cancelled
Hi,
Can anyone help me out wid a transaction that will trigger an event when a job is
cancelled....??
My scenario is :
When a job is cancelled (SM37) or in cancelled status i want notify to certain ppl thru emails.
How do i go abt doing the same??
Its Urgent...
Answers will be rewarded.
regards,
RohanHi,
please check out the link below it might help you
http://help.sap.com/saphelp_nw2004s/helpdata/en/71/a8a77955bc11d194aa0000e8353423/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/97d2e8b3-0b01-0010-b787-b8ce558a51c2
for table name and list of function please check out the links below it will help you
http://www.erpgenie.com/sap/abap/tables_system.htm
http://www.sap-img.com/abap/function-list.htm
**************please reward points if the information is helpful to you********** -
How to Trigger a Workflow when work order is created
HI Everbody,
Please help me in this.
When Work order is created , system has to trigger work flow to notify the person who has submiitted the request . Use the Created by field on the associated notification field to identify the person.
Thanks in Advance,
Ram.Hi Ram,
May be you can go thro the following links to know more about it.
http://help.sap.com/saphelp_nw04/helpdata/en/b1/8b753a5e831e45e10000000a114084/frameset.htm
Work Flow Triggering when purchase order is released
http://help.sap.com/saphelp_nw04s/helpdata/en/71/a8a77955bc11d194aa0000e8353423/frameset.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/c5/e4af8b453d11d189430000e829fbbd/frameset.htm
Hope these help.
Regards,
Raj -
How to trigger a Report when a file is placed in Application server
Hi All,
How to triggger a Report and get executed when a new file is placed in the application server.?
It will be helpful if a Navigation is provided for the EVENT.
Thanks in advance
ChakriHi,
Check what is the frequency of the file coming to the application server.
Schedule your program in SM36 giving data and time make it periodic . select the check box Periodic Job
and then select the period values and give the period values as per the frequency of the file coming to app server.
Thanks,
Harini -
Figuring out how to trigger an event when a component is visible on screen?
Hey guys, I got this arraycollection i'm setting on TAB 1 of
my tab navigator. I'm using this array collection as a dataprovider
for my grid on TAB 2. I dynamically add rows with an AS function
and that seems to work fine when i click on a button on tab 2.
However, I want my function to get called everytime i switch
from tab 1 to tab 2.
It seems simple enough but some events seem to run the
function more than once and that probably isn't the most efficient
way like the render event or updateComplete.also, what I'm noticing is if i have:
-main application Tab Navigator with 2 canvases
-- Canvas1
---componentA
---componentB
--Canvas2
---ComponentD
---ComponentE
the show event registers for Canvas1 and 2 but never
dispatches for the canvas inside of any of the components?? Any
ideas? -
How to trigger a event when there in any change in category in the service request
Hello Experts
I need to set Employee responsible dynamically when the exact category is chosen in the service request. i am following a approach to register a function module in the crmv_events so that the event will be called as soon as categorization is changed in service request.I have never configured crmv_events.please guide me its urgent.
Please tell me if a better approach is available.
I will award points immediately .Reply as early as possible as its urgent.
Thanks in advanceHi Rashmi,
I would say, instead of doing it from any event function module, do it from web ui bol layer itself.
Define get P method of category and set event on the value change. Create that same event from event handler and write the code for getting(use FM) and setting emp responsible in that event using bol programming.
Please let me know if you need the codes for doing all this.
It would be great if you can paste the the screen shot of the view you are using in web ui.
Thanks,
Bhushan -
How to trigger the event when leave current iView
Hi Expert,
We have this common senario: when leave current iView(eg, change the menu, close the window etc) we need to notify user whether they want to save current content or not, but I found wdDoExit(in views or coponent controller) can not be triggered
Is there any event we can use to reside these logic?
Thanks in advance.
Best Regards,
WilliamHow about trying to use the wdDoBeforeAction event? You can use a flag to keep track of whether or not there is unsaved data, and check it in the above-mentioned event.
Walter -
How to trigger own events?
How can you create your own events to be triggered?
For instance, I have an InputStream that I've got through a Socket that's listening for incoming data. I want to signal/trigger an event when data comes in so that the gui (in another class) can take appropriate actions. How can you do this?The basic idea is this:
public interface SockeListener
void dataEvent(/* pass a parameter if needed. Often an event interface is added */);
public class MySocket
private final List listeners = new ArrayList();
public void addListener(SocketListener listener)
listeners.add(listener);
public void removeListener(SocketListener listener)
listeners.remove(listener);
private void triggerEvent()
for (Iterator i = listeners.iterator(); i.hasNext();)
((SocketListener) i).dataEvent();
}Check out the PropertyChangeSupport class also. -
How to trigger an event in the program
Hi,
I have a program. The purpose of the program is to retrieve the data matching the selection criteria and downlod the same to a file.
In the selection screen, I have a parameter called 'EVENT'. Here, user enters some event name. Generally, they enter the 'Background job processing events'.
So, my requirement is... once the files are successfully downloaded, the program should trigger the 'EVENT' specified in the selection screen at run time.
Can someone help me in this regard. How to trigger an EVENT in the program. Is there any Function Module or Method available in SAP which triggers the EVENT at runtime.
And is there any table available in SAP which stores all the events available in SAP. Because, whenever the user enters an EVENT in the selection screen, we should check whether the event is valid or not. So, if there is any table available which has all the events then, it will be easy I guess. or is there any other way to validate the EVENT name.
Please help me. Thanks in advance,
Best Regards,
Paddu.Hello Paddu,
have a look at tables
- btcsev, btcsed (system events)
- btcuev, btcued (user events)
and use function BP_EVENT_RAISE.
kind regards
Walter Habich -
How to trigger a workflow when data inside a table changes
Hi
How to trigger a workflow when data inside a table changes ??
We need to trigger a workflow when STAT2 field value in PA0000 table changes.
rgds
ChemmanzMake use of Business Object BUS1065. In this business Object you have an attribute Status which you can use. There are a number of events that will get triggered when the status is changed.
Thanks
Arghadip -
Dictionary Search Help - how to trigger an event after F4 help
Hi,
I been searching the web lately to find a way to trigger an event after using the F4 input help.
Here is an example of what I would like to do:
- I have a WD form with a inputfield in it.
- The input field is bound to datalement "LIFNR".
- In my context I have specified the Input Help Mode to "Dictionary Search Help"
- And the Dictionay Search Help is set to "KRED"
A user will the click on F4 to start the Search help, then pick a LIFNR and the WD inputfield wil be filled.
What I want is to trigger an event when this is happening.
Does anyone have som tips or guides for me regarding this problem?
Thanks in advance! =)Hi Mathias Hagen
Actually there is no straight way of doing this , but still you can trigger a event in F4 search help ... below is very informative blog to trigger the F4 search help by chris
Firing a WDA event on using a Search Help - how to do it, without an NDA
regards
Chinnaiya P -
How to trigger left_click_run event on ALV GRID
Hiiiiiiii........
Can any of u please tell me how to trigger left_click_run event on ALV GRID.
There is an event LEFT_CLICK_RUN and its a public accessed event. But the problem is , the corresponding attribute of this event "EVENT_LEFT_CLICK_RUN" which is needed to registered that event (We need to register our events through a method set_register_events using table of type cntl_simple_events...) is protect accessed. So I am unable to use that attribute...Could u please tell me is there any alternative way to register that event.......ANY POSSIBLE WAY?
Thanks in advance,
RamsI think you should use event selection_changed. Note that you shouldn't allow multiple selection for the tree at the same time, i.e. use: create object g_tree exporting \[...\] node_selection_mode = cl_gui_column_tree=>node_sel_mode_single.
For more information, see this thread: Urgently required : cl_gui_alv_tree single_click event... -
How to trigger email notification when users fail to reset your password in fim 2010 r2.
Hi,
how to trigger email notification when users fail to reset your password in fim 2010 r2
Regards
Anil KumarHi Sylvain,
I did all thing as you told me.First i created Criteria based Set after this we created a Workflow type Action and Actvities Type Notifcation Email template and finally i called this Workflow in MPR as Set Transition and call Set that i was created below.and
check Advance View of Set this gives
<Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect"
xmlns="/Request[(Creator">http://schemas.xmlsoap.org/ws/2004/09/enumeration">/Request[(Creator = 'b0b36673-d43b-4cfa-a7a2-aff14fd90522') and (RequestStatus = 'Denied or PostProcessingError')]</Filter>
But this is not working for me so please tell me where i am wrong.
Regards
Anil Kumar -
Hi,
How to trigger email notification when users fail to give correct answers to reset your password in fim 2010 r2
Senario:I want put wrong answering to the Questions that i was during registration if i give wrong answers to the questions then a Email Notification should be trigger to Users.
Regards
Anil KumarHi Sylvain,
I did all thing as you told me.First i created Criteria based Set after this we created a Workflow type Action and Actvities Type Notifcation Email template and finally i called this Workflow in MPR as Set Transition and call Set that i was created below.and
check Advance View of Set this gives
<Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect"
xmlns="/Request[(Creator">http://schemas.xmlsoap.org/ws/2004/09/enumeration">/Request[(Creator = 'b0b36673-d43b-4cfa-a7a2-aff14fd90522') and (RequestStatus = 'Denied or PostProcessingError')]</Filter>
But this is not working for me so please tell me where i am wrong.
Regards
Anil Kumar
Maybe you are looking for
-
Enabled Usage Rights turned off when form filled out in Acrobat vs Reader
I created a form in Acrobat Pro 9 and enabled the usage rights so the end user can save the form. Anyone who opens it and fills it in using Reader has no problem. However, if one user begins filling it in using Acrobat (so far only Std to my knowledg
-
Some websites such as tagged.com or www.speedtest.net to name a few. Does not display the complete page but if I go and use another brand other then FireFox the page works well. Why is that?
-
Hi, I'm using Captivate 7 in developing my courses. My course usually comprise of different modules and one final exam at the end. Each module have 2 random questions at the end which should not be graded, and one final exam at the end that is graded
-
Can I identify IMEI of my stolen iPhone 5 with serial number?
Can I identify IMEI of my stolen iPhone 5 with serial number? I've not using iTunes, only iCloud, and only I have is my serial number DNPK423DDTTR.
-
I know this question may have been asked but please bear with me: I have a iPhone 4S ( 16 GB ) and a iPad Air ( 32 GB ). Most of my photos are taken on my iPhone and I can view these photos on my iPad via the Photo Stream (which I know will only disp