Reporting Agent
Reporting Agent
Reporting Agent
Definition
The Reporting Agent is a tool used to schedule reporting functions in the background.
The following functions are available:
Evaluating exceptions
Printing queries
Pre-calculating Web templates
Pre-calculating characteristic variables of type pre-calculated value sets.
Pre-calculation of queries for Crystal reports
Managing bookmarks
Use
1. You make settings for the specified reporting functions.
2. You assign the individual settings to scheduling packages for background processing.
3. You schedule scheduling packages as a job or within a process chain.
1. You are in the Reporting Agent function area of the Administrator Workbench. Choose
Exceptions in the navigation frame of the Administrator Workbench.
2. Navigate to the required query in the left-hand Reporting Agent Scheduler tree.
3. You have the following options to create a new setting:
o Using the context menu, choose New Package.
o Select Create New Setting.
The "New Reporting Agent Setting" screen then appears.
To copy a setting, choose Maintain using the context menu for the setting. The Reporting Agent Setting
screen then appears. Choose.Copy The "New Reporting Agent Setting" screen then appears.
4. Enter a technical name and a description.
The following information can be found in the General tab page:
o The settings functional area is Exception Reporting & Alerting.
o Under the Query group header, query information is shown for which you can make a
setting (description, technical name, InfoProvider).
o Under the group header Last Change, the system shows- the first time after saving for the
first time- the last person to have changed the setting and the time it was changed.
o Under the group header Setting Used in Packages, the system displays information for
packages where the setting is used, and their scheduling. However, this display is only possible if you have
defined the setting and make assignments to one or more scheduling packages.
5. Choose the Tab Page: Parameter(s) to set parameters.
a. From Exceptions node in the Available Objects tree structure, choose the exception you
want to process in the background, and use Drag-&-Drop to assign it to the Exceptions node in the Selected
Objects tree structure.
b. Choose the interval or threshold value for this exception that you want to check in a
background run and use Drag-&-Drop to drag it under the selected exception.
c. Assign a follow-up action to the intervals or the threshold value you have chosen. From
the Follow Up Actions node, use Drag & Drop to move the follow-up action you want under the
corresponding interval.
By double clicking on the assigned follow-up action, the Properties for Follow Up Actions screen area
appears. Change the settings that are available for the selected follow-up action type.
You can find more information under:
Editing Follow-Up Actions: Send Message
Editing Follow-Up Actions: Alert Monitor Entry
Editing Follow-Up Actions: Export
d. From the Characteristics node in the Available Objects tree structure, choose the
characteristic you want to look at in the background, and use Drag-&-Drop to assign it to the Drill
Down Characteristics node in the Selected Objects tree structure.
Note that the way the characteristics are arranged is important here, since an exception always occurs in a
particular cell context.
6. Choose Activate.
Result
Once you have defined the Reporting Agent settings, you have to assign them to a scheduling package for
the background run.
For more information see Processing a Scheduling Package.
Selected Objects The objects you select for background processing are
collected here.
If a message already has attachments, you can display these by choosing Attachments in the Properties
screen area on the Exception Reporting tabpage. You get to the Display Document screen. The attachments
are listed on the Document Contents tabpage. On the Attachments tabpage, you can edit the attachments. To
get to the change view, choose Change.
5. Choose the Attachments tabpage.
On the Attachments tabpage, the attachments are listed with the following
properties:
Type Description Size Type
Role
Choose Roles. You get to the Select Roles
dialog box.
Select and transfer the roles that you want to use to
Individual recipient
Choose Recipient List. You reach the Send
with Note screen.
In the upper screen area, enter a title and note for the
recipient.
In the lower screen area, on the Recipients tabpage,
enter the message recipient. In most cases, the
system adds the type of recipient. The following
recipient types are of interest:
Internet address
SAP logon name
When using the SAP Business Workplace, additional
recipient types are available (see Address Type).
As a user of the SAP Business Workplace, you have
additional settings options for Sending:
You can choose to send the message in one of the
following ways:
Express Mail
Send as a Copy
Expand Entry.
For more information see Editing a Distribution List.
When you send a message to an SAP Business Workplace user, it goes to the SAP Office inbox. For more
information, see SAPconnect.
Otherwise, the message ends up in the mailbox belonging to the respective mail client.
all SAP users Set the indicator for All SAP User The Alert Monitor entry is
displayed for all SAP users.
This text is displayed by default for the alert entry on an individual alert level.
7. In the case where a BW exception arises for different query views in different contexts, you can
process the alert texts independently of the drilldown.
You can find additional information under Defining and Changing Exceptions or Alert Monitor.
Note: During the background run, the Reporting Agent checks a sequence of query views: These views
come from the sequence of selected characteristics, in which the attributes are filtered in sequence for
characteristics 1 through to n-1, and the last characteristic is drilled down.
In the Follow Up Properties screen area, under the Text group header, choose the Enhanced expert mode.
The Change Text for Alert Monitor dialog box appears.
8. In the Query View Selection screen area, double-click on the required characteristic to choose the
special query view. In the lower Alert Text screen area, the selected characteristic is displayed as
"specified".
Note: As well as the characteristic denoted as "specified" here, an additional characteristic can be specified
without it being explicitly mentioned here.
9. Edit the alert text. You have the same text layout options as with the basic editing described above.
10. Choose Next.
Process text for an Alert Monitor entry on an query view level
1. In the Selected Objects tree structure, select Drilldown Characteristics. The Query View Label
screen area is displayed on the right-hand side, together with No Characteristic Specified.
2. In the Query View Label screen area, under the Text group header, choose Edit. The Change Text
for Alert Monitor dialog box appears.
3. Edit the alert text.
4. Choose Next.
5. To process a text for a query view with a specified characteristic, access the Selected Objects tree
structure and, under Drilldown Characteristics, select the specified characteristic. (A specified
characteristic is one that is in the filter). The Query View Label screen area and the specified characteristic
is displayed on the right.
6. In the Query View Label screen area, under the Text group header, choose Edit. The Change Text
for Alert Monitor dialog box appears.
7. Edit the alert text.
8. Choose Next.
Change URL for the Alert Monitor
You can also give your own URL to Alert Monitor entries. This function allows you to create a link from
the Alert Monitor to the query view you are looking at and also to any other resource you choose.
Any URL already specified for the corresponding Alert Monitor entry is displayed in the Follow Up Action
Properties or Query View Label screen area, in the field under the URL group header.
1. In the Query View Label or Follow Up Action Properties screen area, under the URL group header,
choose Edit. The Change URL for Alert Monitor dialog box appears.
2. In the upper screen area, specify the URL. You can use to parameterize the URL with text
variables.
If you specify a BW query as a resource, you can use the text variables to give the URL filter values.
3. In the Short Text screen area, you can enter a text to be displayed as a quick-info in the Alert
Monitor.
URL: www.sapportals.com
Short Text: SAP Portals Homepage
4. Choose Next.
Select the threshold value for the exception for which you want to create a text by double-clicking on this
threshold value in the Selected Objects area of the screen.
For example, enter the text "Billing Quantity Under 500 for Sales Area
&TEXTVARIABLE01& and Customer &TEXTVARIABLE02&" in the screen area Follow-Up Action
Properties for the Alert Monitor Entry under the threshold value 0-500. The variables are filled for the
runtime.
For example, enter the text "Billing Quantity OK" in the screen area Follow-Up
Action Properties for the Alert Monitor Entry under the threshold value >10000.
Alert text for query view, if no characteristic is specified:
Choose Drilldown Characteristics by double-clicking on it in the Selected Objects screen area. For
example, enter the text "Alerts for All Sales Areas" in the screen area Query View Name for No
Characteristic Specified.
Alert text for query view, if the characteristic Sales Area is specified:
Choose the characteristic Sales Area by double-clicking on it in the Selected Objects screen area. For
example, enter the text "Alerts for Sales Area &0DISTR_CHAN&" in the screen area Query View Name
for Sales Area Specified.
You can find additional information under Processing Follow-Up Actions: Alert Monitor Entry in the
following sections:
Editing texts for an alert monitor entry on the level of individual alerts
(exception cells)
Editing texts for an alert monitor entry on the level of a query view
Changing a URL for the alert monitor
Under Filter for Business Add-In, you can select an InfoProvider. Depending on the InfoProvider from the
BW system chosen as a filter, the Business Add-In is implemented (see BAdI: Export of BW Alerts
(RSRA_ALERT) and Parameter FLT_VAL). Input help is available.
By default, the InfoProvider is standard for the query sought in the background. With the special character
"*", you can specify a generic filter value that can be set according to the entries in the database using
different values.
Result
Once you have defined the Reporting Agent settings, you have to assign them to a scheduling package for
the background run. For more information see Processing the Scheduling Package.
To print, key figures related to the query must be in the structures. Change the Query definition
appropriately if you want to print a query that uses a key figure as a filter.
You can only schedule queries with entered variables for background printing if the required variable
entry/entries have been saved as query variants
Procedure
1. You are in the Reporting Agent function area of the Administrator Workbench. Choose Print in
Background in the navigation window of the Administrator Workbench.
2. Navigate to the required query in the left-hand Reporting Agent Scheduler tree.
3. You have the following options to create a new setting:
o Using the context menu, choose New Package.
o Select Create New Setting.
The "New Reporting Agent Setting" screen then appears.
4. Enter a technical name and a description.
The following information can be found in the General tab page:
o The functional area for the setting is Print.
o Under the Query group header, query information is shown for which you can make a
setting (description, technical name, InfoProvider).
o Under the group header Last Change, the system shows- the first time after saving for the
first time- the last person to have changed the setting and the time it was changed.
o Under the group header Setting Used in Packages, the system displays information for
packages where the setting is used, and their scheduling. However, this display is only possible if you have
defined the setting and make assignments to one or more scheduling packages.
5. Choose the Print Settings tabstrip. Define the print settings that you want to make. You can find
additional information under Tab Page: Print Settings.
6. Choose the Print Layout tab strip. Decide how you want to set the following print areas:
o Cover sheet
o Page header
o Table header
o Table
o Page footer
o Last page
You can find additional information under Defining the Print Layout.
7. Choose Activate.
Result
Once you have defined the Reporting Agent settings, you have to assign them to a scheduling package for
the background run.
For more information see Processing a Scheduling Package.