Event triggering through status change

Hi,
Currently I am learning workflow. I came to know that events could be triggered even with a status change. Could anyone let me what does "status change" mean? It would be better if anyone give me a high-level view of an example related to this?
Thank you,
Raja

Hi Raja,
Take an example of Service notification.
It can have differnt technical status like <i>Created, Inprocess, Technically complete</i> or <i>Released</i>.
Based on the particular status, say when notification is <b>Technically complete</b>, you want to inform somebody, you can do it with workflow and status management.
Hope it clarifies idea of status changes/ management.
For more help refer:
http://help.sap.com/saphelp_47x200/helpdata/en/c5/e4aee2453d11d189430000e829fbbd/content.htm
Regds,
Akshay

Similar Messages

  • Tutorial: Event Creation During Status Changes

    Hello,
    I tried to create the tutorial: event creation during status changes.
    My problem is now, that I never get a mail in my Business workplace when I start the workflow. The systems says "Workflow started" and that was it.
    Has anyone an idea where the mistake could be?
    Message was edited by: Kirsten Schroeder

    In the workflow header you can write text under the notification tab.
    Also assign the message recipient.
    Message was edited by: Amandeep  Singh

  • Workflow through status change

    I have a Customer quotation which has different statuses in the system.
    When a quote is 'approved/rejected' i need to send a mail to distributor though workflow. Quote user status is written to change documents.
    status management --> customer settings
    I maninted the statusOT as 'VBK', status profile xxx, bo 'zbus2031' and event 'statuschange'.
    status restrictions maintained the user status codes 'zapp' n 'zrej'.
    Delegated the object zbus2031 and created an event, this event is the triggering event for my workflow.
    When i try to change the status to rejected or approved, event 'statuschange' is not triggered checked in the trace.
    Quote changes are stored in jcds,jcdo,jest tables.
    This change doc key field value is different from zbus2031-objectkey.
    Am i missing anything? Inputs will be appreciated.

    Hi Indira,
    In this case you may want to break the problem down to see where the issue actually is.  First I would set up the status management to trigger one of the existing simple events - such as bus2031 CHANGED and see if your status restrictions work.  If this fails then the issue is with the restrictions. 
    If so pare the restrictions back until it publishes and see what you needed to do to get there.  Then it is a case of adding each part and testing at each point so you nail where the issue lies.  I have had to use this approach as once ALL the config is done, analysing where or what is not correct is impossible.
    Regards
    Gareth

  • Workflow not getting triggered on status change

    Hiii Everyone
    Workflow is not getting triggered whenever I change the status of the Order (Lead).  When we create a lead a workflow is triggered.
    1. If the status is Open a mail is sent.
    2. Then the status is checked for in process. And whenever the  status is changed to inprocess it is assigned to the agent by   the  rule attached to the workflow.
    3. And again when the status is changed to sanctioned a mail is sent.
    Now problem is if I create a lead and change its status to inprocess and then save , then the mail is sent and it is assigned to the agent properly. But when I change the status to sanctioned , then the mail is not sent for sanctioned(i.e. no worklfow step is shown in swel).
    If I open the lead and save it then the mail is sent properly. But then after that when I change the status to inprocess, the workflow is not showing agent assignment (jn swel).
    Summary: Whenever I cahnge the status after saving the order , the workflow is not showing any further step .
    Please suggest the solution.
    Regards
    Shafali

    Hi,
    Your workflow has been triggered when the status is open and then when change the status to in process,it is not sending mail as there is no agent assignment.
    That means, workflow triggered, but it is not going to the next step.
    Is it a standard or custom one?
    Can you post the workflow log screenshot over here?
    Cheers,
    Raja.D

  • Trigger event even with Status change or status reason change

    Hi,
    My requirement is to trigger an event if there is a change in status reason. I am looking for the method which currently triggers an event if there is a change in status so that I can modify that. Any pointers please? If I was to do this with change in status which methods/events and classes handle this. I am working on workflows in E-recruitment (HR). many thanks for your help in advance.
    Andy

    Hi Andy - did you get any response to this or were able to figure out?  Our requirement is somewhat comparable (I think) in that when a Publication (of a Posting) gets 'Released', we want to send a couple of emails to various parties.  My intent is to simply create workflows to send the emails, but I cannot get any event to trigger, in order to in turn trigger my wfs.  A Publication is an infotype 5122 and I can probably react to the hrp5122 table entry being created/updated, but I would think there is a way via config instead??
    Keith

  • System Status Change for Project Definition

    Hi,
    I am working on a requirement to notify the Project Manager when the Project Status changes to REL.
    I couldn't find any user exits where I can add the code to send an e-mail notification at the time of status change of the Project Definition or the WBS elements within the Project.
    I checked for events in Business Objects BUS2054(WBS) and BUS2001(ProjectDefinition) which might get triggered at the time of status change. I couldn't find any events relevant to Status Change.
    Any ideas how to handle this requirement ?
    Regards
    Bhooma

    I found a solution to this issue.
    Regards
    Bhoooma

  • Question over the appraisal status change

    Dear All,
    Our appraisal has ( following the flexible template ) has planning, mid year review and final phases. With in each main status we have sub status configured. Example - In the planning stage ( say in the month of February ) , employee add objectives, change weights etc and send to manager for approval. If manager approves, the document status will be changed from planning  to mid year status and employee's form is changed to the display mode ( so he cannot update objectives / weight etc)
    Then again in the mid year  status ( say a few months later - June ist ), the employee needs to review the appraisal, add or update the objectives etc and submit for manager approval.
    My issue is -  After the employee's appraisal form is changed to display only from planning to review status - How the employee's appraisal  form can be changed from a read only to change mode in the same status ? As it is necessary for employee to add/ update in the form.
    I am seeking the best approaches for the below as I am considering two options ( as mentioned below )
    1)   For the  mid year status  , I will configure a sub status ( called start mid year ) and attach a push button. The employee select the push button during the mid year  period ( say June 1st ) and this push button triggers the status change from Mid year to Mid Year / Start Mid year. We also plan to apply a custom implementation for  BADI for column access and badi  (HRHAP00_COL_ACCESS) will decide the access control for columns etc.
    2) The other approach I am considering is we are considering a workflow (INFO_APPRAISEE_CHANGE_REVIEW ) to notify th employee 7 days before the mid year review starts. Can this workflow trigger the status change or read the column access from the BADI (HRHAP00_COL_ACCESS) ?
    Any other simpler approaches ?
    I saw in the Process config ( tabs and process ) that we can define the phase with dates and status / substatus etc. Can this be useful for the above scenario. For eg. On June 1st when the mid year review start, can the status be changed  like from Mid year  to Mid Year / Start Mid year ?
    Please let me know . Greatly Appreciated!
    Aneez Hameed

    Hi Aneez, both options are great,   HRHAP00_COL_ACCESS is configurable at each sub-status, so you have many options.  You can have the manager "approve" at beginning of year, but keep it in "in planning" by having a 3rd sub-status.
    You can have the employee or manager have access to the pushbutton so that mid-term can start. 
    you can also do a workflow option where it is changed automatically, your option 2.
    the final option is the HR adminstrator can change the status, by doing a mass select in phap_admin and then they change to the status to move it to "in review" with all of your mid-term substatuses. 
    they key to making this work is the additional config that goes along with HRHAP00_COL_ACCESS.  here you will want to do define a Z table with the following columns:
    object id - your template ID
    role - which are the same roles values defined at your template - apee for apraisee
    template status - integer - represents status ID
    template sub-status - ID
    column id - FAPP, OBJO, etc..
    availability indicator (char) - here you will configure H, X etc... which the badi uses to know how to handle it. 
    best regards - michael

  • SD OVERALL STATUS CHANGE

    Hi Gents,
    The requirement is that, there is trial Sales Order is there, which will not be invoice nothing will happen, it will just for trial...
    So what i need is that once that trial is expire (7 days assumption), is there any way that this sales order should not show in Open Sales Order.
    Rejection line item will not work for this as client not required.
    So what i am trying that, is there any way to change the OVERALL STATUS to COMPLETE manually. So that i can go for back ground scheduling.
    hope you will gents will respond asap.
    Thanks in Advance !!!!
    Regards,
    Kundan

    to create events from a status change use transaction BSVW see Maintaining the Assignment Between Status Change and Event - Roles in Workflow - SAP Library.
    use the event to start a workflow, after approval/rejection use a background method to change the user status.

  • Benefits- Status change

    hi,
    my client wants to configure some benefit plans in which the activation of the coverage adding date is the 1st of the next month of the event. The status changes on 1st of the next month. eg marraige
    How do i configure this ?

    Hi,
    Try this.
      SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
    Regards,
    Lokeswari.

  • Data Change event triggering Process hangs in Process chain

    HI Folks,
    In a daily running Process chain we have a Data Change event triggering Process , to trigger broadcasting  settings
    This process is running for a long time , with no progress
    in SM50 , there are 2 process
    Process 1 : RSRD_BROADCAST_STARTER  Status : OnHold Reason : SLEEP
    Process 2 : SAPLRSRD_X_RUNTIME  Status : OnHold  Reason : RFC
    I tried to change the Parallel Processing setting as Number of Processes = 1
    But still the process is hanging.
    Any inputs will be a great help.
    Thanks
    Sonal......
    P.S : SAP_BW     700     0022     SAPKW70022     SAP NetWeaver BI 7.0 and EP 6.0
    Edited by: Sonal Patel on Feb 2, 2010 1:47 PM

    Hi sonal,
    I would suggest you to uninstall all the components and start all new again, n please make sure you have the following order :-
    1) install GUI 710 along with BEx 7.0 and 3.x complete.
    2) install BW AddOn (bw350gui710_8-10004473.exe latest one from Service market Place).
    3) Install BI AddOn (bi710sp11_1100-10004472.exe latest one from Service market Place).
    4) Install SAP precalc server (xPreCalServer10_1-10004472.exe, latest one from Service market Place).
    In service market place you can get the components from Downloads ->Support Packages and Patches -> Entry by Application Group -> "SAP Frontend Components"
    Also, plz make sure that you restart your Server OS after each and every installation.
    This would solve your problem.
    Rgds,
    Sreekul Nair

  • ERecruiting - Triggering of mail when candidate status changes

    Hi All,
    Is an email generated from the system, when a candidate status is changed?
    Say for example if the Activity of an candidate is changed to "Status Change - Rejected", will an email will be generated?

    Hello,
    some general thoughts at the beginning:
    Candidates do not have a rejected state. Candidate states are profile locked and profile released. Only applications and candidacies have a rejected state. It is very important for a technical view to have the obect types in e-recruiting very clear or you will get into big trouble sooner or later.
    SAP delivered workflows are examples. They do not fit a production environment. Also the sap delivered activity and process customizing is an example (and no good one) you will have to design this according to the business needs in the project.
    For the workflow question. It is possible to trigger a workflow by activity creation and activity completion. For status chage activities ths is the same as they are completed directly and never have status planned. The BOR object ERC_ACTIV contains both events, activtycreated is triggered directly, activitycompleted needs a note to run properly.
    It is also possible to trigger a workflow by a status change of an object. The super BOR object ERC_OBJECT contains a statuschanged event, which is raised for all status changes of NA, NB, NC, ND and NE objects.
    For rejection there are basically 2 scenarions.
    Scenario 1
    When rejecting a candidacy by creating a rejection activity you trigger a workflow based on the activity to create the corresponces activity automatically. You can either send it directly or just create it to allow the user to have an individual text. (I do not go into details of this workflow according to the chosen application-candidacy-relation, that would go to far at this point).
    Scenario 2
    When rejecting a candidacy directly in minimum data entry you do not have a status change activity as the status is set directly. In this case you have a workflow which is triggered directly by the status chang which again creates (and sends) the correspondence activity.
    Of course you need checks to ensure the two workflows are not mixed.
    Kind regards
    Roman

  • Coding for event "status change" in opportunity

    Hello,
    i need to process own coding if an opportunity was changed to status "lost".
    How would you realize this? Where do i find a god point to add this own coding which shall be processed on status change?
    Thank you
    Best regards
    Manfred

    Hi.
    It's very simple.
    You create your function module using the same interface that another ones in this transaction.
    Pick up an example, for instance the entry:
    BUS2000111  |  end of document processing (50)   |  priority: 40  | object STATUS | Event: after change | Atribute: <*> | function module: CRM_OPPORT_H_PROB_SET_EC
    Use the same interface for your function module:
    FUNCTION CRM_OPPORT_H_PROB_SET_EC.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(IV_OBJECT_NAME) TYPE  CRMT_OBJECT_NAME
    *"     REFERENCE(IV_EVENT_EXETIME) TYPE  CRMT_EVENT_EXETIME
    *"     REFERENCE(IV_EVENT) TYPE  CRMT_EVENT
    *"     REFERENCE(IV_ATTRIBUT) TYPE  CRMT_EVENT OPTIONAL
    *"     REFERENCE(IV_HEADER_GUID) TYPE  CRMT_OBJECT_GUID OPTIONAL
    *"     REFERENCE(IV_STRVAL_OLD) TYPE  ANY OPTIONAL
    *"     REFERENCE(IV_STRVAL_NEW) TYPE  ANY OPTIONAL
    All these parameters will going to be updated with current info while you are creating your opportunity document.
    In IV_STRVAL_OLD you will find info about the previous status (which is the object assigned), and in IV_STRVAL_NEW you will find the info about the new status that was assigned in the opportunity document.
    So what you have to do is:
    1 - create a Z function module with this same interface.
    2 - Assign it to object STATUS_H, on CRMV_OBJECT_FUNC view using SM30 transaction. Note: I am just not sure if you must use object STATUS_H or STATUS.
    3 - Create the event that must be:
    BUS2000111 | 1 - Imediatelly | Priority: 99 for instance | object: STATUS_H or STATUS | event: AFTER_CHANGE | Atribute <*> | your function module | check for function on header | callback: empty
    This is better than use the ORDER_SAVE badi because it executes your function module as soon as you change the status.
    I guess that using the CRM_ORDER_STATUS badi as it was sugested is also a good option.
    Regards.
    Susana Messias

  • What should the payload of a "domain event" generated through "change data capture" include?

    Using domain driven design and event sourcing ...
    Given I have a table of 3 columns: (A, B, C) with an existing row of data: (1, 2, 3), when I update the row to contain values (1000, 2, 3) and I run a tool designed to capture data changes and emit associated events, which of these should I expect as the
    emitted event's payload?
    {date: 1234, newState: (1000, 2, 3)}
    {date: 1234, prevState: (1, 2, 3), newState: (1000, 2, 3)}
    {date: 1234, prevState: (1, 2, 3), newState: (1000, 2, 3)}, changed: (1,0,0)}
    {date: 1234, newState: (1000, 2, 3), changed: (1,0,0)}
    {date: 1234, changedData: (A: 1000)}
    {date: 1234, changedData: (A: 1000), previousData: (A: 1)}
    "Ideally" would like the design of the events to support wide variety of current and future uses including:
    data replication
    audit logging
    event triggered activities
    retroactive event insertion (possibly)
    My thoughts:
    Answer 1. above is the simplest, but clients that don't care about the "A" column still end up having to react to this event, as they can't tell from the event itself what's changed.
    Answer 5. above is the cleanest - it just captures the "difference". The downside is that it forces the client to roll up changes to display an audit log of the full state on each change. Also event triggered activities may require knowledge of
    the full state to work.
    Answer 4. above is perhaps more generally useful? It carries what's changed, but some contextual information alongside it.
    Answer 2. above falls into a trap of asserting what the previous state was. What if that's not the previous state in your datastore, perhaps in a test environment? Do you reject the event as invalid? Would retroactively inserting an event mean changing
    all subsequent events "previousState" fields?

    You have two competing demands, and I think you need to choose which of them you want to win. Demand 1, to have a fixed record of the state in each event. Useful for quick auditing by scanning the raw messages
    Demand 2, to have a record of the changes applied in each event, to facilitate event sourcing.
    Those two demands seem only subtly different, why not do both? Within that subtlety, however, you'll find that they are utterly conflicting. Demand 1 specifies that the knowledge of, and hence control of the mutation of state occurs with the sender, as it has
    absolute knowledge of the state (either before or after the change). Demand 2 specifies that the knowledge of, and control of state mutation occurs in the receiver.
    Demand 2 is suitable for event sourcing (recording that a change is requested), demand 2 is not, it is, as you say, more of an audit log (recording that a change has occurred)
    So, for that reason, since you want to do event sourcing, the only possible workable format is 5.
    Part of this is likely caused by the fact that you are coming at event sourcing by listening to mutation occurring in a database, whereas it should be the other way round, events causing the mutation to occur.
    That's not to say that you can't get your scheme to work, and satisfy your requirements well, just don't think of it as event sourcing, as that's not what you actually want.
    Adopting an event sourced data setup would support your needs above somewhat more easily, but adapting existing systems to that can be very involved to do.

  • Data Persistence in workflows triggered through interactive forms.

    I have read through all the threads regarding Data persistence and do understand that form data is stored in xml format. I still have the following doubt:
    For all the custom workflows we are developing for this client (using Adobe interactive forms as the UI in the workflows) we want to have local data persistence. Is there a model which covers data collected through the forms, including those data that are retrieved from SAP at the beginning of the workflow, and those data that are manually entered by the forms user?
    Scenario : <b>cost xx - approver 1
    cost xx + 1 - approver 2
    Form data filled, cost xx and hence a email goes to approver 1.
    Now, details changes and cost for that sales order increases to xx + 1.</b>
    Will my email still be in the inbox of approver 1?
    What if I want data persistence where from the initiation to the end of workflow the data should be persisted irrespective of the changes.
    Thanks,
    Kavitha

    Hello Kavitha,
    Your workitem will stay where it is unless you've specifically modelled it to react to a change. In standard purchasing you would use a change event triggered from ME22N or the likes, but unfortuantely I'm not in depth familiar with Adobe Forms so I don't know what happens when data is changed on a form once the WF has started.
    However if you want data to remain constant throughout the life of the WF then I'd suggest binding it to a WF container when the doc is first created and then working with that value.
    Hope that helps,
    Mike

  • System status change with delegated standard object

    Hi everybody,
    I delegated BUS2005 (production order) to ZBUS2005 and created a new event based upon the system status MANC (I0420). It works fine when I use my custom object ZBUS2005 in BSVZ and this event is successfully triggered. But when I change this object to the standard object BUS2005 in the same transaction BSVZ, the event is not triggered. BUS2005 has been already delegated to ZBUS2005.
    Can somebody kindly tell me how this can be fixed? I want to see the standard object, BUS2005 in the trace, instead of my custom object.
    Thanks,
    Max

    Thanks Nishant,
    Well, I have created many events for other objects and delegated the objects.
    In all these cases, I can see the standard objects in the trace, not the customized objects. But in these cases, I didnt go for status change management.
    So, why dont I see the same standard object in the trace in this case of BUS2005? Even the setting in BAVZ has been done according to BUS2005, not ZBUS2005. So, I am expecting BUS2005 in the trace. Trace comes only when I change this BUS2005 to ZBUS2005 in BSVZ.
    Please give your comments.
    Thanks,
    Max

