Pc 10 Sapquery
-
Upload
sankar-nayak -
Category
Documents
-
view
214 -
download
0
Transcript of Pc 10 Sapquery
-
8/16/2019 Pc 10 Sapquery
1/35
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2012 SAP LABS
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
Using the SAP Query Subscenario
for Continuous Monitoring in
Process Control 10.0
-
8/16/2019 Pc 10 Sapquery
2/35
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2012 SAP LABS
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
-
8/16/2019 Pc 10 Sapquery
3/35
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2012 SAP LABS
Typographic Conventions
Type Style Description
Example Text Words or characters quoted
from the screen. Theseinclude field names, screen
titles, pushbuttons labels,
menu names, menu paths,
and menu options.
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.
Variable user entry. Anglebrackets 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.
Icons
Icon Description
Caution
Note or Important
Example
Recommendation or Tip
-
8/16/2019 Pc 10 Sapquery
4/35
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2012 SAP LABS
Table of Contents
1. Business Scenario............................................................................................................... 1
2.
Background Information ..................................................................................................... 1
3.
Prerequisites ........................................................................................................................ 1
4.
Step-by-Step Procedure ...................................................................................................... 2
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
5. Copyright ............................................................................................................................ 31
-
8/16/2019 Pc 10 Sapquery
5/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 1
1. Business ScenarioSAP 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 bydefault, or modified to address your business objectives.
2. Background InformationSAP 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. PrerequisitesBefore 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.sap-
ag.de/~form/sapnet?_SHORTKEY=01100035870000735637&_SCENARIO=01100035870000000202
.
https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000735637&_SCENARIO=01100035870000000202https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000735637&_SCENARIO=01100035870000000202https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000735637&_SCENARIO=01100035870000000202https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000735637&_SCENARIO=01100035870000000202https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000735637&_SCENARIO=01100035870000000202
-
8/16/2019 Pc 10 Sapquery
6/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 2
4. Step-by-Step ProcedureThe following sections describe how to create a SAP Query for Continuous Monitoring.
4.1 Preparing A SAP QueryYou 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 ConfigurationFor 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 ControlThe 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.
http://help.sap.com/saphelp_nw70ehp1core/helpdata/en/f6/c39138e4a0341fe10000009b38f8cf/frameset.htmhttp://help.sap.com/saphelp_nw70ehp1core/helpdata/en/f6/c39138e4a0341fe10000009b38f8cf/frameset.htmhttp://help.sap.com/saphelp_nw70ehp1core/helpdata/en/f6/c39138e4a0341fe10000009b38f8cf/frameset.htmhttp://help.sap.com/pchttp://help.sap.com/pchttp://help.sap.com/pchttp://help.sap.com/saphelp_nw70ehp1core/helpdata/en/f6/c39138e4a0341fe10000009b38f8cf/frameset.htmhttp://help.sap.com/saphelp_nw70ehp1core/helpdata/en/f6/c39138e4a0341fe10000009b38f8cf/frameset.htm
-
8/16/2019 Pc 10 Sapquery
7/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 3
2. Choose Continuous Monitoring > Data Sources.
3. Choose Create to create the data source.
-
8/16/2019 Pc 10 Sapquery
8/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 4
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 itas 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.
-
8/16/2019 Pc 10 Sapquery
9/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 5
5. Using Query Lookup, enter the following required Object Field information from the ObjectField 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 queryresides; for example, R71 for Query Lookup.
-
8/16/2019 Pc 10 Sapquery
10/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 6
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 usergroup. For detailed information, see the SAP Query standard documentation athttps://service.sap.com.
7. Verify that the correct information for your data source is displayed on the Object Field tab.
https://service.sap.com/https://service.sap.com/https://service.sap.com/
-
8/16/2019 Pc 10 Sapquery
11/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 7
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.
-
8/16/2019 Pc 10 Sapquery
12/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 8
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.
-
8/16/2019 Pc 10 Sapquery
13/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 9
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.
-
8/16/2019 Pc 10 Sapquery
14/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 10
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 .
-
8/16/2019 Pc 10 Sapquery
15/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 11
8. Select the filter fields that pertain to your business rule, and then choose OK after you havefinished your filter field selections.
-
8/16/2019 Pc 10 Sapquery
16/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 12
9. Select Filter Criteria on the Business Rule screen, then highlight the field to add the followingrequired information:
Sign
Option
Low High
10. Choose Next to complete Filter Criteria selection.
-
8/16/2019 Pc 10 Sapquery
17/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 13
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.
-
8/16/2019 Pc 10 Sapquery
18/35
-
8/16/2019 Pc 10 Sapquery
19/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 15
17. Use the Technical Settings tab to select the maximum number of rows to retrieve by enteringthe 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.
-
8/16/2019 Pc 10 Sapquery
20/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 16
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.
-
8/16/2019 Pc 10 Sapquery
21/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 17
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.
-
8/16/2019 Pc 10 Sapquery
22/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 18
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.
-
8/16/2019 Pc 10 Sapquery
23/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 19
4. On the Select Business Rules screen, choose Search to search for, and then select abusiness 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_QUERYin the title.
-
8/16/2019 Pc 10 Sapquery
24/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 20
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.
-
8/16/2019 Pc 10 Sapquery
25/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 21
4.4 Scheduling a JobThis section describes how to schedule a job.
1. Navigate to Rule Setup > Scheduling > Automated Monitoring.
-
8/16/2019 Pc 10 Sapquery
26/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 22
2. Choose Create Job.
The Automated Monitoring screen appears.
3. Enter the Timeframe, Year , and Job Type on the Continuous Monitoring Scheduler screen.
4. Select Automated Monitoring Job on the Job Type menu.
5. Choose Start .
6. Choose Close without saving your information and exiting the screen.
-
8/16/2019 Pc 10 Sapquery
27/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 23
7. Select Header on the Continuous Monitoring Scheduler screen, and then enter the followingrequired information:
Job Name
Execution Type
Frequency
Test Period From Test Period To
-
8/16/2019 Pc 10 Sapquery
28/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 24
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
-
8/16/2019 Pc 10 Sapquery
29/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 25
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 thecontrol.
-
8/16/2019 Pc 10 Sapquery
30/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 26
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 LogThis 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.
-
8/16/2019 Pc 10 Sapquery
31/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 27
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.
-
8/16/2019 Pc 10 Sapquery
32/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 28
4.6 Reviewing the Job ResultThis 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.
-
8/16/2019 Pc 10 Sapquery
33/35
Using the SAP Query Subscenario for Continuous Monitoring
October 2012 29
3. The job result is displayed.
-
8/16/2019 Pc 10 Sapquery
34/35
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 registeredtrademarks 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.
-
8/16/2019 Pc 10 Sapquery
35/35
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.