on 07-22-2008 5:43 PM
Hi Experts,
I have configured Solution Manager 4.0 for CHARM. It is working fine. My requirement is that, it should trigger mail whenever support team changes.
Initally, I defined a action to trigger mail once whenever a support team is assigned. It worked fine. But the problem with this setting is that, whenever I change support team, it is not triggering a mail and this is understood because I configured to trigger once only. So, I changed the setting of action to "unprocessed", it starts triggering mails whenever I change the support team.
Now Issue is that, it is also triggering the mail to support team whenever the transaction is saved (Ex: When I create change document for a support message, transaction saves automatically) even though support message is not changed. This leads to unnecessary mails.
In order to avoid unnecessary mails, I deleted the existing action and created a new one wherein start condition was not maintained but maintained setting under scheduled condition as per SAP note 865619 and implemented BADI also.
Now I am not getting a single mail whenever a support team is assigned or changed.
Any suggestion please provide.
Thanks in advance.
Regards
Kumar
Patil,
Thanks once again for your quick response.
I think I am very near to the solution with your inputs, but since I don't have much knowledge of ABAP, I am not getting the flow of the correction needs to be implemented.
As mentioned earlier, I am trying to trigger a mail on support message (SLFN) whenever there is a change in support team field irrespective of status of the support message. But initially I created one action which triggers mail whenever status is new & following are the details:
Name: z_mail_send_support_team
Action: unprocessed (Triggers n number of times)
Partner dependent: SLFN0003 (Support Team)
Condition: E0001SLFN0001 (i.e. Status NEW on Support Messge)
My questions:
1. Should I delete z_mail_send_support_team action or not?
2. If I need to delete this action, how the mail will be trigger when we implement the code given by you.
3. If I don't delete, how I should establish link between the code and this action.
Rega
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
No need to have action for this. You can use the mentioned code in the mentioned BADi.
Use the smartform for sending mails.
reward if it helps.
regards,
mahantesh
Kindly close the thread if you have resolved your query. Kindly reward point for helpful ansers.
Edited by: Mahantesh Patil on Jul 30, 2008 10:40 AM
Hi Patil,
Thanks for your response.
Do I need to implement code given by you in addidtion to implementation of SAP note 865619?
Do I need to change the action which I already defined?
Regards
Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
This can be done very well.
For this you can implement the BADI ORDER_SAVE, method CHECK_BEFORE_SAVE.
In this method you write a code as mentioned below,
1. Use FM
WA_HEADER = IV_GUID.
Insert wa_header into table lt_header.
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
IT_HEADER_GUID = lt_HEADER
IT_ITEM_GUID =
IMPORTING
ET_CUSTOMER_H = lt_customer_h
ET_ORDERADM_H = lt_orderadm_h
ET_OPPORT_H =
ET_PARTNER = lt_partner
ET_STATUS = It_status
ET_REFOBJ = lt_CRMT_refobj_WRKT
ET_SUBJECT = lt_CRMT_SUBJECT_WRKT
EXCEPTIONS
DOCUMENT_NOT_FOUND = 1
ERROR_OCCURRED = 2
DOCUMENT_LOCKED = 3
NO_CHANGE_AUTHORITY = 4
NO_DISPLAY_AUTHORITY = 5
NO_CHANGE_ALLOWED = 6
OTHERS = 7
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
2. You will get the Business Partners entered on the screen in the internal table lt_partner, read the address number1 for the partner function of the support team.
3. Get the contents from view CRMV_LINKPARTNER using the LV_GUID. And get the address number2 for partner function of the support team.
4. Compare the address number2 & address number1. If they are not equal then trigger a mail else don't.
Let me know if you need some more help.
Reward if it helps.
regards,
mahantesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.