Skip to Content
0
Former Member
Sep 03, 2009 at 12:35 PM

Error importing an XML with the "GetBusinessObjectFromXML" object

16 Views

Hi,

I'm trying to import an XML with the "GetBusinessObjectFromXML" object but its give an error "-1115" (No XML schema was found to represent this object).

The code that previously use to save the XML at next:


Dim oTablaMD As SAPbobsCOM.UserTablesMD
 
Dim oRec As SAPbobsCOM.Recordset
 
 
 
oRec = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset) 'Instancio un recordset para acceder a la base
 
 
 
oRec.DoQuery("SELECT TableName FROM OUTB") 'traigo los nombres de las tablas de usuario
 
While (Not oRec.EoF)
 
oTablaMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables) 'instancio una tabla de usuario
 
oTablaMD.GetByKey(oRec.Fields.Item(0).Value) 'le indico que tabla quiero obtener
 
oTablaMD.SaveXML(strRutaXML) 'exporto el XML
 
oRec.MoveNext() 'avanzo el registro
 
End While
 
 
 

Anybody know, what can be happening???

Thanks!!