on 05-05-2011 11:53 AM
Dear EXPERTS,
I have an requirement to change the SUPPORT TEAM Business partner number from the back end.
I have identified the table CRMD_ORDER_INDEX in which the field PFT_16 is the support team BP. and i wrote a update query
SELECT guid "OBJECT_ID
INTO TABLE it_guid
FROM crmd_orderadm_h
WHERE object_id IN s_type.
IF sy-subrc = 0.
SELECT *
INTO CORRESPONDING FIELDS OF TABLE it_crmd_order_index
FROM crmd_order_index
FOR ALL ENTRIES IN it_guid
WHERE HEADER = it_guid-guid AND
ITEM = it_guid-guid AND
PFT_16 = 'X' .
ENDIF.
IF it_crmd_order_index IS NOT INITIAL.
lOOP AT it_crmd_order_index INTO wa_crmd_order_index.
wa_crmd_order_index-PARTNER_NO = '00000000244'.
APPEND wa_crmd_order_index TO it_crmd_order_index1.
ENDLOOP.
UPDATE crmd_order_index FROM TABLE it_crmd_order_index1.
this is actually updating the table of the support team but when i open the ticket after updating in CRM_DNO_MONITOR the support team is the same before i have update.
Updation in the CRM_ORDER_TABLE is sucessfull if i check in the table is different.
Please suggest how to change the support team from the report.
Regards,
Umesh
Personal information removed
Thanks in advance.
Edited by: Matt on Jun 8, 2011 11:19 AM
Dear Experts,
Any update on the above issue.
Thanks & Regards,
Umesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can delete the BP. And then again create the BP for the support team. In order to delete BP, please follow below link:
http://wiki.sdn.sap.com/wiki/display/CRM/HowtoDeleteaBusiness+Partner
Thanks
Sunny
Hi,
table CRMD_ORDER_INDEX is only an index table for the selection of CRM_DNO_MONITOR, it does not contain the data displayed in a ticket.
If you want to change a BP in a partner function of a ticket, please use the following function modules (first delete the existing BP, then add the new BP)::
CALL FUNCTION 'SOCM_CRM_PA_DELETE_PARTNER'
EXPORTING
iv_guid_crm = lv_guid_crm "GUID of your ticket
iv_save_mode = ' '
iv_partner_fct = lv_pfct "your partner function
IMPORTING
ev_return = lv_return.
CALL FUNCTION 'CRM_DNO_UPDATE_PARTNER'
EXPORTING
iv_header_guid = lv_guid_crm "GUID of your ticket
iv_partner_guid = lv_partner_guid1 "GUID of your BP
iv_partner_fct = lv_pfct "your partner function
iv_only_when_initial = ' '
EXCEPTIONS
OTHERS = 1.
Regards,
Christoph
Dear Christoph,
Thanks for your reply.
I will clearly explain the requirement.
+I want to change the support team of the ticket in my report. +
But not in partner function.Please suggest me some standard reports or the table or FUNCTION MODULES to change the tickets support team.
Thanks in advance.
Regards,
Umesh J
Dear Christoph,
Business partner of the ticket will be stored in the table CRMD_PARTNER rite.
I mean all the BP ReportedBy , Support Team BP, Current Processor or message processor etc....
How to update the SUPPORT TEAM BP OF SUPPORT TICKET.
i tried to use the above function module. But not able to get the things done.
Help me out in this.
Thanks.
Hi,
table CRMD_ORDER_INDEX is only an index table for the selection of CRM_DNO_MONITOR, it does not contain the data displayed in a ticket.
If you want to change a BP in a partner function of a ticket, please use the following function modules (first delete the existing BP, then add the new BP)::
CALL FUNCTION 'SOCM_CRM_PA_DELETE_PARTNER'
EXPORTING
iv_guid_crm = lv_guid_crm "GUID of your ticket
iv_save_mode = ' '
iv_partner_fct = lv_pfct "your partner function
IMPORTING
ev_return = lv_return.
CALL FUNCTION 'CRM_DNO_UPDATE_PARTNER'
EXPORTING
iv_header_guid = lv_guid_crm "GUID of your ticket
iv_partner_guid = lv_partner_guid1 "GUID of your BP
iv_partner_fct = lv_pfct "your partner function
iv_only_when_initial = ' '
EXCEPTIONS
OTHERS = 1.
Regards,
Christoph
==================================================================================
Dear Chirstoph,
When i call the second FM CRM_DNO_UPDATE_PARTNER"
What is the iv_header_guid Parameter i tried to pass the GUID from CRMD_ORDERADM_H table but it returns 1 in sy-subrc.
Please let me know what exactly i need to pass in the second function module as parameters.
1.> header guid from which table.
2.> Partner function i,e. New Support Team Business partner that i need to assign to the ticket after deleting using FM :"SOCM_CRM_PA_DELETE_PARTNER"
3.> Partner function.
4. > And the initial value it should be falsePoints
will be rewarded.
Thanks ,
Umesh.
Hi,
- iv_crm_guid = GUID of your ticket from CRMD_ORDERADM_H
- iv_partner_guid = GUID of the business partner you want to enter (see table BUT000, field PARTNER_GUID)
- iv_partner_fct = Partner function where the business partner is entered (for example SLFN0001)
- iv_only_when_initial = not relevant, since partner function is initial after SOCM_CRM_PA_DELETE_PARTNER
Hope this helps,
Christoph
Dear Christoph,
I tried to update the partener function using the function modules specifed buy you.
SOCM_CRM_PA_DELETE_PARTNER to delete it gives the sy-subrc 0 (ZERO) but still partener exists if i open the ticket.
I am getting the Sy-subrc vlaue as 1 for the next function module
PLEASE SEE THE BELOW CODE.
=======================================
REPORT zdemo.
DATA lv_return type SY-SUBRC.
CALL FUNCTION 'SOCM_CRM_PA_DELETE_PARTNER'
EXPORTING
iv_guid_crm = '4683216E4A51009A00000000911132AA' "GUID of ticket from crmd_orderadm_h
iv_save_mode = 'X'
iv_partner_fct = 'SDSM0003' " Partner function of the support team
IMPORTING
ev_return = lv_return.
CALL FUNCTION 'CRM_DNO_UPDATE_PARTNER'
EXPORTING
iv_header_guid = '4683216E4A51009A00000000911132AA'' "GUID of your ticket from CRM_ORDERADM_H
iv_partner_guid = '4DAB890107F000F8E100800091113256' "GUID OF BP FROM BUT000 NEW SUPPORT TEAM
iv_partner_fct = 'SDSM0003' " SUPPORT TEAM PARTNER FUNCTION your partner function
iv_only_when_initial = ' '
EXCEPTIONS
OTHERS = 1.
if sy-subrc = 0.
write: 'Successfully changed the support team BP'.
ENDIF.
Hi,
please debugg CRM_DNO_UPDATE_PARTNER and set a break point at line 99.
Check if there are any entries in table lt_exception, this should give you a hint whats wrong.
Also try to perform function module CRM_ORDER_SAVE after calling the previous function modules and a COMMIT after that.
Regards,
Christoph
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.