R/3 Reporting through BAPIs

R/3 Reporting through BAPIs

R/3 contains lots of reports. Many of these use data from so-called Information Structures. If you run a report that lists product sales by country by product group, for example, R/3 does not read all sales orders (which could take forever) to provide the data. Instead, aggregated data from an Information Structure is used. SAP ships a few dozen of these, and customers can easily add their own, which will be automatically updated by SAP.

SAP offers two BAPIs, available on the OpenInfoWarehouse object type in the Business Object Repository, to access the Information Structures. This allows you to build your own reporting front-ends (e.g., in a browser) or to extract data for some other purpose.

The first BAPI, OpenInfoWarehouse.GetCatalog, retrieves the metadata for the Information Structures. This includes information about available tables (called Data Sources), columns (called Info Objects), and the relationship between the two. The most important information about the relationship is which Info Objects can be used as parameters or selection criteria for which Data Sources.

The second BAPI, OpenInfoWarehouse.GetData, allows you to execute a query for any of the Data Sources, passing whichever parameters and selection criteria you need. The data itself is returned as a block of long strings which you have to interpret yourself.

If you want more details about these BAPIs (and the building of BAPI-enabled components in general), I

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

recommend that you read my article "Why You Need and How You Build BAPI Components" in the March/April 2002 ssue of the SAP Professional Journal (www.sappro.com). If you want to save some time in developing a reporting solution and happen to use Java for your development, you can send me an email and I will send you an evaluation copy of the "ARAsoft OpenInformationWarehouse Component" that encapsulates access to the aforementioned BAPIs.

Thomas G. Schuessler, www.arasoft.de


This was first published in January 2002

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.