Skip to main content

Managing reporting in Alloy by IBM and SAP 1.0

Girish Padmanabhan (pgirish@in.ibm.com), Principal Software Engineer, IBM
Girish Padmanabhan is a Principal Software Engineer with IBM, India Software Labs, Pune, India. Girish is currently a senior developer in the Alloy Software by IBM and SAP project. Since joining IBM in September 1999, he has worked on various support and development projects including OS2, IBM Workplace, and IBM Lotus. You can reach Girish on pgirish@in.ibm.com.
Amita Vadhavkar (avadhavk@in.ibm.com), Senior Staff Software Engineer, IBM
Amita A. Vadhavkar is a Senior Staff Software Engineer with IBM India Software Labs, Pune, India.. She currently works on the project Alloy Software by IBM and SAP. Since she joined IBM in 2003, she has worked on various technologies in product development, such as WebSphere, Service-Oriented Architecture, and Lotus. You can reach Amita at avadhavk@in.ibm.com

Summary:  Alloy™ by IBM® and SAP® 1.0 combines the strengths of IBM Lotus Notes® and IBM Lotus® Domino® and SAP enterprise resource planning (ERP) modules, providing access to the SAP workflows and data directly from Lotus Notes. This article provides a high-level architectural overview of Alloy, in-depth explanations of all the reporting management features supported in release 1.0, and troubleshooting tips for some common issues.

Date:  04 Aug 2009
Level:  Intermediate
Activity:  4653 views

Editor's note: Know a lot about this topic? Want to share your expertise? Participate in the IBM Lotus software wiki program today.

Alloy by IBM and SAP wiki

Introduction

Reports and analytics information is the heart of any business; without adequate data, organizations cannot make accurate decisions. Recognizing this fact, SAP has provided extensive support for numerous categorized reports in multiple business domains. Alloy by IBM and SAP (hereafter called "Alloy") is the first collaboration product from IBM and SAP and, from its first release, has supported reporting management (REMA) modules, to give a seamless user experience. This product enables Lotus Notes users to access and act on various SAP processes and data from their Lotus Notes user interface, without their even being aware of SAP systems in their organization.


Alloy high-level architecture

Figure 1 shows a schematic of the Alloy architecture, the backbone of which is Web services communication between trusted parties, namely IBM and SAP. Both asynchronous and synchronous communication is supported between IBM and SAP, whose workflows are enabled in Lotus Notes through this architecture. IBM invokes an SAP Web service for requesting SAP metadata and SAP workflow entities.


Figure 1. Alloy high-level architecture
Alloy high-level architecture

For some operations, SAP sends synchronous responses. For others, it invokes an IBM Web service for sending asynchronous responses to Lotus Domino, which processes the SAP responses and directs them to the required users as emails or other Lotus Notes documents. The documents sent to the Lotus Notes client can have some associated contextual information, which is made available in the sidebar. Also, some actions can be performed by users from the sidebar content.

The Web service calls from IBM to SAP are termed outbound, and the Web service calls from SAP to IBM are termed inbound.

In the Alloy 1.0 release, three scenarios that are ready to use without modification, Leave, Trip, and Reporting, are supported, and extensibility is provided through support of workflow decision management. To support all these scenarios, SAP metadata must be present on Lotus Domino and on the Lotus Notes client side. This metadata is obtained from and synchronized with SAP regularly. This synchronization can be scheduled or can be based on administrator or user demand.

Application roles

To control who can perform which actions for the different scenarios, roles are configured in Alloy. SAP manages the roles, and Alloy reads the roles to control the scenario-specific menu options exposed to the users.

The following user roles are provided in Alloy 1.0:

  • Manager roles:
    • Workflow decision management
    • Leave management
    • Travel management
  • Employee roles:
    • Report management (only one role for reporting, with no distinction between manager and employee)
    • Leave management
    • Travel management

Metadata handling

Alloy reads the SAP configuration and provides it to users in the form of, for example, leave types or report templates:

  • SAP pushes metadata through Web services to Lotus Domino.
  • The client updates automatically, pulling metadata from Lotus Domino.
  • Application logic is driven from SAP by customization of the metadata for different roles.
  • The sidebar elements are stored in the metadata repository.

