biuan SAP® BUSINESS ONE SDK
API Account Category Service

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

Country-specific for US and Canada.

System categories cannot be deleted or updated.

Example

Account Category Service (Visual Basic)
'Company Service Dim oCompanyService As SAPbobsCOM.CompanyService 'Account Category Service Dim AccCatService As SAPbobsCOM.AccountCategoryService 'Get Company Service oCompanyService = oCompany.GetCompanyService 'Get Category Service AccCatService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.AccountCategoryService) 'Account Category Objects Dim AccCat, NewAcctCat As SAPbobsCOM.AccountCategory 'Account Category Parameters Dim AccCatParams, NewAccCatParams As SAPbobsCOM.AccountCategoryParams 'Get Account Category AccCatParams = AccCatService.GetDataInterface(SAPbobsCOM.AccountCategoryServiceDataInterfaces.acsAccountCategoryParams) AccCat = AccCatService.GetDataInterface(SAPbobsCOM.AccountCategoryServiceDataInterfaces.acsAccountCategory) AccCatParams.CategoryCode = 10 AccCat = AccCatService.GetCategory(AccCatParams) 'Get Account Category List Dim CategoryList As SAPbobsCOM.AccountCategoriesParams CategoryList = AccCatService.GetCategoryList 'Add New Account Category NewAcctCat = AccCatService.GetDataInterface(SAPbobsCOM.AccountCategoryServiceDataInterfaces.acsAccountCategory) NewAcctCat.CategoryName = "New Account Category" NewAcctCat.CategorySource = SAPbobsCOM.AccountCategorySourceEnum.acsBalanceSheet NewAccCatParams = AccCatService.AddCategory(NewAcctCat)

See Also

SAP® B1 DI-API C# definition

public class AccountCategoryServiceClass : IAccountCategoryService, AccountCategoryService { public extern AccountCategoryServiceClass(); public virtual extern AccountCategoryParams AddCategory( AccountCategory pIAccountCategory); public virtual extern void DeleteCategory( AccountCategoryParams pIAccountCategoryParams); public virtual extern AccountCategory GetCategory( AccountCategoryParams pIAccountCategoryParams); public virtual extern AccountCategoriesParams GetCategoryList(); public virtual extern object GetDataInterface( AccountCategoryServiceDataInterfaces enumMSDI); public virtual extern object GetDataInterfaceFromXMLFile( string bstrFileName); public virtual extern object GetDataInterfaceFromXMLString( string bstrXMLString); public virtual extern void UpdateCategory( AccountCategory pIAccountCategory); }

Related information


Account Category AccountCategory Object
A data structure object related to the AccountCategoryService service. Source table:  OACG.
   Parent: Account Category Service AccountCategoryService Service

Account Category Service Data Interfaces AccountCategoryServiceDataInterfaces Enumeration
AccountCategoryService data interfaces.
   Parent: Account Category Service AccountCategoryService Service

Account Categories Params AccountCategoriesParams Collection
A data collection of AccountCategoryParams.
   Parent: Account Category Service AccountCategoryService Service


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