cancel
Showing results for 
Search instead for 
Did you mean: 

Query on Alert Category in SAP CRM

former_member196521
Active Participant
0 Kudos

Hello All,

Can Alert Category in SAP CRM, trigger alerts to multiple business partners who are incorporated as partner functions in the business transaction, or the same is partner dependent?

Kind Regards

Atul

Accepted Solutions (1)

Accepted Solutions (1)

former_member186543
Active Contributor
0 Kudos

Hi Atul,

No alert customizing doesn't fix the alert category in respect to the partner functions in a transaction. The recipients could either be fix or on the basis of a particular PFCG role.

Whereas , through enhancements you can set an alert to reach bps of a particular partner function. This can be done under action profiles etc.

/Hasan

former_member196521
Active Participant
0 Kudos

Hi Hasan,

Thanks for the prompt reply, just wanted to reconfirm your post above, the method call in the action profile would be trigger alert, and the logic to include multiple business partners need to be written in the BADI Trigger Alert, Basically the system need to create an alert 15 days before the warranty end date, that the warranty has expired.

Kind Regards

Atul

former_member186543
Active Contributor
0 Kudos

Hi Atul,

You can copy the code of this implementation into your own and then modify the logic of recipients table in the copied logic which is passed in the FM : SALRT_CREATE_API

You need to make the action of type : Execution using selection report and then make relevant settings so that the alert goes only on 15th day.

/Hasan

former_member196521
Active Participant
0 Kudos

Hi Hasan,

Just a clarification the alert should get triggered to multiple business partners 15 days prior to warranty end date and not on the 15th of each day.

When you say recipients table, is this the same table where the partner functions get stored.

Kind Regards

Atul

former_member186543
Active Contributor
0 Kudos

Hi Atul,

Recipients table is a parameter passed in FM : SALRT_CREATE_API fm under the implementation TRIGGER_ALERT of the BADI : EXEC_METHODCALL_PPF. Hence you need to make changes . So you need to make a copy of the class : CL_ACTION_EXECUTE as ZL_ACTION_EXECUTE and change it's method TRIGGER_ALERT . In this method you will find that the FM : SALRT_CREATE_API is called like this .

CALL FUNCTION 'SALRT_CREATE_API'

     EXPORTING

       ip_category            = lv_category

       ip_wait_on_commit      = false

     TABLES

       it_recipients          = lt_recipients

       it_container           = lt_container

     EXCEPTIONS

       alert_category_unknown = 1

       alert_no_recipients    = 2

       alert_error_unknown    = 3

       destination_undefined  = 4

       communication_failure  = 5

       system_failure         = 6

       OTHERS                 = 7.

The recipients table here contains the username of all users to whom the alert will be sent. Hence you need to modify this table in your new code of ZL_ACTION_EXECUTE method TRIGGER_ALERT.

Further you need to create a new implementation of badi : EXEC_METHODCALL_PPF and have it's code as :

DATA: lc_action_execute  TYPE REF TO zl_action_execute.

   CREATE OBJECT lc_action_execute.

********************************************************************

* copy document

   CALL METHOD lc_action_execute->trigger_alert

     EXPORTING

       io_appl_object     = io_appl_object

       ip_application_log = ip_application_log

       ip_action          = ip_action

       ip_preview         = ip_preview

       ii_container       = ii_container

     IMPORTING

       rp_status          = rp_status.

You need to use this implementation in your action definition.


/Hasan

former_member186543
Active Contributor
0 Kudos

Hi Atul,

Would also highly appreciate if you can rate .

/Hasan

former_member196521
Active Participant
0 Kudos

Hi Hasan,

Thanks for the detailed reply just one query before I close this thread, I have created a new date type which is customized date type hence can I trigger an alert from this particular date type?

Kind Regards

Atul

former_member186543
Active Contributor
0 Kudos

HI Atul ,

Yes surely , in your code in the BADI you can handle this too

/Hasan

former_member201769
Participant
0 Kudos

Hi

    I have seen your reply regarding alerts.I have configured an alert and used an action which will be triggered when a particular condition will met like (Planned contract end date - start of supply date=10).

My question is now who will trigger the action when this particular situation will met ,that is whether it will be triggered by its own or i need to run a background job

please help

thanks in advance

former_member196521
Active Participant
0 Kudos

Hi Hasan,

Could you please help

Kind Regards

Atul

former_member186543
Active Contributor
0 Kudos

Hi Atul,

I just replied

/Hasan

former_member196521
Active Participant
0 Kudos

Hi Hasan,

Thanks a lot, will check and get back to you with regards to the restriction of status issue which you had replied some time back, we raised an SAP OSS Message, they SAP asked us to remove the SAP_ALL in su01 tcode however I am facing a different issue when removing the sap_all in su01, could you please help on the issue below as well, thanks for helping out again.

I am pasting both threads for your references since they are related.

http://scn.sap.com/thread/3502891

Kind Regards

Atul

former_member186543
Active Contributor
0 Kudos

Hi Atul,

Sure I will respond on those threads. Also I would request you to kindly mark the replies in those threads as helpful or correct so that if any one faces a similar issue in future, he or she may not face any difficulty viewing the solution.

Thanks as always .

/Hasan

Answers (0)