‎2006 Jun 15 5:46 AM
Hi All,
do anyone knows about CRM Oppotunities. I need to trigger a workflow whenever the opportunity is changed. currently it is triggering whenever i create an opportunity. It checked, it does not trigger any event when document is changed.
can any one let me know how to trigger a workflow whenever an opportunity is changed.
Thanks,
Naresh.
‎2006 Jun 15 5:59 AM
Confirm whether the event is triggered using the event trace SWU8/SWU9. Also check out the transaction SWETYPV. you can configure a custom FM
‎2006 Jun 15 6:01 AM
Hi Naresh,
Check out the workflow name and get the Business object used in that workflow.
In that BOR object check if any event named CHANGE for opprtunities, if it is there add it to the triggering events list of the workflow.
Rgds,
Prakashsingh
‎2006 Jun 15 6:08 AM
Hi Prakash,
i have modeled the workflow for creation, but problem is it triggers only when, opportunity is created. i have checked with event trace, it does not trigger any event when document is changed.
can crm actions solve my problems. if yes than can you please tell me how to trigger an event using crm actions.
Thanks,
Naresh.
‎2006 Jun 15 6:27 AM
Hi Naresh,
Yeah action can solve ur problem.
But there should be one event in BOR object eg CHANGE which u can trigger from ur action.
Or u can add an event to BOR object by customizing it(if it is standard).
Then u can raise event from the program which save the changes done in opportunities. (In this case u need not required to create an action)
Use this FM for raising event in ur program
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = lc_objtyp
objkey = lv_objkey
event = lv_eventname
IMPORTING
event_id = yv_event_id
TABLES
event_container = lt_container
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
Rgds,
Prakshsingh
Message was edited by: Prakashsingh Mehra