SAP Query Reporting
Performing maintenanceincluding locking your queries against changes, transporting them between clients, and so onis a task you will likely perform on a regular basis as you work with SAP Query. Having a good understanding of these maintenance functions is the key to properly administering the reporting solution in your organization. Locking Your SAP Queries
Earlier in this chapter, I encouraged the use of the SAP Query tool's locking feature. The locking feature, described in the "Special Attributes" section in Chapter 3, allows a user to lock an SAP query. A locked query can be executed, copied, and transported (to the standard or global application area), but it cannot be altered or deleted by anyone other than the person who locked it (not the person who created it). Note that any user who opens an SAP Query (via the Change or Create button) and selects the Change Lock check box has his or her SAP user ID locking that query. Best practice dictates that if you are creating queries associated with Rule 1, it is a good practice to lock your own queries during the creation process. In line with Rule 2, you should never select the lock indicator for queries that you intend to delete (those starting with a DELETE_ prefix). Finally, for those queries that will be used by multiple users and will become company staples (refer to Rule 3), you should ask your system administrator/owner to lock these individual company reports. This way, you can rest assured that queries cannot accidentally be modified or deleted. Helpful Hint Keep in mind that when a user locks a query and then is no longer a user, the only way the query can be unlocked is for the system administrator to reset that user's password and log in as that user to unmark the query. Another workaround is to simply make a copy of the query and then make changes to the copied version. Copying Existing SAP Queries (Same Client, Same Query Group)
Although it is a great idea not to duplicate one report over and over, there are instances in which a standard report contains everything you need but is missing only a field or two. Because of Rule 3, you cannot change a company query. However, you can simply make a quick copy of the report (and its variant, if it has one; this is covered in Chapter 6, "Using Reporting Selection Screens: Advanced Skills," in the section "Variants") and than make the change you need to the copied version. Follow these steps to copy a query:
Copying or Moving Existing SAP Queries (Same Client, Different Query Group)
In some cases, you might want to copy or move an existing query from one query group on the client to another. At any time, if you want to see a list of valid query groups on the client, you can navigate to the SAP Query tool main screen (by using transaction code SQ01) and press Shift+F7, to get a list. This list will appear only if you are currently assigned to multiple query groups (or if you have an administrator or SAP_ALL login type of security access). Although it is a great idea not to duplicate reports between query groups, in some cases, there is a business case for moving or copying a query to a different query group. Follow these steps to copy a query to a new query group:
Deleting SAP Queries
To delete an SAP query, follow these steps:
Helpful Hint Keep in mind the following guidelines when deleting reports:
|
Категории