Labview event problem

Hi guys
I have a problem with the event case. I have a Button called "CON". This Button have to start two deferent Event Structurs by change his value, but not on the same time.
Between the Event Structurs i have two Case structurs with other stuff. Wehn i first press the button, it will be make the stuff twice (like i press the button twice). I have no idea why.
thanks for Help

Because each event structure has its own event queue.  So when you press the button, all event structures that are registered for that value change event will have it queued up.  So your first event structure sees the event and runs that event case.  The second event structure can't run yet due to data flow, but it has the event queued up.  So when that second event structure is reached, it can run that event case.
In general, your VI should only have 1 event structure.  This makes handling events A LOT simpler.  Look into the state machine.  That will help you handle your events properly and in a central location.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • InputField fire event problem in webDynpro

    I have one validation or Fire Event problem with respect to Inputfield in web Dynpro.
    I have one Input filed and created the context varible for that, then i mapped the context varible to the InputField, and i changed the context varible type as date.So , when i run the view , it will show the calender near to the text box to select the perticular date. On select of the perticular date. It will populate selected  date in to the inputField.
    On selection of the perticular date. Based on the date i want to generate the next 12 months date at runtime in different text boxes. But the only event available for the InputField is only "onEnter". This is not useful in my case, bcz on selection of the Date , the user may not use the Enter key. so , how can use the other events like onSelection or onChange events in the InputFields to reach my needs.
    Any one  give me the idea to solve this problem.
    Vijay

    Hello Vishal,
    You may also refer the sample code in the below link
    <a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8">http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8</a>
    Regards,
    Sudeep.

  • More event problems

    Hello again, I have yet another event problem. When I try to use this code I get an error saying Abstract class actionPerformed is not implemented in non- abstract class TableWindow. I'm not quit sure how I'm supposed to implement it.

    Here is what I believe to be the relevant code. addWindowListener works but addFocusListener returns the error.
    // Table window
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class TableWindow extends Frame implements ActionListener
    public TableWindow ()
    Create Window
    super ("Test Window");
    setBackground (SystemColor.control);
    setLocation (0, 0);
    setLayout (new GridLayout (5, 5));
    addWindowListener (new WindowAdapter ()
    public void windowClosing (WindowEvent e)
    try
    if (Connected == true)
    // Close the Statement
    stmt.close ();
    // Close the connection
    con.close ();
    catch (SQLException sqle)
    dispose ();
    System.exit (0);
    tPane = new JTabbedPane ();
    tPane.addChangeListener (new ChangeListener ()
    public void stateChanged (ChangeEvent c)
    //Status.setText ("Clicked");
    tablePane = new JPanel ();
    recordPane = new JPanel ();
    recordPane.addFocusListener(new FocusListener()
    public void focusGained(FocusEvent e)
    Status.setText ("Clicked");
    queryPane = new JPanel ();
    TName1 = new TextField (25);
    TName2 = new TextField (25);
    TName3 = new TextField (25);
    idField = new TextField (10);
    idField2 = new TextField (10);
    TitleField = new TextField (25);
    TitleField2 = new TextField (25);
    result = new TextArea ("Under Construction", 5, 30);
    NewT = new Button ("New Table");
    NewR = new Button ("New Record");
    NewQ = new Button ("New Query");
    NewT.addActionListener (this);
    NewR.addActionListener (this);
    NewQ.addActionListener (this);
    TNameLabel1 = new Label ("Enter name of table here");
    TNameLabel2 = new Label ("Enter name of table here");
    TNameLabel3 = new Label ("Enter name of table here");
    idLabel = new Label ("Enter movie ID here");
    TitleLabel = new Label ("Enter title of Movie here");
    TitleLabel2 = new Label ("Enter title of Movie here");
    tablePane.add (TNameLabel1);
    tablePane.add (TName1);
    tablePane.add (NewT);
    recordPane.add (TNameLabel2);
    recordPane.add (TName2);
    recordPane.add (idLabel);
    recordPane.add (idField);
    recordPane.add (TitleLabel);
    recordPane.add (TitleField);
    recordPane.add (NewR);
    //recordPane.add (tableChoice);
    queryPane.add (TNameLabel3);
    queryPane.add (TName3);
    queryPane.add (TitleLabel2);
    queryPane.add (TitleField2);
    queryPane.add (NewQ);
    queryPane.add (result);
    Status = new Label ("");
    // make the window and add components to it
    tPane.addTab ("Table", tablePane);
    tPane.addTab ("Record", recordPane);
    tPane.addTab ("Query", queryPane);
    add (tPane, BorderLayout.CENTER);
    add (Status, BorderLayout.SOUTH);
    pack ();
    setVisible (true);
    public static void main (String args [])
    ConnectToDatabase ("vdds");
    TableWindow tw = new TableWindow ();
    }

  • Handling LabView events in ActiveX

    Hi all,
    I know most ActiveX discussion here is about getting ActiveX to work inside of LabView, but I'm trying to go the other way around.
    General Question:
    How to I catch or listen to events generated by LabView (in VB or whatever)? And is there some kind of library of LabView ActiveX events?
    More specific:
    If anyone has ever used the Jacob libraries for using ActiveX from Java, how would I create a LabView event listener from within Java? I can create a VI ActiveXComponent, but I don't know how to use it to listen to events.
    Any help on either part of the question will be most appreciated!
    Thanks,
    Sam

    "SamF" <[email protected]> wrote in message news:[email protected]..
    Thanks for both of your replies, I'm pretty certain that it is possible to generate ActiveX events from LabView, but unfortunately those links don't deal with events. Those are what I used to get to where I am -- opening and running a VI from ActiveX -- but I can't find anything on generating events.If it really seems as though there is no way for LabView to generate ActiveX events (or just catch those that are automatically generated), then I have another question: Is it possible to use LabView to catch its events internally (using it's own events methods), and write to, say, an excel file everytime an event is generated?My thinking is that even if LabView doesn't throw events, other programs such as Excel do, and so if the events were routed through Excel I could catch *those* events.(BTW, I know there are examples of writing to Excel, but I'm looking for something that is *event* driven).Any help either on catching LabView events or using LabView events to write to an MS program will be much appreciated, as always!Thanks,Sam
    Sure it's possible to build an activex server. No doubt about that.
    If I where to communicate events between the LabVIEW code and another language, I'd think about occurrences or windows events.
    There is documentation available about occurrence communication between dll's, cin's and LabVIEW. Never used it, so I can't help you much further.
    The windows events are well documented in the msdn. They should be available in any language, though relatively simple api calls.
    And you can always use window messages. If you have a window handler of the main program available in LabVIEW, you can use sendmessage or postmessage to communicate to it. The other way around is more difficult, but seems not necessary.
    Hope it helps,
    Wiebe.

  • Labview Synthesiser: Problem outputting sound via MacBook soundcard

    Hi all!
    First time posting here, hopefully i'm in the right section of the forum. Anyway, i'm a part time student and currently studying a module on Labview in university. As a mini project i decided to build a synth using Labview. I've it mostly built but i'm having a bit of trouble outputting sound to the soundcard. I'm also having a bit of trouble getting the waveforms to play for a longer time period.
    I was sort of copying the setup of one of the example VIs (generating sound vi i think) and another vi i found online but i can't seem to get mine to work using my synth design. I've two problems, one is that the waveform only plays for a very short time but the main problem is that i'm getting an error (error 4803) saying the soundcard cannot accomodate the specified configuration but as far as i can see my setup is more or less the same as the generating sound vi (which works on my fine macbook). Obviously i'm missing something so i decided to come on here and ask for help.
    I'm guessing the datatype connected to my sound output configure vi could be causing a problem since it has a red dot on the input terminal. Any suggestions on how i should fix this? 
    I've my vi attached. Any help would be appreciated!
    Cheers! 
    Edit: I've already fixed the error 4803 problem. Had to change the input to the sound output configure sub vi. Now i just have to figure out how to get the sound to play for longer. Any ideas anyone?
    Solved!
    Go to Solution.
    Attachments:
    LabVIEWSynth.vi ‏94 KB

    OK. You have several problems.
    The cluster order in your Format cluster is Rate, Bits, Channels while the order in the "sound format" cluster on Sound Output Configure.vi is sample rate (S/s), number of channels, bits per sample. LabVIEW connects clusters according to the cluster order. How to avoid this: Pop up on the sound format conpane terminal on the Sound Output Configure.vi icon on the block diagram and choose Create Control. That will put a control with the same names and cluster order on the front panel. You can edit the names if you wish as long as you do not change the cluster order. The alternate is to Unbundle the data from your cluster control and then bundle it to the input cluster. I show this in the modification of your VI attached.
    The VI does not respond to the Stop button until the event structure executes, which only happens when a key is pressed. Fix: Add an event case for the Stop Value Changed event. I show this in the modification of your VI attached.
    The VI does not recognize changes in Octave, Amplitude, Osc Select, or Filter Frequency until the second keypress after changing any of these controls. Why? Dataflow. Those controls are probably read within microseconds after an iteration of the for loop starts. They are not read again until the next iteration regardless of when or how many times they are changed. The loop will not iterate until the Event structure completes, which only happens when a key is pressed. The Fix: Event cases for Value Changes on those controls. Note that this does not work because now there is no defined frequency. So, you also need some shift registers. Because of the problems mentioned, I did not put this into the modified VI.
    Next, the event structure freezes the front panel until the code inside has completed. This becomes quite apparent when you set the duration to 2 seconds and press several keys quickly. The fix to this and the problem in the paragraph above is a parallel loop archtitecture, such as the Producer/Consumer Design Pattern.
    Not a problem but a different way of doing something: Use Scale by Power of 2 from the Numeric palette in place of the case structure connected to Octave.  I show this in the modification of your VI attached.
    Now to your question about tone duration: The duration of a signal generated by the Sine Waveform.vi and the others is determined by the sampling frequency and the number of samples. You are a student so you can do the math. You need to adjust the number of samples because the sampling frequency is fixed.
    The modified VI works fine on my iMac.
    Lynn
    Attachments:
    LabVIEWSynth.2.vi ‏89 KB

  • Dynamic Events Problem

    I am fairly new to LabVIEW and I am trying to make a GUI that uses
    events to pass messages between three separate event loops, GUI,
    Messaging and Logging. GUI controls the state of the other two event
    loops by generating control events and using semaphores. While the
    messaging semaphore is released by the GUI, Messaging generates
    messages and raises them as events. Some message events are handled by
    the GUI event loop and others by the Logging event loop. Logging, once
    it receives a 'logging ON' control event dynamically registers for
    certain message events and logs the message events it handles to file.
    When Logging receives a 'logging OFF' control event, it dynamically
    unregisters the message events. The logging control events are
    registered for the life of the Logging event loop.
    I have created a cut-down version of my GUI that exhibits the same
    problem. The problem is that after I have turned Logging on and off
    once, it no longer responds to logging control events from the GUI.
    Even though the GUI is still generating the events. I have looked at
    the dynamic logging example in LabVIEW and thought I did the same sort
    of thing but I just can't get it to work that way. The only way I got
    it working was by creating a clean event registration with all events
    each time I want to change the event registration. This is how I have
    done it in the example file and it works. But I don't want to use this
    method, I don't want to have to re-register the control events each
    time I unregister/register message events.
    If anyone knows what I'm doing wrong please edit the example vis and post them back.
    Notes for the example:
    Files are LabVIEW 7.1.1
    Just open the front panels for all the vis before running the GUI vi.
    The Display vi just does the same thing as the logging vi.
    Run the GUI vi and turn on Messaging then turn Logging on and off a few times.
    The example works, but if you wire the event registration refnum
    input when doing dynamic event registration, Logging will only turn on
    and off once, then no longer respond to log control events... what's
    going on?

    I can't tell you how to solve you problems - without code this is always quite tricky.
    But in case you want to log messages to a log file, have a look at this thread
    http://forums.ni.com/ni/board/message?board.id=170&message.id=172117&view=by_date_ascending&page=1
     where I posted a logging-library.
    Maybe it is a useful help for you.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Event problem, control does not working

    Hi !
    I have "Tab Control" and there is both pages a Stop button.
    If there is first selected page1 and i run vi and then i select page2
    and i try push Stop2 button nothing happens.
    Whats is the problem ?
    page2 Stop2 button works if there is first selected page2.
    page1 Stop1 button works OK.
    See attachment.
    -HeVi-
    Attachments:
    Test__06_Event.vi ‏28 KB

    OK, take a few steps back and look at your code from scratch!
    You seem to be under the false impression that a tab control needs a case structure on the diagram. Don't micromanage your code! A tab structure is just an easy way to simplify the front panel. From the perspective of the code, you can assume that all controls of all tabs are always visible. (If execution should depend on tab position, place the case structure inside the event structure. )
    See also my earlier comments here.
    You should never place event structures inside cases (or even worse, multiple event structures in multiple cases of the same case structure). Having to add unecessary timeouts is just a kludge to hide a poor program design. More comments can be found at the end of my other post.
    Don't add timeout events unless you really need to do something important at regular intervals. Most of my event structures don't use the timeout event at all.
    Also, if a stop button should be accessible independent of tab position, it should probably NOT be on the tab structure, but next to it! Alternatively, you can "float" a single stop button on top of the tab structure as follows: Select the stop button, then, using only the arrow keys, move it to the desired location on top of the tab structure. While editing, the stop button will have a shadow to indicate that it is not part of the tabs. This shadow disappears while running.
    LabVIEW Champion . Do more with less code and in less time .

  • Event Problem constant triggering

    I am having problems using an event structure.  I am not quite sure how to explain the undesired behavior I am seeing.
    I have an event that when triggered takes a few seconds to complete.  I don't want to lock the panel because I would like to still receive input during this time and have the events queue.  The problem I am seeing, however, is that if the event is queued it somehow keeps the trigger enabled. 
    For example, if I trigger the event and while the task is running the event is triggered again; like it should, it will run the task again after the completion of the first.  The problem that is arising is that it will the keep triggering the same task over and over again (executing over and over again) even without any addition triggers.  This will continue until a different task is triggered in the same event structure.
    How can I stop this continuous triggering of the event?  And why is it occuring in the first place?
    LV 8.0 through 2013, Win 7
    CLA

    The Q wrote:
    The problem that is arising is that it will the keep triggering the same task over and over again (executing over and over again) even without any addition triggers.  This will continue until a different task is triggered in the same event structure.
    I still would like to see the code that does this. It should not happen, so maybe you discovered a bug that NI should be made aware of.
    Remember that value changes of "analog style" controls such as slides will typically trigger quite a few indentical events, not just one.
    Maybe that's what you are seeing?
    One workaround for this particular problem is described HERE. See if applies to your situation.
    LabVIEW Champion . Do more with less code and in less time .

  • Subtle Event Problem

    I have a plot as shown below, I would like the user to be able to click the scale button and the x scale precision should increase and come back to zero.
    For example:
    when the user first click the scale button, the xy graph X values should show [1.2  2.5  3.2 4.6  5.1]
    the next time the user clicks, the X scale should read [1.23 2.51  3.25  4.62  5.18]
    the next time the user clicks, the X scale should read [1.234   2.514   3.254   4.628   5.184]
    the next time the user clicks, the X scale should read [1    2    3   4  6   5]
    hence, the number of precision should go round - increase and come back to zero.
    I tried to use a shift register with for loop, but I do not see a way around it.
    The other problem is that the property node I used is not even updating the precision, even without event case.
    Any help will be appreciated.
    Solved!
    Go to Solution.
    Attachments:
    subtle event.vi ‏11 KB

    I got the same weird buggy error!
    But the following code works:
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Events problem with (Java and ActiveX)

    Hi,
    I use an ActiveX component with Java and i've got a problem with events.
    Java classes were generated with Bridge2Java (IBM).
    In order to manage events I added a listener in my application :
         javaMyActiveX = new MyActiveX();
         javaMyActiveX.add_DMyActiveXEventsListener(new _DMyActiveXEventsAdapter());
    I also added a constructor in the _DMyActiveXEventsAdapter class and I fill the body of methods.
    The ActiveX generates two types of events :
    - The ones are directly generated by methods.
    - The others are generated by a thread.
    With MS Products (VB, Visual C++, Visual J++), I catch all events.
    With java (jdk 1.4), I catch only events generated by methods.
    Can anyone help me.

    I'm not 100% sure, but the last time I used that bridge, it only worked if you ran your Java app within a Microsoft VM.

  • Help needed with Image Events problem

    Hi there I'm writing what I thought was a simple script to convert a folder full of images from jpg to tiff. But the script fails when trying to convert the first image in the folder. Instead of converting the image, Preview opens with the image shown and I get this error message: error "The variable ImageRef is not defined." number -2753 from "ImageRef".
    I have seen some posts about other people having the same problem, but I haven't seen any solutions.
    Here's the script.
    on run
    tell application "Finder"
    set PicturesFolder to ((path to home folder) as string) & "Pictures:SenseCam" as alias
    set Photographs to (get entire contents of PicturesFolder) as alias list
    end tell
    tell application "Image Events"
    launch
    repeat with Photo in Photographs
    if (Photo as string) ends with "jpg" then
    set ImageRef to open Photo
    save ImageRef in Photographs as TIFF
    close ImageRef
    end if
    end repeat
    end tell
    tell application "Finder"
    repeat with Photo in Photographs
    delete Photo
    end repeat
    end tell
    end run
    Thanks in advance for any help.
    John

    Hello
    You may try something like the modified code below.
    Noticiable changes :
    #1 - Removed the parentheses. Your original code won't yield alias list but a list of finder objects, which is the reason why Preview opens the image. (The statment 'open finderObject' behaves the same as double clicking it in Finder)
    #2 - Only delete the original jpeg files which are converted to tiff.
    #3 - Build new path for converted image.
    #4 - Save in new path. (When saving image in a format other than its original format, always save the image to a new file and do not attempt to overwrite the source file.)
    cf.
    http://www.macosxautomation.com/applescript/imageevents/08.html
    on run
    tell application "Finder"
    set PicturesFolder to (path to home folder as string) & "Pictures:SenseCam:" as alias
    set Photographs to get entire contents of PicturesFolder as alias list -- #1
    end tell
    set DonePhotos to {} -- #2
    tell application "Image Events"
    launch
    repeat with Photo in Photographs
    set Photo to Photo's contents
    set oldPath to Photo as string
    if oldPath ends with ".jpg" then
    set newPath to oldPath's text 1 thru -5 & ".tif" -- #3
    set ImageRef to open Photo
    save ImageRef as TIFF in newPath -- #4
    close ImageRef
    set end of DonePhotos to Photo -- #2
    end if
    end repeat
    end tell
    tell application "Finder"
    delete DonePhotos -- #2
    end tell
    end run
    Hope this may help,
    H

  • ICal all-day event problem

    iCal on my iPad worked fine for a while. Now, many of my all day events (but not all of them) are showing up a day early on my iPad on week view. Everything is fine on all other devices (iPhone, MacBook) and all is fine on iPad on day, month and list view. All timed events are in the right place. But all day events in week view are a disaster and turning off the iPad isn't helping. Any advice?

    Did you travel out of your home time zone and first notice the problem then? I spent an hour and a half on the phone with Apple Care while I was in the Central zone (I live in Eastern) and nothing the supervisor suggested worked (deleting the account, resetting, turning ipad off, etc). They'd bumped me up to a supervisor because the regular guy had no idea. Supervisor said no one on the internal tech board had seen that particular problem. The final assumption was it was a software glitch on my ipad--the advice was a complete restore which was going to have to wait until I returned home because he said it would take too long over the Verizon mi-fi I was using while traveling. Anyway--I got home to Eastern time, immediately pulled out the ipad to do the restore and all the all-day events were in the right place and have remained in the right place since then. My best guess is that it's a time zone issue but it doesn't make much sense. All my timed events stayed right where they were supposed to be the whole time (time zone support turned off).

  • Creation of an event : problem with the container

    Hi Gurus,
    I'm facing a problem in creation of an event.
    I'm in SAP ECC 6.0 for a migration project from 4.6B
    In an ABAP program I'm trying to create an event in order to launch a workflow.
    1st step : Set datas in the container -> In INTERNAL_TABLE I have 5 lines.
    swc_set_table event_container 'INTERNAL_TABLE' t_cnp_container.
    2nd step : Create an event :
      CALL FUNCTION 'SWE_EVENT_CREATE'
              EXPORTING
                objtype              = w_wf_objtype
                objkey               = w_wf_objkey
                event                = w_wf_event
                creator              = applicant
                start_recfb_synchron = 'X'
              TABLES
                event_container      = 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.
              WRITE sy-subrc.
            ENDIF.
    Now when I check my container with SWI2_FREQ I see that INTERNAL_TABLE has just one ligne, the rest disapears.
    I have this problem only when I set an internal table in an container
    I don't know why, but it perfectly works on 4.6B.
    Thanks a lot
    Walid

    Hi,
    I dont see a point in having this statement
    swc_set_table event_container 'INTERNAL_TABLE' t_cnp_container. Infact it is not needed !!
    SWE_EVENT_CREATE like any other FM, take a
    lt_var type standard table of SWCONT.
    ls_var type SWCONT.
    fill your ls_var with all fields and append it to lt_var each time and pass lt_var to event_table of SWE_EVENT_CREATE. It should work !!
    However, suggested way is to use SAP_WAPI_CREATE_EVENT instead of SWE_EVENT_CREATE  from ECC 5.0 onwards. There are fe concerns with SWE_EVENT_CREATE mainly with respect to commit and persistancy. Better we should use SAP_WAPI* as much as possible from ECC 5.0.
    Try above and Good Luck !!
    Regards
    Krishna Mohan

  • Mac OS / classpath / custom event problem

    I'm having a bit of trouble with a particular classpath
    anomaly, and I have a feeling that it might be a Mac thing.
    Not sure if anyone else can reproduce this, but I managed to
    make a custom event and a class that extends the EventDispatcher
    once. Since then, Flash has refused to admit that any class
    associated with a custom event exists - mostly producing the error
    1046. Even after you take out any references to the event
    dispatcher or a custom event, the class is ignored.
    All my classes are kept in a single 'Packages' folder with
    sub folders that I include in the import statement (I've
    triple-checked the classpath settings, the import statements, and
    the classes themselves - I have probably a hundred or so other
    classes that are fine, and all referenced in the same way, some
    that extend EventDispatcher, some that don't.
    I come across this a few times now - once I was able to fix
    it by putting the .as file in the same folder as my first custom
    event, but this no longer works.
    I'm running Mac OS X 4.11 on two computers - both have the
    same trouble.
    I've tried copying the classes to other folders and changing
    the package/import path accordingly - no go.
    Even stranger, if you copy and paste to a new .as file, and a
    different package folder, the problem persists in that Flash claims
    the revised Package statement (to reflect the new location) does
    not reflect the position of the file - when it clearly does.
    I haven't had this problem with any other home-grown class -
    only those that reference a custom event.
    It sounds like it should be pilot error, and I've spent a
    long time trying to spot a silly mistake. But as this problem has
    recurred a few times now, I'm beginning to think it isn't me.
    Anybody else experience similar classpath problems with AS3
    on a Mac? Anybody have any suggestions?

    I am also a newbie and my answer could be wrong.
    But from the looks of it, You are Unable to load performance pack.
    The solution is "Please ensure that libmuxer library is in :'.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
    I hope BEA or someone can tell you the file name of libmuxer. And make sure it is in the Folder where the script is searching/looking.
    Good luck.
    fred

  • ABAP OO Event Problem

    Hi,
    I read the blog posted by Jocelyn Dart-<b><i>Raising ABAP OO Events for Workflow</i></b>...
    <b>/people/jocelyn.dart/blog/2006/07/27/raising-abap-oo-events-for-workflow
    When I tried the same using my own Class, I am getting some problem.
    Well, I created my Class with two Attributes
    1) <i>M_POR</i>(Persistent Object Reference Attribute)
    2) <i>PERNR</i>(Employee Number)
    And I created a Constructor with one parameter.
    And I also coded the remaining standard methods as per that blog - <b><i>USING ABAP OO Methods in Workflow Tasks</i></b>.
    Finally I activated my CLASS and each individual method.
    I created one small report that raises ABAP OO Event as mentioned in the blog with the below mentioned code.
    <i>report  yworkflowtrigger_ooabap.
    data : ls_ywftest1_key type p_pernr,
           lv_objtype type sibftypeid,
           lv_event   type sibfevent,
           lv_objkey  type sibfinstid,
           lr_event_parameters type ref to if_swf_ifs_parameter_container,
           lv_param_name       type swfdname,
           lv_visit_date       type datum.
      lv_objtype = 'YWFTEST1'.
      lv_event = 'STARTEVENT'.
    Set up the LPOR Instance id
      ls_ywftest1_key = '00000024'.
      move ls_ywftest1_key to lv_objkey.
      try.
        call method cl_swf_evt_event=>raise
          exporting
            im_objcateg        = cl_swf_evt_event=>mc_objcateg_cl
            im_objtype         = lv_objtype
            im_event           = lv_event
            im_objkey          = lv_objkey
           IM_EVENT_CONTAINER =
         catch cx_swf_evt_invalid_objtype .
         catch cx_swf_evt_invalid_event .
      endtry.</i>
    I switched on my event trace and tried raising the Event. But event is not raised even after execution of this code. I checked the SY-SUBRC value at the ENDTRY, But this seems perfect(SY-SUBRC = 0).
    Why is my event not getting triggered even after the execution of above code?
    Is there anything which I have missed.
    We are on <b>ECC 5.0</b>
    Regards,
    <i><b>Raja Sekhar</b></i>

    I missed this tip in that blog.
    "<i><b>Tip! Just as for Business Object events, the COMMIT WORK statement is crucial when raising a Workflow event - without this the event will not be raised.</b></i>"
    Regards,
    <i><b>Raja Sekhar</b></i>

Maybe you are looking for

  • QuickTime 6 MPEG-2 Playback Component on QT 7.5 problems- will not work

    I am running QT Pro 7.5 (it is registered) on os/x 10.5.4 (Intel). The mpeg-2 component does not seem to work after it is installed & the system reboots. I get a box saying "this is not a movie file"...yet freeware mpeg-2 converter Handbrake sees and

  • Running out of ideas - how to stop iPhoto from constantly spinning!

    Help! I've got iPhoto 5.0.4 and it consistently appears to get stuck in a spin during normal use - usually when unmounting a camera, but also when switching between applications and sometimes when it's simply left by itself. I've tried a number of th

  • Songs wont play the full length.

    I just bought an album off of itunes, and only 3 our of the 17 songs play full length. How can I fix this?

  • Is it possible to get your crediti card cloned at ITunes?

    I have my credit card cloned this second semester. Since I use it all onver the place, I didn´t think it was due the registration on ITunes. Now, in november, I got my second credit card cloned, shortly after changing my registration info on ITunes.

  • Links inside an accordion menu

    Hello, im almost done with my site, but i have encounterd a problem, I did an accordion menu for the main design, works perfectly, but inside one of the menus i have a gallery, ive tried diferent options, but my main problem is that every time i clic