Hi
_oCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode;
_oCompany.XMLAsString = false;
string xmlSchema = _oCompany.GetBusinessObjectXmlSchema(SAPbobsCOM.BoObjectTypes.oBusinessPartners);
System.IO.File.WriteAllText("D:\\TEMP\\bp.xml", xmlSchema);
Thanks
Amit MohantyPosted Dec 30, 2023, 5:45 AM
You should ensure that the directory "D:\TEMP\" exists on your system before attempting to write the file to it. You can create the directory manually or modify your code to create the directory if it doesn't exist before writing the file.