i wrote a short description about Open XML standard.
Open XML let us the possibility to read , write and manipulate Open XML (OOXML) documents.
let’s explain this.
we want to read Microsoft Word .docx extension into SAP , upload the file and then do some actions on this file.
in the old days we had .doc extension file that was uploaded into SAP and we had no possibility to manipulate the file.
we could only use Office Integration methods or OLE methods
and we had to open Word application to use it.
now , with OOXML we have a lot of opportunities.
Open XML files are really ZIP files and not Binary files as the legacy .doc or .xls extensions are.
we can see here examples of OPC extensions
let’s have an example.
we will create a new Microsoft Word document.
the document contains a header with a logo and some text.
save it as scnExample.docx file.
now, let’s change the file extension to .zip.
now we have scnExample.docx.zip file.
we will unzip the file
and we got a zip directory contains subdirectories and files.
this is the structure of the Open Packaging Conventions (OPC) which is a container-file technology.
this is a combination of xml and non xml files that together create an Open XML document.
now , you can understand what’s the main difference between legacy and Open XML files.
Open XML let us the freedom to handle the documents as we need on any platform we need.
this is a huge advantage over the old methods that used macros and so on.
from here we will upload the file using any method of file uploading into SAP server,
( local file or Read dataset method ).
the file will be inserted into a Zip object in ABAP
and then we could manipulate and handle every part of the ZIP object.
think about in as a puzzle or a Lego.
you break it into pieces ( called parts in OPC )
handle the pieces you need
and then collect all the pieces into one ZIP object.
and more to come…