Refer to the Alloy Information Center topic, Frequently asked questions, for details about the different options available for the supported workflows.

http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=/com.ibm.help.atlantic.user.doc/atl_user_faq_r.html

Managing reporting

The REMA module supported in Alloy provides reporting capabilities for both enterprise resource planning (ERP) and business intelligence (BI) reports. ERP reports come from the SAP ERP backend system, while BI reports come from the SAP BI back-end system.

Reports are technical objects in the SAP back-end system that generate the necessary information as output in a well-formatted manner. Every report customized for users on the back end has a report template associated with it. This report template is sent to the user as explained later in the "Report templates catalog" section. Users can choose to personalize the query options, scheduling options in a copy of the report template and saving it as a personalized report template on the Lotus Domino side. Users can also run the report template to get the report delivered to their inboxes.

Assumptions

Note that we make the following assumptions:

  • The Alloy component has been installed on the Lotus Notes client and Lotus Domino server.
  • The Alloy component has been installed on the SAP side.
  • All the necessary Lotus Domino- and SAP-side configurations are completed, such as the following:
    • SAP has the necessary content group for Alloy reporting users.
    • The user has the necessary Alloy-specific role on Lotus Domino.
    • The SAP report templates are configured in the SAP back end for this role.

Refer to the Alloy by IBM and SAP Administration Guide for installation and configuration details.

Features

Now let's discuss the details of the various features provided in reporting management that are supported in Alloy version 1.0. These features include the fetching of report templates (report catalog) from the SAP back end, personalization of these report templates, running the templates to get reports, and sharing the report templates or reports with other reporting users.

Report templates catalog

The report templates catalog contains master and personalized report templates. Master report templates are configured by an administrator and made available to users in the report catalog. Personalized report templates are those that users have created by modifying the properties of existing report templates (either master or personalized templates). Also, there can be personalized templates that others have created and shared with other users.

Figure 2 shows report templates under multiple SAP-defined categories such as Reports from SAP ERP Backend System and SAP Pre-Delivered Reports. The Updated By column easily distinguishes between master templates (created or updated by SAP administrator) and personalized templates (updated by Alloy reporting user).


Figure 2. Report templates catalog in user’s Lotus Notes client
Report templates catalog in user’s Lotus Notes client

Report templates synchronization

The Report templates catalog is available locally to the user and on the Alloy server. Both the local and server-based catalogs are kept in sync by a background job, the schedule of which is configured by the Alloy administrator. If you are a first-time Alloy user, the local report templates catalog is freshly fetched from SAP to the Alloy server, and from there to your local client. Also, when you customize an existing or a new template, or when you receive a shared customized template, this job ensures that updates from the server are sent to the client as quickly as possible.

In case a create/update/delete request fails, all the changes that you have made are rolled back consistently, so that both the client and server copies of the templates retain the old parameter settings, scheduling options, and any other edits.

Create/update/delete

In Figure 2, we also saw the possible actions on report templates. The run option is explained later in the "Running reports" section. Figure 3 shows the possible edits that you can perform on the report template using the View Properties option. Note that the master report template cannot be changed (Save) or deleted (Delete); instead, it can be copied into a personalized template and then changed.

A personalized template can be changed (Save), copied (Save as New), or deleted (Delete). Fields such as Report Name, Short Description, Delivery Format, Notes (for any comments), Schedule, and Parameters are editable.


Figure 3. View/edit report template
View/edit report template

In addition, context-sensitive help is available in the form of lists, for example, the list of available airlines in the Parameters field in figure 3. Some parameters are mandatory, and some are optional. Sometimes default values are preconfigured in mandatory parameters.

If you select a schedule (Daily, Weekly, and so on), the report execution is scheduled on the SAP side, and reports are delivered to your inbox according to the schedule. If you want to delete a personalized template, you can do so from the catalog (see figure 2) or from the opened report template (see figure 3).

