biuan SAP® BUSINESS ONE SDK
API GL Account Advanced Rules Service

Description

The GLAccountAdvancedRulesService service enables you to add, look up, update, and remove advanced G/L account determination rules.

Source table: OGAR.

Object Model

Remarks

To open the Advanced G/L Account Determination Rules window, from the SAP Business One Main Menu, choose Administration -> Setup -> Financials -> G/L Account Determination; in the G/L Account Determination window, choose the Advanced button.

Example

C#
Dim oGLAccountAdvancedRulesService As GLAccountAdvancedRulesService = oCompany.GetCompanyService().GetBusinessService(ServiceTypes.glaarGLAccountAdvancedRulesService) Dim oGLAccountAdvancedRule As SAPbobsCOM.GLAccountAdvancedRule= oGLAccountAdvancedRulesService.GetDataInterface (oGLAccountAdvancedRulesServiceDataInterfaces.glaarGLAccountAdvancedRule) oGLAccountAdvancedRule.Period = "2012" oGLAccountAdvancedRule.Itemcode = "i001" oGLAccountAdvancedRule.ExpenseAccount = "1000" oGLAccountAdvancedRule.Code = "100" oGLAccountAdvancedRulesService.Add(oGLAccountAdvancedRule) Dim param As SAPbobsCOM. GLAccountAdvancedRuleParams = oGLAccountAdvancedRulesService.GetDataInterface (oGLAccountAdvancedRulesServiceDataInterfaces. glaarGLAccountAdvancedRuleParams) param. AbsoluteEntry = 1 oGLAccountAdvancedRule = oGLAccountAdvancedRulesService.Get(param) oGLAccountAdvancedRule. ExpenseAccount = "2000" oGLAccountAdvancedRulesService.Update(oGLAccountAdvancedRule) param. AbsoluteEntry = 1 oGLAccountAdvancedRulesService.Delete(param)

See Also

SAP® B1 DI-API C# definition

public class GLAccountAdvancedRulesServiceClass : IGLAccountAdvancedRulesService, GLAccountAdvancedRulesService { public extern GLAccountAdvancedRulesServiceClass(); public virtual extern GLAccountAdvancedRuleParams Add( GLAccountAdvancedRule pIGLAccountAdvancedRule); public virtual extern void Delete( GLAccountAdvancedRuleParams pIGLAccountAdvancedRuleParams); public virtual extern GLAccountAdvancedRule Get( GLAccountAdvancedRuleParams pIGLAccountAdvancedRuleParams); public virtual extern object GetDataInterface( GLAccountAdvancedRulesServiceDataInterfaces enumMSDI); public virtual extern object GetDataInterfaceFromXMLFile( string bstrFileName); public virtual extern object GetDataInterfaceFromXMLString( string bstrXMLString); public virtual extern GLAccountAdvancedRuleParamsCollection GetList(); public virtual extern void Update( GLAccountAdvancedRule pIGLAccountAdvancedRule); }

Related information


GL Account Advanced Rules Service Data Interfaces GLAccountAdvancedRulesServiceDataInterfaces Enumeration
GLAccountAdvancedRulesService data interfaces.
   Parent: GL Account Advanced Rules Service GLAccountAdvancedRulesService Service· Table: OGAR

GL Account Advanced Rule GLAccountAdvancedRule Object· Table: OGAR
The set of rules according to which the G/L account determination takes place. The advanced G/L account determination rules are defined per posting period. Source table: OGAR.
   Parent: GL Account Advanced Rules Service GLAccountAdvancedRulesService Service· Table: OGAR

GL Account Advanced Rule Params Collection GLAccountAdvancedRuleParamsCollection Collection
A collection of GLAccountAdvancedRuleParams objects.
   Parent: GL Account Advanced Rules Service GLAccountAdvancedRulesService Service· Table: OGAR


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