on 08-29-2016 2:04 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.