How to trigger event when changing user status?

hi,
I'm having problems in triggering my workflow.
In CIC0, When a status of a service request is changed to 'solution provided' then after saving service request, it should send a notification mail. I'm using ZBUS200116 which is deligated to BUS2000116. I've created event 'change' in ZBUS200116 which is in the start events of my workflow.
I've tried creating an action profile which uses my workflow. The action profile is attached to the transaction but still it doesn't trigger my workflow.
i've checked other existing workflows which uses the same object type BUS2000116 or ZBUS200116. These workflows were triggered by 'created' and 'completed' events only. Other added events in ZBUS200116 like 'changed' is not triggered. How is this possible when ZBUS200116 is deligated to BUS2000116?
Your response would be highly appreciated.
Thanks in advance.

hi juan
so here we are,now i got complete understanding of what u r doing and why
you know you need not have created that change event because it wont serve your purpose anyway
the reason is that because the way process in your workflow is flowing ,it wont happen that way using change event
you just follow these  steps:
1, use created event in your workflow
2. that way when your contract ios created in rpocess status the event will be triggered only because you are creating a transaction whatever may be the status,so in all such cases you should use event created.
3. now coming to the point of change in status or documents in contract
in this case using loop will put you in deadlock and you will only be haing the error in such case
you use WAIT step instead ,inside it use wait using conditions out of every option
there you give your condition as change in whatever status
like if you are chaning the status from in process to some other status ,put that status inside the condition
as soon as that conditioon is met ,the WAIT step will be executed,
that way you will be able to trigger the change in status through thje workflow
so thats the solution with the approach you are using
there are many approaches you can follow in workflows ,so depending upon that you can follow the different worlkflow tools u have there.
also remember when your wait step gets executed there is always the time lag of 20-25 minutes after which changes will be reflected
hope it will solve ur probs
best regards
ashish

