on 01-29-2023 12:53 PM
Dears ,
how to unassign branches for all customers then assign the default branch for each customer with DTW .
the system automaticlly assign all branches to all customers and vendors , although i have uncheck the auto assign option in the general settings before i upload them .
Regards.
Hi ahmad-hamad,
Kindly note the following:
SAPbobsCOM.BusinessPartners oBP;
oBP =(SAPbobsCOM.BusinessPartners)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners);
oBP.GetByKey("002");
oBP.BPBranchAssignment.SetCurrentLine(2);
oBP.BPBranchAssignment.Delete();
oBP.BPBranchAssignment.SetCurrentLine(1);
oBP.BPBranchAssignment.Delete();
int rs = oBP.Update();
Hope it helps!
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ankit ,
thank you for your reply ,
i had to remove the customers and add them again with CRD8 Template , it works fine .
Regards.
User | Count |
---|---|
92 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.