cancel
Showing results for 
Search instead for 
Did you mean: 

Soluiton manger CRM_DNO_MONITOR

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Experts,

Any update on the above issue.

Thanks & Regards,

Umesh

sunny_pahuja2
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Dear Sunny,

Hope you didnt understand my requirement.

Thanks for replying.

But this is not the solution and you also dont do it. Deleting the BP is of no use.

Regards,

Umesh

ANY EXPERTS IN SOLMAN AND WORKED IN SOLMAN IMPLEMENTATION PROJECT ANY ANSWER THIS.

THANKS IN ADVANCE

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Dear Experts,

Any updates on the above........???

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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