Similar Messages

  • How to handle event when the user closing the browser (Urgent Please)

    Hi,
    How to handle the event when user closes the browser....
    i want to display some alter message when user trying to close the browser...
    Please can any one help me how i have to do this...........
    Thanks.

    Finally got this working. You cannot use the stop() or destroy methods. By the time they are called all database connections are gone and you will get a null pointer exception.
    You will have to use the onBeforeUnload method in the html file that calls the applet and use JavaScript to call the save method in java which saves the document:
    <SCRIPT LANGUAGE="JScript" TYPE="text/javascript">
    function Save()
    //i call the applets doSave() method from here in which i save all
    //changes to the database
    top.Tree.document.TestApplet.doSave();
    //this will invoke the default IE message for closing the window
    //when user clicks on the x in the browser
    message = "Your document has been saved."
    return message;
    window.onbeforeunload=Save;
    </SCRIPT>
    //the applets doSave()
    public void doSave()
    //this frame provides user with the message that document is being
    //saved
    final JFrame frame = new JFrame("Saving");
    JPanel contentPane = new JPanel();
    JLabel label = new JLabel(" Please wait, saving document...");
    frame.getContentPane().add(label,BorderLayout.CENTER);
    frame.setSize(250, 100);
    frame.setLocation(300, 400);
    frame.setResizable(false);
    frame.setVisible(true);
    frame.addWindowListener(new WindowAdapter()
    //the frame is just for user's information, so prevent user from
    //closing it or iconifying it.
    public void windowClosing(WindowEvent e)
    frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
    public void windowIconified(WindowEvent e)
    frame.setState(frame.NORMAL);
    //call my saveDocument() method that saves everything to the database.
    editorModule.saveDocument();
    //System.out.println("finished calling saving document");
    //once the saving is done the frame with the message disappears
    frame.setVisible(false);
    //System.out.println("setting frame to false");
    //I also had an exit button in my applet, that would perform the same task, however now with the above onBeforeUnload method, the exit message would appear twice, so had to modify my exit button action performed, so that if the exitbutton was clicked the onbeforeunload method would get passed a null value and not do anything.
    private void exitButton_actionPerformed()
    if (DEBUG) System.out.println("Calling exit");
    doSave();
    window.eval("this.onbeforeunload=null;");
    window.eval("top.close();");
    //continue from here if user cancels the closing of the window
    window.eval("this.onbeforeunload=doSave;");
    window.eval("top.focus()");
    window.eval("document.TestApplet.requestFocus()");
    homePanel.requestFocus();
    }

  • How to trigger event when double click on a tree node

    I have this code which creates new tab in a remote Java Class.
    treeView.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<TreeItem<String>>()
       @Override
       public void changed(ObservableValue<? extends TreeItem<String>> observable, TreeItem<String> oldValue, TreeItem<String> newValue)
       System.out.println("Selected Text : " + newValue.getValue());
       // Create New Tab
       Tab tabdata = new Tab();
       Label tabALabel = new Label("Test");
      tabdata.setGraphic(tabALabel);
       DataStage.addNewTab(tabdata);
    Can you tell me how I can modify the code to open new tab when I double click on a tree node. In my code the tab is opened when I click once. What event handler do I need?

    import java.util.Arrays;
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.StackPane;
    import javafx.scene.control.TreeCell;
    import javafx.scene.control.TreeView;
    import javafx.scene.control.TreeItem;
    import javafx.scene.control.SelectionMode;
    import javafx.util.Callback;
    public class TreeTest extends Application {
      public static void main(String[] args) {
        launch(args);
      @Override
      public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("TreeView Test");
        primaryStage.setScene(createScene());
        primaryStage.show();
      private Scene createScene() {
        final StackPane stackPane = new StackPane();
        final TreeView<String> treeView = new TreeView<String>();
        treeView.setRoot(createModel());
        treeView.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
        treeView.setCellFactory(new Callback<TreeView<String>, TreeCell<String>>() {
          @Override
          public TreeCell<String> call(TreeView<String> treeView) {
            return new ClickableTreeCell();
        stackPane.getChildren().add(treeView);
        return new Scene(stackPane);
      private TreeItem<String> createModel() {
        TreeItem<String> root = new TreeItem<String>("RootNode");
        TreeItem<String> packageA = new TreeItem<String>("package A");
        packageA.getChildren().addAll(
            Arrays.asList(new TreeItem<String>("A1"), new TreeItem<String>("A2"), new TreeItem<String>("A3"))
        TreeItem<String> packageB = new TreeItem<String>("package B");
        packageB.getChildren().addAll(
            Arrays.asList(new TreeItem<String>("B1"), new TreeItem<String>("B2"), new TreeItem<String>("B3"))
        root.getChildren().addAll(Arrays.asList(packageA, packageB));
        return root;
      private class ClickableTreeCell extends TreeCell<String> {
        ClickableTreeCell() {
          setOnMouseClicked(new EventHandler<MouseEvent>() {
            @Override
            public void handle(MouseEvent event) {
              // Handle double-clicks on non-empty cells:
              if (event.getClickCount()==2 && ! isEmpty()) {
                System.out.println("Mouse double-clicked on: " + getItem());
        @Override
        protected void updateItem(String item, boolean empty) {
          super.updateItem(item, empty);
          if (empty) {
            setText(null);
          } else {
            setText(item);

  • How can flex tell if  it's a mouseup event when the user releases the mouse button outside the flex application?

    how can flex tell if it's a mouseup event when the user
    releases the mouse button outside the flex application? Say for
    instance mousedown was done within a 500x500 embedded flex app but
    mouseup is outside or relased on the HTML background. One more
    thing, when we have something draggable, Flex doesn't execute the
    stopDrag() when the user releases the mouse button outside the
    embedded swf or fles app. Pls. help me with this. Thanks!

    I don't think the flex app can tell what happens outside the
    app. But it can detect when it leaves the app, so I have found the
    following line works fine inside initApp():
    this.stage.addEventListener(Event.MOUSE_LEAVE, yourFunction);
    and you have to:
    import flash.display.Stage;
    Doug

  • Detect change user status on sales order

    Hi,
    I have a requirement that a custom program must start when a user puts a certain user status on a sales order.
    Problem is that I cannot detect on which event I can trigger this custom when the user status is changed. There seems not to be an entry in the change documents table, or an event triggered,...
    Does someone has already encountered such an issue ?
    thanks in advance !
    kind regards,
    Björn

    Hi Carl and Shiromani,
    thank you for your fast reply!
    I guess I will give it a try to do this with functions if I just can get it running with the cl_crm_mktpl_appl_base-class.
    As you suggested Shiromani the Save_and_commit gets an error in the assignment checks in the check_attributes-method.
    So I probably have to take a closer look why this method is returning an error-flag. Unfortunately I am not getting an error message - only an error flag is set.
    I will take a closer look at it today and keep you informed if I find out anything useful.
    Cheers,
    Dennis

  • LSMW for changing user status on work order(IW32)

    Hi All,
    I have created a LSMW for changing user status on work order using transaction IW32. It does not change the status when i run the LSMW. In the recording for the LSMW, i select the radio button on the user status i want to select.
    When i run the LSMW in the foreground, it does everything except select the correct status.
    Is there a way to fix this or is it a problem with LSMW. I'm using ECC6
    Kind Regards
    Emanuel

    Hi ,
    I am not sure whether it would work with LSMW but if your on ECC 6.00 ,Enhacement Pack 3 then you have BADIs which allow you to make collective status changes in IW38 .The below are those BADIs :-
    BADI_EAM_RIAUFK20_FCODE_CUS1 :Implement Customer Function Code in Order List
    BADI_EAM_RIAUFK20_FCODE_SAP1 :Implement SAP Function Code in Order List
    Else if your on lower version then write up a batch programme which checks the PM Order types with specific status and sets user status using FM STATUS_CHANGE_EXTERN[This is used to set or delete User Status] in SE37 ..
    regrds
    pushpa

  • Change User status of Task of Follow up function

    Hi All,
    Does any one of you know how to change the User status of Task through customizing or programming.
    Basically I want to change User status from 'TINI' to 'TSNT' once the email is triggered. I could send the email but I am unable to change the status.
    Thanks in advance,
    Jagadish

    Hey Thomas,
    This should solve your problem..
    CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN'
          EXPORTING
            client              = sy-mandt
            objnr               = wa_new_user_status-guid
            user_status         = wa_new_user_status-status
            no_check            = 'X'
      SET_INACT                 = ' '
      SET_CHGKZ                 =
      XNOAUTO                   =
          EXCEPTIONS
            object_not_found    = 1
            status_inconsistent = 2
            status_not_allowed  = 3
            OTHERS              = 4.
    In this FM NO_CHECK parmeter must be set to True, else u wil not be able to set the Status.....
    Sample is given above...
    Reward points for usefull answer...
    Regards,
    Anand...

  • How to get event when app is minimized.

    How to get event when app is minimized in only windows app, not phone version.

    Hi,
    Suspending Event will be called when a windows store app is minimized. It will not hit the Suspending Event when minimised while debugging, So you need to trigger it manually from the VisualStudio Toolbar.
    Also Read
    Application Lifecycle for windows apps
    Pradeep AJ

  • Will the assignment of image to a parked document trigger event FIPP.Change

    Hi All,
    We are developing a workflow that has some integration with SAP ArchiveLink. The workflow waits for a scanned image to be assinged before the Parked Document can be released. For this i'm using a wait for event step that waits till the event FIPP.Assigned is raised. And once the event is received the release process is carried out.
    Will the assignment of image trigger event FIPP.Changed? If yes, how do I determine whether an image is assigned or not to a Parked Document? Can I determine by looking at the link table TOA01?
    Please let me know your thougths.
    Thanks,
    Mustajab

    I would think it will not - but why don't you turn on the event trace (SWELS) and find out (SWEL). Image.Assigned is more likely to be triggered.

  • Trigger event when items moved from a library to a document

    Hi all,
    I want to be able to trigger an event when a user drags items from a library in to their document, I had looked at the AfterMove event which I though might enable me to access any items after they had been moved (worst case scenario) but I can't seem to get this event to trigger.
    Any thoughts?
    Cheers
    JSX

    You can't really single out the selectionChanged or place events triggered by dragging items from a library from other selectionChanged or place events. See this thread for a relevant discussion and a link to the very useful Event Watcher extension. (It looks like afterMove is only triggered by a couple of objects, not including page items.)
    Jeff

  • How to Process event when select ALV mark ?

    Hi.
    The Screen have ALV data.
    How to Process event when select ALV mark ?
    Regards.
    LY.

    EVENT
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 0
        IMPORTING
          et_events       = it_events[]
        EXCEPTIONS
          list_type_wrong = 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.
      ENDIF.
      READ TABLE it_events WITH KEY name = slis_ev_top_of_page
                                    INTO it_events.
      IF sy-subrc = 0.
        MOVE t_formname_top_of_page TO it_events-form.
        APPEND it_events.
      ENDIF.
    ALV
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          it_fieldcat        = it_fieldcat
          it_events          = it_events[]
          i_callback_program = sy-repid
          is_layout          = gs_layout
          i_save             = g_save
          is_variant         = gx_variant
        TABLES
          t_outtab           = i_data[].

  • BAPI_ALM_ORDER_MAINTAIN - Change User Status in Operation u00BF?

    IT´S POSSIBLE CHANGE USER STATUS OF THE OPERATION?
    I SEE THAT FILL IT_METHODS AND IT_USERSTATUS BUT ONLY CHANGE THE USER STATUS OF HEADER ORDER.
    ANY CAN HELP ME?
    THANKS IN ADVANCE.

    Hi,
    Use the FM "ALM_ME_ORDER_CHANGE"
    There you can change the operation details including the User status.
    Hope this may help you.
    Regards,
    Smart Varghese

  • How to get event when any library object added to indesign doc?

    I want to do some operation when any library object is added to doc. So please tell me how to get event when any library object is added to the doc. better provide some code snippet.

    Daves61,
    I need to clarify what kind of event you're interested in.
    1. When you click once on page/spead widget in the Pages panel and only widget becomes selected. The layout window remains unchanged. OR
    2. When you doubleclick on page/spread widget the selected master spread appears in the layout window.
    In the first case you work with Pages panel.
    Have a look to file PageTransitionsPanelObserver.cpp from SDK. 
    PageTransitionsPanelObserver::LazyUpdate()
    In the second case you work with Layout window.

  • Keeping iTunes playing when changing user account

    Hi,
    I would like to setup a "music" account on our family iMac to select music from within iTunes and send it to our sound system. I'm tired of always having to reshelf CDs!
    But for this to work, we need to be able to switch to our own account when we want to use the iMac while iTunes continue playing to the sound system. I did not find any option that may allow me to do this and right now it stops playing as soon as we switch to another account using "fast user switching".
    We have Snow Leopard and iTunes 10.0.1.
    My other option is to buy a second hand iPod to do this, but I hesitate buying one just for this when my iMac seems perfectly able to handle the task.
    Thanks in advance,
    Denis

    Thank you very much Tom.
    It seems AirTunes has been renamed AirPlay. It is not stated that it will keep playing even when I change user account, so I am glad you were able to provide this bit of information. Your suggestion to get an Airport Express appears to be the most realistic and cheap option. As for the AppleTV, it would have been more versatile (music to my sound system, video content to my TV via HDMI), except that my sound system is very old (but still works well) and has no optical audio in, which is the only audio output option for an AppleTV, if I understand well.
    It would have been nice though to have the audio out of the mac connected into my sound system and just tell iTunes to keep playing music in the background even when changing user.
    Denis

  • How to catch an event when the user change values in the project information dialog

    hi,
    i would like to know how to catch an event in my C# code when the user change values in the project information dialog?
    taskChange doesn't catch these changes.
    thanks.
    Thanks, Sharon.

    You need to write save button event handler for project information dialog. Link is having same functionality described. 
    http://blogs.msdn.com/b/husainzgh/archive/2011/08/01/hooking-into-the-project-detail-page-ribbon-save-button-without-overriding-out-of-box-functionality-in-project-web-access-for-project-server-2010.aspx
    http://www.projectserver2010blog.com/2010/01/sharepoint-2010-webpart-client-server.html
    kirtesh

Maybe you are looking for

  • Reformat iPod for Windows in disk mode

    I've had my 20GB color iPod for about a year now and so far it's only seen macs. I want to reformat it in disk mode for Goddam Windows so I can transfer files. But when I connect to a Goddam Windows computer, iTunes and Goddam Windows don't see it. T

  • Really need help on this one ! Tremolo sound in my guitar audio track.

    I did some fingerpicking with my acoustical guitar track of GB4. But can't for the life of me figure out how to to get rid of the tremolo sound. It sounds like I added a chorus effect. But recorded it straight with my mic. I went to prefrences but co

  • Adobe digital edition 2.0 stopped working.

    Last night i read a book on ADE 2.0 and in the morning when i tried opening it , ADE crashed and it says ADE not working. I tried repairing it and re installing it but still the problem persists. I created a new user account on my win 8.1 , its worki

  • Data not shown properly

    Data entered and loaded, but it doesn't appear in the grid or data forms. In the cell history and data audit the data is shown as entered and loaded. Do you know this phenomenon.

  • Shopping cart not in sourcing cockpit

    Hi I created a shopping cart. It has been approved and shows as status approved when I search for it in "monitor shopping cart". I have checked the source_rel_ind and this is X. But when I check the sourcing cockpit, my shopping cart is not there. I