Skip to Content

Today we (Meinrad Scheibleger and I) faced with a wired problem: When the Tab “Activities” is selected in our SAP CRM PC-UI Opportunity application then the Tab “Competitors” disappears. Here’s a description of how we solved the problem. If you’ve never heard about PC-UI check out the PC-UI Book for CRM 5.0

First we’ve checked the PC-UI customizing in Transaction CRMC_BLUEPRINT and CRMC_BLUEPRINT_C but we could not find a place where the Event OPP_HD_COMP responsible for the Tab Competitors is deactivated. So I’ve searched for the Event which is responsible for the Activity Tab and found OPP_HD_ACT.

Event  OPP_HD_ACT
Structure CRMT_BSP_OPP_ACTIVITY_PLAN

In the Application Set I can find the Model Access Class which implements the functionality: 

Appl.Set CRMD_BUS2000111
Structure CRMT_BSP_OPP_ACTIVITY_PLAN
Access Class CL_CRM_BSP_AM_HEADOM_1O

The Class CL_CRM_BSP_AM_HEADOM_1O implements the Method IF_CRM_BSP_MODEL_ACCESS_IL~CHECK_ACTIVE_TABSTRIP which is responsible what tab strips are visible. On Line 15 of the Method the Function Module CRM_BSP_DEACTIVATE_HEAD_TAB is called. I’ve put a breakpoint there and recognized that the number of entries in the internal table decreased. So I drilled down and found a call of Function Module CRM_OPPORT_DEACT_TAB_FCODES at Line 375. This module returns flags what tabs should be visible/invisible. But what sets a flag to visible? The Competitor Flag is set in this Module on Line 121 where the FM  COM_PARTNER_FCT_IN_DETERM_PROC is called. The Parameters where set to:

iv_determ_proc = 'Y0000002'
iv_partner_pft = '0009'
iv_subtype = 'CRM' 

Meinrad recognized these Values because he was jus doing some adjustments in SPRO -> CRM -> Basic Functions -> Partner Processing -> Define Partner Determination Procedure. Here we have our own Procedure Y0000002 for Activities. We added the Partner Function Competitors (CRM) to this procedure and now the Tab Competitors is visible all the time.

image

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Sudipta Sarma
    Hi Gregor,

      This is really very useful and hope to share many more interesting stuff with the mentor of the month.

    Hope you remember me from the discussions we had on the CRM table during the ‘Commnity day’ networking session in Blore 😉

    Thanks,
    Sudipta.

    (0) 

Leave a Reply