This example is applied to only 1 table to export, but multiple tables per document could be exported by ticking the “Generate separate CSV per Data Provider” option.
Once run with Success, the result of this schedule will be a text file (Results1.txt) with the content delimited by tabs but with a small defect: the so-called text qualifier (double quotes) appears everywhere.
In order to remove this annoying text qualifier (double quotes) a program can be scheduled. You can use your free style but if you copy and paste the following txt into a file called “QuoteRemoval.vbs” it will do the job:
set objRe = new RegExp
objRE.Pattern = """"
objRE.Global = True
strFileName = "D:Results1.txt"
set objFS = CreateObject("Scripting.FileSystemObject")
set objTS = objFS.OpenTextFile(strFileName)
strFileContents = objTS.ReadAll
objTS.Close
strNewContents = objRE.replace(strFileContents,"")
set objWS = objFS.CreateTextFile("D:Results2.txt")
objWS.Write StrNewContents
objWS.close
The result of this executed script will be a perfectly formatted Results2.txt file
Last but not the least, you can build a system of events that triggers the different items sequentially, or embed these items in an object package that can be scheduled as a whole.
Applicability & Benefits
This method enhances the sharing options for the SAP BusinessObjects platform, allowing an unlimited amount of raw data to exit the platform through WebI automatically, and be re-used in Big Data modules like HANA, Visual Intelligence, Explorer or simply for individual consumption.
Seeing even further, this turns WebI into a real ETL (Extraction, Transformation and Load) tool providing integration capabilities to the end users.
Summarizing, this method:
- Allows a better integration of SAP BusinessObjects with the corporate BI processes improving efficiency and effectiveness
- Facilitates companies to opt for a migration to SAP BI4 release, with all the benefits that the newest platform brings
If you have questions about this method, or if you want to share your experience or tips, please feel free to leave a comment.