cancel
Showing results for 
Search instead for 
Did you mean: 

Territory Management

uday_sunkara3
Explorer
0 Kudos

Hello,

Need some advise on the below requirement,

Current process is every new customer is manually assigned to a territory.

Changes or reassignments of customers to different territories is also a regular process

Process used is BRF rules

Every time a new Business partner or a customer is created, we edit the current rule and copy the rule and add a new customer and assign a valid start date of the new rule from the following day and end the existing rule with today’s date.

To deal with any changes like un assigning a customer from a territory and assigning it to another territory.

We have to edit the existing BRF rule, copy and delete the customer and set the valid start date of the rule from the following day and end the existing rule with today’s date.

Then follow the same above process to add the deleted customer to another territory.

I am planning to get this automated using the below

We would like to automate this process with the below modifications

Automatic assignment of customers to Territory based on BP relationships

BP Relationship – Is Responsible Employee

Create a new custom Territory attribute for BP and use necessary Business Add-ins to extract the Business Partner and relationship (Is Responsible Employee)

Please suggest a solution to this requirement, or if i can achieve this with the above changes and what changes are required on BRF side?

Thanks

Regards

Uday

View Entire Topic
uday_sunkara3
Explorer
0 Kudos

Dear Spencer,

We have started to work on this and our developer had a question which i was not able to answer.

I have setup a new Territory attribute for BP as ZB_BPREL and our developer has added code to the BADI as below and activated the BADI and method.

method IF_EX_CRM_TERRMAN_ATTRIB~PROCESS_RELNSHPS.

  break usunkara.

   DATA: lw_accrel TYPE crmd_terr_accrel.

   LOOP AT it_rule_attr TRANSPORTING NO FIELDS

            WHERE attribute = 'ZB_BPREL'.

*        ls_subrc = 0.

     EXIT.

   ENDLOOP.

endmethod.


His question is how can we initially trigger the break point set in the code to go through the process steps.


Please assist with this.



Thanks

Regards

Uday

spencer_liang
Active Contributor
0 Kudos

Hi Uday,

Sorry, I do not know it.

Try to maintain the break point set in SU3 for the logon user with value X?

Why not set a breakpoint in this method directly?

Spencer