biuan SAP® BUSINESS ONE SDK
API Accounts Service

Description

The AccountsService enables to transfer credit or debit amounts from a specified opening balance account to one or more G/L accounts. This service creates a journal entry lines.

Mandatory properties:

Remarks

To use the service:

  1. Connect to a valid company.
  2. Call the CompanyService, which is the main DI service that you must call before using any other service.
  3. Call the method GetBusinessService for the required service.
  4. Create an empty data structure related to the required service.
    - or-
    You can create a data structure from an XML file or XML string.
  5. Set the required properties of the specified data structure.
  6. Call the required service method.

Example

See Also

SAP® B1 DI-API C# definition

public class AccountsServiceClass : IAccountsService, AccountsService { public extern AccountsServiceClass(); public virtual extern void CreateOpenBalance( OpenningBalanceAccount pIOpenningBalanceAccount, GLAccounts pGLAccounts); public virtual extern object GetDataInterface( AccountsServiceDataInterfaces enumMSDI); public virtual extern object GetDataInterfaceFromXMLFile( string bstrFileName); public virtual extern object GetDataInterfaceFromXMLString( string bstrXMLString); }

Related information


Accounts Service Data Interfaces AccountsServiceDataInterfaces Enumeration
AccountsService data interfaces.
   Parent: Accounts Service AccountsService Service

GL Accounts GLAccounts Collection
GLAccounts is a collection of GLAccount data structures.
   Parent: Accounts Service AccountsService Service


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