You are on page 1of 35

Using the SAP Query Subscenario

for Continuous Monitoring in


Process Control 10.0

Applies to:
SAP Process Control 10.0

Summary
This User Guide provides information about the implementation requirements and configuration instructions
for using the SAP Query subscenario for Continuous Monitoring.

Team:

Governance, Risk, and Compliance

Created on:

24 Oct 2012

Version 1.2

SAP COMMUNITY NETWORK


2012 SAP LABS

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

Document History
Document Version

Description

1.00

Initial release

1.10

Document standardization

1.20

Added notes emphasizing the significance of the valid from date of data
sources and business rules

SAP COMMUNITY NETWORK


2012 SAP LABS

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

Typographic Conventions

Icons

Type Style

Description

Icon

Example Text

Words or characters quoted


from the screen. These
include field names, screen
titles, pushbuttons labels,
menu names, menu paths,
and menu options.

Description
Caution
Note or Important
Example
Recommendation or Tip

Cross-references to other
documentation
Example text

Emphasized words or
phrases in body text, graphic
titles, and table titles

Example text

File and directory names and


their paths, messages,
names of variables and
parameters, source text, and
names of installation,
upgrade and database tools.

Example text

User entry texts. These are


words or characters that you
enter in the system exactly as
they appear in the
documentation.

<Example
text>

Variable user entry. Angle


brackets indicate that you
replace these words and
characters with appropriate
entries to make entries in the
system.

EXAMPLE TEXT

Keys on the keyboard, for


example, F2 or ENTER.

SAP COMMUNITY NETWORK


2012 SAP LABS

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

Table of Contents
1.

Business Scenario............................................................................................................... 1

2.

Background Information ..................................................................................................... 1

3.

Prerequisites ........................................................................................................................ 1

4.

Step-by-Step Procedure ...................................................................................................... 2

5.

4.1

Preparing A SAP Query ................................................................................................ 2

4.2

IMG Configuration......................................................................................................... 2

4.3

Creating a Data Source and Business Rule in Process Control .................................. 2


4.3.1

Creating the Data Source ................................................................................ 2

4.3.2

Creating a Business Rule ................................................................................ 8

4.3.3

Business Rule Assignment ............................................................................ 17

4.4

Scheduling a Job ........................................................................................................ 21

4.5

Reviewing the Job Log ............................................................................................... 26

4.6

Reviewing the Job Result ........................................................................................... 28

Copyright ............................................................................................................................ 31

SAP COMMUNITY NETWORK


2012 SAP LABS

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

Using the SAP Query Subscenario for Continuous Monitoring

1.

Business Scenario

SAP Query is an Automated Control data source that can be used to retrieve data that is used in your
business enterprise. The use of the SAP Query data source leverages the SAP NetWeaver query to
retrieve data without the installation of plug-ins. The queries can be both delivered and defined by
default, or modified to address your business objectives.

2.

Background Information

SAP enables you to create well-defined queries for many SAP Governance, Risk, and Compliance
(GRC) applications. When you create a data source with SAP Query, you do not need to install any
additional Continuous Monitoring plug-ins. The data source queries can be executed remotely on
NetWeaver systems or locally on the Process Control server.

3.

Prerequisites

Before you can create the SAP Query as a data source, you need to verify that the query exists in the
target SAP system, and that the Remote Function Call (RFC) user is authorized to access the User
group.
The target SAP system can be any system which you want to monitor. Your target connectors and
controls are defined in the IMG configuration.
For more information about connectors see the Creating Connector Guide at https://websmp101.sapag.de/~form/sapnet?_SHORTKEY=01100035870000735637&_SCENARIO=01100035870000000202
.

October 2012

Using the SAP Query Subscenario for Continuous Monitoring

4.

Step-by-Step Procedure

The following sections describe how to create a SAP Query for Continuous Monitoring.

4.1

Preparing A SAP Query