When you select Save/Save As New after doing the edits, you are prompted with the "Run the report after saving" window option (see figure 4). If you click the check box, a report based on the newly customized template is run and delivered to your Inbox.


Figure 4. Run the report after saving
Run the report after saving

Based on – link to master template

All personalized templates are based on a master template. The Based on field highlighted in figure 5 provides a link from the personalized template to its master template.


Figure 5. Personalized template is Based On (which master template?)
Personalized template is Based On (which master template?)

Clear Catalog action

The Alloy administrator can clear the catalog manually from the Alloy server (see figure 6); however, doing so deletes users' personalized report templates and thus should be done with caution. This action can be requested, for example, when a user’s personalized templates have become unusable.


Figure 6. Clear Catalog action in administrator's user interface
Clear Catalog action in administrator's  user interface

Running reports

You can run report templates for a specific purpose, to get a one-time report; you also can use a schedule, to get them periodically. Data in the report can be embedded or can display as an attachment, based on the report types. Different delivery formats are supported by the various SAP back-end systems for the different report types, as shown in table 1, where ERP = SAP ERP back-end system, BW = SAP BI back-end system, and ALV = ABAP List Viewer (function modules) that can be used to form reports.


Table 1. Report types and delivery formats
Source systemReport typeDelivery formatDelivery details
ERPALVEmbedded in emailThe report data is available in HTML format in the body of the presentation data. The data is also made available as part of the bound item data in Microsoft® Office 2003 XML format. This data can be used to open the report in any spreadsheet application that supports Office 2003 XML format.

No attachments are sent in this case.
ERPSAP queryEmbedded in emailSame as ERP ALV
ERPNon-ALVEmbedded in emailThe report data is delivered only as an attachment. There is no report data in the body of the presentation data or in the bound item data. It is not possible to open the data in spreadsheet applications.

The attachment contains the report data in text format in a file with the file name extension DOC.
BWSAP queryEmbedded in emailThe report delivery is made available as part of:
  • The bound item data
  • The presentation data
The report data is made available as HTML in the body of the presentation data. Any links or images in the report data are not available in the HTML. The bound item data contains the report data in XHTML format. Spreadsheet applications that support XHTML format can use this format to open the report data.

No attachments are sent in this case.
BWWeb templateEmbedded in emailSame as ERP ALV
BWSAP queryZIPThe report data is delivered as part of:

  • The body of the presentation data
  • The attachments
The report data is available as part of the body of the presentation data in HTML format. Any links or images as part of the report data are not made available as part of the body of the presentation data.

The attachment contains a ZIP file, with the report output therein as an HTML file.
BWWeb templateZIPSame as BW SAP query
BWSAP queryMHTMLThe report data is delivered as part of:

  • Attachment data only
The report data is not made available as part of the body of the presentation data. The report data is available as an attachment with the MHT file name extension. It is not possible to open the data in a spreadsheet application.
BWWeb templateMHTML Same as BW SAP query
BW (Only for BW 7.0 systems)SAP queryPDFThe report data is delivered as part of:

  • Attachment data only
The report data is not made available as part of the body of the presentation data; rather, it is available only as an attachment with a PDF file name extension.
BWWorkbook Microsoft Excel workbookThe report data is delivered as part of:

  • Attachment data only
The report data is not made available as part of the body of the presentation data; rather, it is available only as an attachment with the XLS file name extension. The attachment is a Microsoft Excel 97-2003 Workbook file.
BWWeb templateLINKThe report data is delivered as part of:

  • Presentation data only
The report data is only a link to a portal generated from the SAP BI system, and this link is made available as part of the body of the presentation data.

No attachments or bound item data are sent.
BWSAP queryLINKSame as BW Web template

Actions

During installation, your mail file is merged with Alloy design elements, and thus different report-specific actions are available for the reports using your inbox. Also, there are special views under Delivered Reports to help you locate reports separately. Let's go over the different actions you can perform:

Run. The report template can be run to get a one-time report delivered to your Inbox (see figure 7).


Figure 7. Run report template
Run report template

Figure 8 shows an example report in the inbox with the available actions circled, that is, Edit, Run Again, Open in Spreadsheet, Share, and View Properties.


