|BusinessObjects XI SDK Sample Code|
|Last Updated: 2/8/2019|
|Here are a number of files containing sample code that uses the SAP BusinessObjects Enterprise .NET SDK. The code was written in C# using the following tools:
XI 3.x .NET SDK and Visual Studio 2008
BI 4.x .NET SDK and Visual Studio 2010 through 2017
All code is provided as is for example purposes only. While I may answer questions about it, I will not provide support for fixing any issues or extending it.
|NOTE: There are some major quirks to using the BI 4.x SDK. If you're using VS 2008, you must change your code to use the Interface version of the classes (IInfoStore, IInfoObjects, etc.) If you're using VS2010 or newer, after you add the assemblies to your project, go to the properties of each and set "Embed Interop Type" to false in order to use the non-interface classes. Also, most of the classes to manipulate report properties have been removed from the BI 4.x SDK - if you need to work with the report properties, you must use the .NET version of the Web Services SDK (see below for a brief tutorial program) or the newer RESTful Web Services SDKs. SAP will eventually move the functionality from all of the SDKs to the RESTful Web Services. As of version 4.2 SP6 you can work with generic InfoObjects, Universes, Connections, Webi reports, Crystal for Enterprise reports, and do User Management with it. However, it DOES NOT work with "classic" Crystal reports unless you treat them as a generic InfoObject.|
|Sample Code Downloads:|
|Code for BOECommonInfo Assembly
This zip file contains an assembly that is used by almost all of the other code samples. It provides a set of common utilities for logging in to a CMS and converting names to ID's and ID's to names as well as various other common functions. The BO 4.x/VS 2010+ version may contain functions that are different from the older version as this code evolves when I work on new projects. BO XI 4.x/VS 2010+ version
|Code for BOEScheduleCrystal Assembly
This zip file contains an assembly that is used for scheduling "classic" Crystal reports. In addition to scheduling a report to run, options include scheduling to printer, unmanaged file, and FTP.
|Code for BOEPublishFiles Assembly
This zip file contains an assembly that is used for publishing non-report documents to BO XI. File types include Excel, Word, PowerPoint, RTF, PDF and Text.
|Code for BOERptArchiver Assembly
This zip file contains an assembly that is used by the report archiving application described in my 2006 Business Objects Insight conference presentation.
|Code for BOEUserAudit application - BO XI r2/VS 2005
This zip file contains the user auditing application described in my 2007 Business Objects Insight conference presentation.
|Code for BOEUserAudit application - BO XI 3.1/VS 2008
This zip file contains the user auditing application described in my 2010 ASUG SAP BusinessObjects User Conference presentation. This requires the XI 3.1/VS 2008 version of BOECommonInfo
|Code for BOEUniverseDependencyCheck application
This zip file contains the universe dependency checker application described in my 2008 GBN User Conference presentation.
|Code for CrystalDocumenter application
This zip file contains code for a utility that documents Crystal reports. It doesn't yet provide as much information as the export to "Report Definition" available in Crystal, but the information is organized better and easier to find. This is a work in progress and hasn't been commented as well as some of the other code samples.
|Code for ScheduleTest application
This zip file contains code for a test harness that I wrote for using the RESTful Web Intelligence SDK to schedule reports, including parameters. Some of this is not included in the documentation for the RESTful SDK and I had to open a ticket with SAP to get the correct information .
|.NET SDK Tutorials:|
|BO XI sp2, Visual Studio 2005|
|BO XI 3.1, Visual Studio 2008|
|BI 4.0 fp3, Visual Studio 2008|
|BI 4.0 fp3, Visual Studio 2010|
|Tutorial for accessing basic user and group information in VS 2010 and BI 4.x.|
|Basic Business Objects .NET Web Services SDK Tutorial for VS 2010 and BI 4.x.|
|Other file Downloads:|
|Report Archiving Presentation from 2006 Business Objects Insight Conference|
|User License Auditing Presentation from 2007 Business Objects Insight Conference|
|Universe dependency checker presentation from the 2008 GBN User Conference|
|User License Auditing presentation from 2010 ASUG SAP BusinessObjects User Conference|
|Integrating SAP Dashboards into SAP Crystal Reports presentation from 2012 ASUG SAP BusinessObjects User Conference|
|Crystal Reports and SAP Dashboards (Xcelsius) files from Integrating SAP Dashboards into SAP Crystal Reports presentation.|
|MS-SQL 2008 backup of data used in the examples from Integrating SAP Dashboards into SAP Crystal Reports presentation.|
|XI r2.NET SDK Installation Instructions|