You can use SAP Query transactions (SQ01, SQ02, and SQ03) to create data sources. These data
sources can query multiple tables to retrieve the information you want to analyze.
You can select the fields which are in the retrieved data as deficiency fields. The deficiency analysis is
based on the deficiency field data.
For more information see the SAP Query documentation at
http://help.sap.com/saphelp_nw70ehp1core/helpdata/en/f6/c39138e4a0341fe10000009b38f8cf/frames
et.htm.

4.2

IMG Configuration

For more information about configuring connectors see the Creating Connector Guide at
http://help.sap.com/pc.

4.3

Creating Data Sources and Business Rules in


Process Control

The following sections describe how to create data sources and business rules in Process Control
(PC).

4.3.1

Creating a Data Source

This section describes how to create a data source.


1. Log in to the PC portal and select the Rule Setup work center.

October 2012

Using the SAP Query Subscenario for Continuous Monitoring

2. Choose Continuous Monitoring > Data Sources.

3. Choose Create to create the data source.

October 2012

Using the SAP Query Subscenario for Continuous Monitoring

4. On the General tab, enter the following required information to describe the data source.

Data Source

Description

Valid From
NOTE: Ensure that the Valid From date is correct. We recommend that you set it
as the valid from date of the master data.

Valid To

Status

The data source status can be In Review or New; the default value is New.

October 2012

Using the SAP Query Subscenario for Continuous Monitoring

5. Using Query Lookup, enter the following required Object Field information from the Object
Field tab:

Subscenario Select SAP Query.

Connection Type Default is SAP System and cannot be changed.

Main Connector The main connector should be the connector where the query
resides; for example, R71 for Query Lookup.

October 2012

Using the SAP Query Subscenario for Continuous Monitoring

6. Use the Lookup display to search for a specific query name.


NOTE: The query must be created for the selected connector and assigned to a user
group. For detailed information, see the SAP Query standard documentation at
https://service.sap.com.

7. Verify that the correct information for your data source is displayed on the Object Field tab.

October 2012

Using the SAP Query Subscenario for Continuous Monitoring

8. Add an additional data source target connector, if necessary, on the Data Source screen.
9. Choose Save to save the data source.

10. On the Data Source General tab, set the status to Active to confirm usage by the business
rule.
11. Choose Save.

October 2012

Using the SAP Query Subscenario for Continuous Monitoring

4.3.2

Creating a Business Rule

This section describes how to create a business rule.


1. Navigate to Rule Setup > Business Rules.

2. Choose Create to initiate creation of the business rule.

October 2012

Using the SAP Query Subscenario for Continuous Monitoring

3. Choose Search Data Source to search for and then select a data source.
You can eliminate a lengthy search return result by entering specific information in the search
criteria screen.
For example, enter SAP_QUERY* to confine your search to data sources with SAP_QUERY
in the title.
4. Select a query, and then choose OK.

4. Choose Start to initiate business rule creation.

October 2012

Using the SAP Query Subscenario for Continuous Monitoring

5. Enter the following required information on the Business Rule screen.

Name

Description

Category

Status

Valid from
Ensure that the Valid From date is correct. We recommend that you set it as the
valid from date of the master data.

Valid to
6. Choose Next or the Filter Criteria tab after data entry is complete.

7. Select filter fields by choosing Select/Unselect.

October 2012

10

Using the SAP Query Subscenario for Continuous Monitoring

8. Select the filter fields that pertain to your business rule, and then choose OK after you have
finished your filter field selections.

October 2012

11

Using the SAP Query Subscenario for Continuous Monitoring

9. Select Filter Criteria on the Business Rule screen, then highlight the field to add the following
required information:

Sign

Option

Low

High

10. Choose Next to complete Filter Criteria selection.

October 2012

12

Using the SAP Query Subscenario for Continuous Monitoring

11. To define the deficiency field, select the field on the Field Description list.

12. Select or deselect the deficiency fields from the field list.

13. Choose OK after you have finished selecting your deficiency criteria.

