biuan SAP® BUSINESS ONE SDK
API Branches Service / Add Branch

Description

Adds a branch.

Syntax

Visual Basic
Public Function AddBranch( _
   ByVal pIBranch As Branch _
) As BranchParams

Parameters

pIBranch
The data for the new branch.

Return Type

Contains the key (Code) of the new branch.

Example

Adding a branch (C#)
public void add() { try { BranchesService oBranchSrv; oBranchSrv = (BranchesService)(MainModule.oCmpSrv.GetBusinessService(ServiceTypes.BranchesService)); SAPbobsCOM.Branch addLine; addLine = (SAPbobsCOM.Branch)oBranchSrv.GetDataInterface(BranchesServiceDataInterfaces.bsBranch); //full addition addLine.Name = "X"; addLine.Description = "X Branch"; oBranchSrv.AddBranch(addLine); } catch (Exception ex) { Interaction.MsgBox(ex.Message, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); } }

See Also

Related information


Branch Branch Object· Table: OUBR
Represents a branch. Source table: OUBR Mandatory properties: Name
   Parent: Branches Service BranchesService Service· Table: OUBR

Branches Params BranchesParams Collection
A collection of BranchParams objects.
   Parent: Branches Service BranchesService Service· Table: OUBR

Branch Params BranchParams Object
Holds the key and name to an existing branch.  This object is used to pass keys to and retrieve keys from BranchesService methods.
   Parent: Branches Service BranchesService Service· Table: OUBR

Branches Service Data Interfaces BranchesServiceDataInterfaces Enumeration
BranchesService data interfaces.
   Parent: Branches Service BranchesService Service· Table: OUBR

Branches Service BranchesService Service· Table: OUBR
The BranchesService service enables you to add, look up and remove branches in the branches master data table. Branches can be assigned to users and employees. To see the list of branches and create a new one, select Administration -- Setup --...



SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates