XMLports aufrufen (NAV)

Aufruf ohne RequestForm und Dateiname Dialogbox

Import

varInStr: InStream
varFilenameWithPath: Text 100
varExportFile: File

varImportFile.OPEN(varFilenameWithPath);
varImportFile.CREATEINSTREAM(InStr);
XMLPORT.IMPORT(XMLPORT::"XMLport Name",varInStr);
varImportFile.CLOSE;

Export

varOutStr: OutStream
VarFilenameWithPath: Text 100
vxportFile: File

varExportFile.CREATE(varFilenameWithPath);
varExportFile.CREATEOUTSTREAM(varOutStr);
XMLPORT.EXPORT(XMLPORT::"XMLport Name",varOutStr);
varExportFile.CLOSE;