October 2012

13

Using the SAP Query Subscenario for Continuous Monitoring

14. Select Deficiency Criteria to enter currency key information for the field value in the currency
column when the selected Deficiency field is an amount field.

15. Conditions and Calculations (optional)


This tab enables you to define additional analyses for the deficiency fields.
16. On the Output Format tab, select the field descriptor to change the output sequence (optional).

October 2012

14

Using the SAP Query Subscenario for Continuous Monitoring

17. Use the Technical Settings tab to select the maximum number of rows to retrieve by entering
the number in the Max. No. or Records to Analyze field.

18. Use the Ad hoc Query tab to test the business rule without scheduling a job.
19. Choose Data Collection to retrieve data.

October 2012

15

Using the SAP Query Subscenario for Continuous Monitoring

20. Using the Ad hoc Query tab, click Apply Rule to apply the business rule.

21. Open the business rule and change the status to Active for processing by the Business Rule
Assignment.

October 2012

16

Using the SAP Query Subscenario for Continuous Monitoring

4.3.3

Business Rule Assignment

This section describes how to assign the business rule to a control.


1. Select the Rule Setup work center and choose Continuous Monitoring > Business Rule
Assignment.

October 2012

17

Using the SAP Query Subscenario for Continuous Monitoring

2. On the Business Rule Assignment screen, select a control from the list of displayed controls.
3. Choose Add to add the business rule to the control.

October 2012

18

Using the SAP Query Subscenario for Continuous Monitoring

4. On the Select Business Rules screen, choose Search to search for, and then select a
business rule.
You can eliminate a lengthy search return result by entering specific information in the search
criteria screen.
For example, enter SAP_QUERY* to confine your search to business rules with SAP_QUERY
in the title.

October 2012

19

Using the SAP Query Subscenario for Continuous Monitoring

5. Use the Select Frequency screen to apply the listed frequency for your business rule.
6. Choose OK to save.

7. Review your selection for the Business Rule Assignment, and then choose Save.

October 2012

20

Using the SAP Query Subscenario for Continuous Monitoring

4.4

Scheduling a Job

This section describes how to schedule a job.


1. Navigate to Rule Setup > Scheduling > Automated Monitoring.

October 2012

21

Using the SAP Query Subscenario for Continuous Monitoring

2. Choose Create Job.


The Automated Monitoring screen appears.

3.
4.
5.
6.

Enter the Timeframe, Year, and Job Type on the Continuous Monitoring Scheduler screen.
Select Automated Monitoring Job on the Job Type menu.
Choose Start.
Choose Close without saving your information and exiting the screen.

October 2012

22

Using the SAP Query Subscenario for Continuous Monitoring

7. Select Header on the Continuous Monitoring Scheduler screen, and then enter the following
required information:
Job Name
Execution Type
Frequency
Test Period From
Test Period To

October 2012

23

Using the SAP Query Subscenario for Continuous Monitoring

8. Select Share Regulation, and then select the Regulation value from the dropdown menu
9. Select whether the information should be shared.

10. Choose Select Controls to search controls using the following search criteria:

Organization

Process

Subprocess

Control

Business Rule

October 2012

24

Using the SAP Query Subscenario for Continuous Monitoring

7. Select the control for the job you want to execute.

8. Select Control Details on the Continuous Monitoring screen, and then highlight and select the
control.

October 2012

25

Using the SAP Query Subscenario for Continuous Monitoring

9. Choose Save.
The Confirm message is displayed in the Confirmation step on the Continuous Monitoring
Scheduler screen.
10. Choose Close.

4.5

Reviewing the Job Log

This section describes how to review the job log.


1. Enter the Timeframe, Year, and Maximum Rows you would like to review, and then choose
Apply.
2. Select the Job Name which you would like to review, and then choose Open Job.

October 2012

26

Using the SAP Query Subscenario for Continuous Monitoring

