I am trying to export an Existing invoice as XML but when I use the SAP Client i.e.
File >> Exprt To.>>File>>XML
the file has no structure and is not in XML format at all??
Am I using an incorrect method?
I have tested this and the same happens on my side. It looks like it exports the invoice in the same format as was designed in the print layout designer.
The only other suggestion I can make is to write a small application that you save the invoice as an xml file using the DI API.
Hope it helps,