Quantcast
Channel: SCN : All Content - SAP CRM: Marketing
Viewing all articles
Browse latest Browse all 1578

Badi CRM_MKT_MODIFY_ORDER changes on parameter CT_PARTNER not working

$
0
0

Hi Experts,

 

I have activated the above badi for the method CRM_MKT_MODIFY_ORDER. Basically I need to correct the Employee Responsible. In the badi method CRM_MKT_MODIFY_ORDER I modified the content of parameter for table CT_PARTNER using the folloing code:

 

  DATA ls_partner TYPE bapibus20001_partner_ins.

  • Testing - set partner number

  LOOP AT ct_partner INTO ls_partner

    WHERE  partner_fct = '00000014'.

 

    DELETE TABLE ct_partner FROM ls_partner.

 

    ls_partner-partner_no = '0000216526'.

    APPEND ls_partner TO ct_partner.

    exit.

  ENDLOOP.

 

This did not have any impact on the Employee Responsible.

 

Here is the requirement:

 

 

In CRM we can create "tasks" (business activities). These tasks are transactions with a certain transaction type that have a partner determination assigned. When creating tasks out of a marketing campaign in standard the partner determination isn't used. It is coded to use the partner maintained in the campaign.

 

E.g. I am the person responsible for the campaign, but for the task the sales rep should be the person responsible. When creating the task without a campaign the partner determination will find the correct sales rep and assign it as the person responisble. When creating the task automatically from a campaign, the person resposible will be the same than in the campaign, that means myself.

 

There is a BADI available (CRM_MKT_MODIFY_ORDER) where this can be changed. To enhance the creation of business transactions Contact/Task, you can implement and activate the method MODIFY_ACTIVITY_OBJ.

 

You can find more information under spro-> Customer Relationship Management -> Marketing -> Campaign Execution -> Business Add-Ins -> Enhance Creation of Business transactions

 

What I basically need is that the partner determination is called in the badi and update the CT_PARTNER parameter accordingly.

 

Issues:

1. I cannot find a simple to use function module to call. I found FM CRM_PARTNER_DETERM_INITIAL_EC. Within this FM, it calls many functions to determine the partner and uses globals. In the badi those globals are not available.

 

2. I then tried to force in a harded coded partner number as mentioned in the above code in the badi as a test. This test did not seem to have any change to the employee responsible at all.

 

Thank you in advance.

 

Kind Regards

Jimmy


Viewing all articles
Browse latest Browse all 1578

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>