2. On the Continuous Monitoring screen, select the Job Step tab, and then choose Job Step Log.

3. Go through the Job Step Log to review the executed jobs log.

October 2012

27

Using the SAP Query Subscenario for Continuous Monitoring

4.6

Reviewing the Job Result

This section describes how to review the job result.


1. To review the execution result, navigate to Rule Setup > Scheduling > Job Monitor.
2. Select the job name with job step, and then choose View Results.

October 2012

28

Using the SAP Query Subscenario for Continuous Monitoring

3. The job result is displayed.

October 2012

29

Using the SAP Query Subscenario for Continuous Monitoring

5. Copyright
2012 SAP AG. All rights reserved.
SAP Library document classification: PUBLIC
No part of this publication may be reproduced or transmitted in any form or for any purpose without the
express permission of SAP AG. The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software
components of other software vendors.
Microsoft, Windows, Excel, Outlook, PowerPoint, Silverlight, and Visual Studio are registered
trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z,
System z10, z10, z/VM, z/OS, OS/390, zEnterprise, PowerVM, Power Architecture, Power Systems,
POWER7, POWER6+, POWER6, POWER, PowerHA, pureScale, PowerPC, BladeCenter, System
Storage, Storwize, XIV, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, AIX,
Intelligent Miner, WebSphere, Tivoli, Informix, and Smarter Planet are trademarks or registered
trademarks of IBM Corporation.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered
trademarks of Adobe Systems Incorporated in the United States and other countries.
Oracle and Java are registered trademarks of Oracle and its affiliates.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are
trademarks or registered trademarks of Citrix Systems, Inc.
HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web
Consortium, Massachusetts Institute of Technology.
Apple, App Store, iBooks, iPad, iPhone, iPhoto, iTunes, Multi-Touch, Objective-C, Retina, Safari, Siri,
and Xcode are trademarks or registered trademarks of Apple Inc.
IOS is a registered trademark of Cisco Systems Inc.
RIM, Blackberry, BBM, BlackBerry Curve, BlackBerry Bold, BlackBerry Pearl, BlackBerry Torch,
BlackBerry Storm, BlackBerry Storm2, BlackBerry PlayBook, and BlackBerry App World are
trademarks or registered trademarks of Research in Motion Limited.
Google App Engine, Google Apps, Google Checkout, Google Data API, Google Maps, Google Mobile
Ads, Google Mobile Updater, Google Mobile, Google Store, Google Sync, Google Updater, Google
Voice, Google Mail, Gmail, YouTube, Dalvik, and Android are trademarks or registered trademarks of
Google Inc.
INTERMEC is a registered trademark of Intermec Technologies Corporation.
Wi-Fi is a registered trademark of Wi-Fi Alliance.
Bluetooth is a registered trademark of Bluetooth SIG Inc.
Motorola is a registered trademark of Motorola Trademark Holdings LLC.
Computop is a registered trademark of Computop Wirtschaftsinformatik GmbH.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer,
StreamWork, SAP HANA, and other SAP products and services mentioned herein as well as their
respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions,
Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as
well as their respective logos are trademarks or registered trademarks of Business Objects Software
Ltd. Business Objects is an SAP company.

Using the SAP Query Subscenario for Continuous Monitoring

Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere, and other Sybase products
and services mentioned herein as well as their respective logos are trademarks or registered
trademarks of Sybase, Inc. Sybase is an SAP company.
Crossgate, m@gic EDDY, B2B 360, and B2B 360 Services are registered trademarks of Crossgate
AC in Germany and other countries. Crossgate is an SAP company.
All other product and service names mentioned are the trademarks of their respective companies.
Data contained in this document serves informational purposes only. National product specifications
may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and
its affiliated companies ("SAP Group") for informational purposes only, without representation or
warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the
materials. The only warranties for SAP Group products and services are those that are set forth in the
express warranty statements accompanying such products and services, if any. Nothing herein should
be construed as constituting an additional warranty.

You might also like