cancel
Showing results for 
Search instead for 
Did you mean: 

What is the difference between ACTION and EVENT in CRM

Former Member
0 Kudos

What is the difference between ACTION  and EVENT in CRM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Events are triggered for the actions (SAVE , CANCEL  etc .. .) performed.

Events are the way to handle the business logic.

For experiencing the realy use of eventing : try search for Data loss pop up where the eventing is been used very extensively and all the doubts which you have on this will be cleared.

Thank and Regards,

nikhil Kulkarni

Former Member
0 Kudos

Hi Nikhil,

Thanks for the reply...

If the below case occurs which  I have the choose...

Suppose in Quotation document , when user change the user status from I0308 to I0309 ,a validation will perform based on user Role ,and if it pass the validation it will trigger one email ,else it will display an error message.

In this case shall we use Event or Action.

Former Member
0 Kudos

Hello ,

  I this case you need to make use of event handler.

Declear a server event in the get_p_xxx method of the status.

When you define  a server event in the get_P_XXX method , you need to create a event handler with the same name.

   WHEN if_bsp_wd_model_setter_getter=>fp_server_event
       OR  if_bsp_wd_model_setter_getter=>fp_onclick.
      rv_value = 'EVENT_HANDLER_NAME'. 

rv_value is case sensitive and all should be capital letters . Declear event handler with the same name and write logic to check the status of quotation and do your validation.

Thanks and Regards,

Nikhil Kulkarni

Former Member
0 Kudos

Thanks Nikhil...

Can u please help me to understand ...when I have to use Event and when I have to use Action

Former Member
0 Kudos

Hi ,

As per my knowledge you can follow any of the approach below.

  • Using action profile you can send the email on perticular status.Refer below link

        http://www.sapfunctional.com/CRM/Actions/Index.htm

        http://wiki.sdn.sap.com/wiki/display/CRM/Action+profiles+in+SAP-CRM

  • Second one is that after saving the quotation ,validate and trigger mail in either on EH_ONSAVE method  from UI, or use ORDER_SAVE Badi .But I am not sure about sending message from BAdi to UI.

Regards

Rajarama U

Former Member
0 Kudos

Thanks Rajarama....for ur help

Answers (0)