on 09-23-2013 6:45 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
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
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.