Maybe you are looking for

  • I can no longer add epubs or PDFs into iBooks

    I already have a few epubs and PDFs on my computer and wanted to add them to iTunes in order to get them onto my iPad. It used to be easy enough to do. Now it does nothing. I tried to add them via the menu, I tried dragging them as well. I have Maver

  • My Final Cut Pro 7.0.3 WON'T OPEN!

    I recently dumped so applications on my Mac OS X 10.6.8 Then when I try to open my FCP 7.0.3 it comes up with this info below.  Can anybody understand this and help!  Been down for days with huge deadlines.  PLEASE HELP! - PATRICK Process:         Fi

  • Is light faulty on new 60w power adapter for my Macbook?

    Had to order a new 60w power adapter for my Macbook a couple of weeks ago -- bought it from the Apple Store (the new design adapter). When it's plugged in it turns green, then immediately turns red to recharge -- all normal. Once fully recharged the

  • Language key not defined (CIF)

    Hi experts, currently we get an error message "Language key not defined" during the transfer of a customer from ERP to EWM (CIF - CFM1/CFM2). Therefore no business partner in EWM is created. I read something about "One-time account" (1957563 and 1975

  • Question about some date

    Hi there: My sales order was created on 11/12,then I went to schedule line item and selecing shipping tab,I found that delivery date is 11/23,goods issue date is 11/22,loading date is 11/19,material available date is  11/18,transportation plan date i