Figure 8. Report in Inbox (available actions and editable Report Title)
Report in Inbox (available actions and editable Report Title)

Run Again. If you want to run the report with the exact same parameters at a later time, click the Run Again button from the report. This step can be a handy alternative to running the report from the report template and specifying the same parameters.

Share. Alloy lets you share report data or report templates with other users within the organization, with the help of roles and access validation checks performed by SAP. A report or template can be shared with multiple users who have the Reporting role assigned to them and who have access to the specified report data or template based on SAP-configured validation rules. For this reason, the normal mail Forward option is disabled for reports, and instead the Share option is provided.

This action is routed through SAP, and valid users receive the shared report or template, while the sender receives a notification in the event that sharing is not allowed for an intended user.

There are three options available, determined in the SAP back end by means of the report template configuration:

  • Share report data only
  • Share report template only
  • Share report data and template

Master templates can never be shared. Also, for some master templates, the SAP configuration can dictate that any personalized templates derived from these master templates can never be shared (as is the case with report data). Alloy always checks this configuration and, based on the configuration, exposes the possible sharing options to the user.

You can specify the sharing option, the list of recipients, and any optional comments while sharing (see figure 9).


Figure 9. Sharing options
Sharing options

Open in Spreadsheet. Often you need to sort and organize the report data using a spreadsheet. For ERP reports, the Open in Spreadsheet action is integrated into the report; for BI and BW reports, Excel data is added as an XLS attachment. When you select the Open in Spreadsheet action for ERP reports, the report data is opened in:

  • IBM Lotus Symphony™, if Lotus Symphony is installed on your system
  • The Excel application, if Excel is installed
  • Otherwise, a CSV file is created, and data is opened in the supported application.

See figure 10.


Figure 10. Opening report in spreadsheet
Opening report in spreadsheet

View Properties. Selecting the View Properties action takes you to the report template corresponding to the opened report.

Side-shelf integration

In today’s world of collaboration and integration, it is extremely important to provide users with all related contextual information. In the case of reporting, it could mean providing reports related to the opened report or providing a complete list of delivered reports. In the case of leave and travel, related reports can also be relevant, as can frequently used menu options such as Create New Leave/Trip/Report.

Alloy offers such a side shelf (see figure 11). A sidebar plug-in is available to render supporting data for a business object, and a widget catalog is used to allow easy provisioning of the sidebar plug-in.


Figure 11. Side-shelf integration
Side-shelf integration

Configuring SAP for reporting management

Report templates shown within an Alloy user’s report catalog in the Lotus Notes client are configured in the SAP back end. You can view and change this configuration using the SAP Log-on desktop application, logging in with a valid SAP ID and password (see figure 12).


Figure 12. SAP Log-on window
SAP Log-on window

You can enter a transaction code in the editable field for the transaction that you want (see figure 13). For instance, if the transaction code relevant for the report template catalog configuration is simgh, then to start a new transaction, you enter /nsimgh.


Figure 13. Initial user menu
Initial user menu

After you enter this text, the Information Worker Implementation Guide (IMG) displays (see figure 14).


Figure 14. Edit IMG Structure menu
Edit IMG Structure menu

If you select the row for Information Worker Implementation Guide and click the Display IMG Structure button (shown in figure 14), the IMG sections are displayed as shown in figure 15. These sections are General Settings, Workflow Pattern Customization, Report Administration, Application Flow Settings, and Check Tool.


Figure 15. Display IMG menu
Display IMG menu

Expand the Report Administration section, and select Create Report Catalogs from the list (see figure 16).


Figure 16. Expanded list for Report Administration
Expanded list for Report Administration

Now, you can see the report catalogs configured in the SAP back end listed as shown in figure 17, which shows the categories of HCM, REBI, RERP, SAP, TEST, TRVL, and WB.


Figure 17. SAP GUI showing report catalog categories
SAP GUI showing report catalog categories

