Skip to Content

How can activate Enable Multiple Branches with DI API?

From SAP B1 client (v.9.03 PL09), for activate Enable Multiple Branches, the Manage Stock by Wharehouse must first be activated from Document Settings form

Enable Multiple Branches from interface, I check the Enable Multiple Branches flag from Basic Initialisation tab in Company Details form

SAP B1 send this question

If reply Yes, SAP B1 send this second question

If reply Yes the company is converted in company multi-branches, and SAP B1 notify this message

When I try to activate Enable Multiple Branches from DI API, I excecute this code

When the command UpdateAdminInfo is called, and EnableBranches is setted to Yes, my code throw this exception:

From SAP Business One SDK HelpCenter I read that the property EnableBranches of AdminInfo is defined Read-Write

Why DI API throw the exception?

How can I set EnableBranches with DI API?

Kind regards

Riccardo Suprani

3ubmu.png (6.2 kB)
n4hck.png (5.5 kB)
dijes.png (158.0 kB)
e4ayk.png (1.6 kB)
6kyqv.png (180.8 kB)
k1eej.png (92.3 kB)
sdsh7.png (86.2 kB)
jk6s7.png (68.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Posted on Jun 10, 2019 at 06:53 AM

    Dear Riccardo,

    Please check with SAP DI API objects whether the Admin Setting's object were exposed. ( I think they won't)

    Add comment
    10|10000 characters needed characters exceeded