Description
Creates a data structure from a specified XML file.
Syntax
| Visual Basic |
|---|
Public Function GetDataInterfaceFromXMLFile( _
   ByVal bstrFileName As String _
) As Object |
Parameters
Example
Shows how to get an Openning Balance Account from an XML file.
| GetDataInterfaceFromXMLFile (Visual Basic) | Copy Code |
|---|
Dim oCmpSrv As CompanyService
Dim oAccountsService As AccountsService
Dim oOpenBalanceAccount As SAPbobsCOM.OpenningBalanceAccount
Dim oOpenBalanceAccountFrmFile As SAPbobsCOM.OpenningBalanceAccount
oCmpSrv = oCompany.GetCompanyService
oAccountsService = oCmpSrv.GetBusinessService(ServiceTypes.AccountsService)
oOpenBalanceAccount = oAccountsService.GetDataInterface(AccountsServiceDataInterfaces.asdiOpenningBalanceAccount)
oOpenBalanceAccount.OpenBalanceAccount = "_SYS00000000078"
oOpenBalanceAccount.ToXMLFile("c:\MyAccount.xml")
oOpenBalanceAccountFrmFile = oAccountsService.GetDataInterfaceFromXMLFile("c:\MyAccount.xml") |
|
See Also