Report templates can be configured in report catalogs, and access can be controlled at the report-template level. The example shown in figure 18 shows that the report template is available only for SAP users who are part of the REMA.USERS role. From the same transaction, you can configure the different delivery types for a template, the system timepoints, data change events, and related reports for a particular template, as shown in the left navigation pane (refer to the SAP documentation for more information).


Figure 18. Access control using Role management
Access control using Role management

Troubleshooting

This section covers some common issues and shows how to resolve them.

No master report templates are being created in the report catalog

Resolution: Determine whether any exception conditions, especially connectivity exceptions, have been reported in the Lotus Notes client through Help - Support - View Log or View Trace. If there are such exceptions, check the local notes.ini for the entry $NDERPMDWS_URL and correct it, if needed.

If there are no errors in the local client log or trace, the Lotus Domino administrator can check whether the user has the required Reporting User role assigned and whether any connectivity exceptions have been logged in the Lotus Domino console Log.nsf. The SAP admiistrator can check if there are report templates assigned to this role.

Personalized templates are not usable and need to be removed

Resolution: From the Lotus Domino administrator UI, perform a Clear Catalog action (refer to figure 6), to remove all the master and personalized templates from the Alloy-server-based report catalog. Then, when the Lotus Notes client is restarted, it performs a call to fetch the latest report templates from SAP; the latest Master Templates come down to the Alloy server and to the local report catalog.

The user loses all personalized report templates from the report catalog and receives the latest master report templates available on SAP.

The report from the catalog menu item is not available in the Lotus Notes mail Create menu

Resolution: The REMAUser role might be missing; check the roles assigned to this user in NDERPWS.

For some report templates, the Run action is not available in the UI

Resolution: This situation occurs because at the SAP back end, the report template has been configured to disallow unplanned runs. It might, however, be possible to set a scheduled run. To do this configuration, open the template in Edit mode and set the scheduling options as required.

For some report catalog templates, the Delete action is available for some users, but not for others

See figure 19.


Figure 19. Delete action
Delete action

Resolution: This problem occurs because the Delete action is available to users for personalized templates, as these are created and maintained by the user. The action is not, however, available to the user for master templates, which are created and maintained by the SAP administrator.

The Share action from reports is seen differently for different reports

Specifically, these situations might occur:

  • For some reports, the Share action is not available
  • For some other reports, it provides the report data-only option
  • For some other reports, it provides the report properties-only option
  • For some other reports, it provides the following options:
    • Report data only
    • Report properties only
    • Both report data and properties

Why are there such different options available for different reports?

Resolution: These options are configured in the report template on the SAP back end, and the choices given to the user for the Share action reflect this configuration.

Refer to the Alloy by IBM and SAP User Guide and the wiki article, "Basic troubleshooting guidelines for Alloy software by IBM and SAP 1.0" for more FAQs and troubleshooting tips.


Conclusion

Reports and analytics information is an essential business tool. Alloy by IBM and SAP provides the configuration for various categorized reports and also supports extensive complex queries by use of customized report template parameters. Using these features, Lotus Notes users can seamlessly analyze pertinent data and make accurate business decisions.


Resources

About the authors

Girish Padmanabhan is a Principal Software Engineer with IBM, India Software Labs, Pune, India. Girish is currently a senior developer in the Alloy Software by IBM and SAP project. Since joining IBM in September 1999, he has worked on various support and development projects including OS2, IBM Workplace, and IBM Lotus. You can reach Girish on pgirish@in.ibm.com.

Amita A. Vadhavkar is a Senior Staff Software Engineer with IBM India Software Labs, Pune, India.. She currently works on the project Alloy Software by IBM and SAP. Since she joined IBM in 2003, she has worked on various technologies in product development, such as WebSphere, Service-Oriented Architecture, and Lotus. You can reach Amita at avadhavk@in.ibm.com

Comments (Undergoing maintenance)



Trademarks  |  My developerWorks terms and conditions

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Lotus
ArticleID=418014
ArticleTitle=Managing reporting in Alloy by IBM and SAP 1.0
publish-date=08042009
author1-email=pgirish@in.ibm.com
author1-email-cc=
author2-email=avadhavk@in.ibm.com
author2-email-cc=

My developerWorks community

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Special offers