Description
This service allows you to manage account categories (add, delete, get by key, get list, and update) for use with the Copy Express add-on.
Source table:Â OACG.
Object Model
Remarks
Example
| Account Category Service (Visual Basic) | Copy Code |
|---|
Dim oCompanyService As SAPbobsCOM.CompanyService
Dim AccCatService As SAPbobsCOM.AccountCategoryService
oCompanyService = oCompany.GetCompanyService
AccCatService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.AccountCategoryService)
Dim AccCat, NewAcctCat As SAPbobsCOM.AccountCategory
Dim AccCatParams, NewAccCatParams As SAPbobsCOM.AccountCategoryParams
AccCatParams = AccCatService.GetDataInterface(SAPbobsCOM.AccountCategoryServiceDataInterfaces.acsAccountCategoryParams)
AccCat = AccCatService.GetDataInterface(SAPbobsCOM.AccountCategoryServiceDataInterfaces.acsAccountCategory)
AccCatParams.CategoryCode = 10
AccCat = AccCatService.GetCategory(AccCatParams)
Dim CategoryList As SAPbobsCOM.AccountCategoriesParams
CategoryList = AccCatService.GetCategoryList
NewAcctCat = AccCatService.GetDataInterface(SAPbobsCOM.AccountCategoryServiceDataInterfaces.acsAccountCategory)
NewAcctCat.CategoryName = "New Account Category"
NewAcctCat.CategorySource = SAPbobsCOM.AccountCategorySourceEnum.acsBalanceSheet
NewAccCatParams = AccCatService.AddCategory(NewAcctCat)
|
|
See Also