Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CRM Opprotunity, Trigger workflow

Former Member
0 Likes
505

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.

4 REPLIES 4
Read only

Former Member
0 Likes
459

Confirm whether the event is triggered using the event trace SWU8/SWU9. Also check out the transaction SWETYPV. you can configure a custom FM

Read only

Former Member
0 Likes
459

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

Read only

0 Likes
459

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.

Read only

Former Member
0 Likes
459

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