Run an Adhoc Report (PQAH)
Purpose
Use this procedure to execute existing Ad Hoc Reports you have saved on your system.

This procedure can also be used as a reference for manipulating the output of
any of the standard reports in SAP SME - Human Resources and SAP SME - Payroll.
Trigger
Perform this procedure when you need to execute a previously written Ad Hoc report.
Prerequisites
Before executing this transaction the following must have been carried out on your system.
You must have entered your master data onto the system.
You must have already written and saved your Ad Hoc report.

The system comes supplied with some standard Ad Hoc Reports you can use as templates
for writing your own reports.
Navigation Path
Use the following navigation path(s) to begin this transaction:
Select to go to the HR Ad Hoc Query screen.
Select to go to the HR Ad Hoc Query screen.
Field Description Tables
The R/O/C column of each Field Description table indicates whether the field usage is:
R - Required in SAP.
O - Optional in SAP.
C - Conditional in SAP.
Procedure
1. Start the transaction using the navigation path.
2. Double click
Adhoc Report Writer to take you to the
HR Adhoc Query screen.
3.
Click
to go to the
Open Query screen.
4. Complete the following fields:

The Queries starting with YS are provided with the system as template reports.
5.
Click

.to the left of the Ad Hoc
report you wish to select, in this example
YS_Addresses.
6.
Click
to confirm your selection and return to the
HR
Ad Hoc Query screen.

You can enter selection values as required into the value field in the selection
area of the screen.

For further information on changing the details of and writing Ad Hoc Reports,
refer to procedure
Write
an Adhoc Report.
7.
Click
to run the report.

If your system holds little employee data, you may be taken directly to
Step
11 the
Employee Addresses output
screen.
8.
Click
to continue processing.
9. Complete the following field:
10.
Click
to confirm your entries.
11. The icons displayed at the top of the report can be used to manipulate the report in a variety of ways. Select any of the following options as required.

The icons displayed will depend upon the types of fields in the report.
Function
|
Icon(s)
|
Goto
|
Display the details of a particular record.
|
|
|
Set Filter such that only certain records are displayed in the report output.
|
|
|
Sort Rows. Records can be sorted chronologically, numerically or lexically on columns in the report.
|
|
|
Move Columns. Change the column order.
|
N/A
|
|
Send the report in e-mail.
|
|
|
Save the report to a local file.
|
|
|
Send the report to a word processor.
|
|
|
Send the report to a spreadsheet.
|
|
|
Print preview.
|
|
|
Display Sum (This Function is not available from Addresses Report so the Salary report is used in the example).
|
|
|
To exit the report and return to the SAP Easy Access Main Menu.
|
N/A
|
|
ABC Analysis You can Perform ABC analysis
on your data by clicking

. This allows
you to perform statistical analysis on your data.
Variants The output of reports can
be manipulated so as to be viewed in a variety of ways. Such changes can be
saved as variants for use on a later date. For example, if you choose to sort
and restrict the report in a particular way, you can save these preferences
to be called up later.
Use

to display and manipulate the current display variant.
Use

to load a previously saved display variant.
Use

to save the current display as a display variant.
12. Click on the record (row in the report) for which you wish to display details.
12.1
Click

to go to the
Details
screen.
12.2
Click

to return to the
Employee
Addresses screen.
13.
Click

to go to the
Define
filter criteria screen.
13.1
Click

in the
Field
list window next to any fields on which you wish to filter.
Example: CoCd - Company Code
13.2
Click

to move your selection to
the
Filter criteria window.

Note that multiple filter criteria can be used here.
13.3
Click

to confirm your selection
and go to the F
ilter criteria screen.

This screen will be different depending upon which fields you have selected.
13.4 As required, complete the following fields:

If required you can use

to use
the
Multiple selection screen for CoCd.
On the
Multiple Selection for CoCd
screen there are 4 tabs.
The tabs can be used as follows:-
Tab
|
Description
|
|
Use Operators for single values. Any entries here will be included in the report output.
Example: Greater than 0001
|
|
Use limits for values. Any selections here will be included in the report.
Example: 0003 to 0004
|
|
Use Operators for single values. Any entries here will be excluded from the report output.
Example: Less than or equal to 0003
|
|
Use limits for values. Any selections here will be excluded from the report.
Example: 0005 to 0006
|
13.5
Click

to confirm your entries and
take you to the filtered report results.

In this example only 1 employee meets the selection criteria.
13.6
Click

to remove the selection criteria.
13.7
Click

to remove the selection criteria.
13.8
Click

to confirm your selection
and return to the Employee Addresses screen.
14.
Click

to go to the
Define
Sort Order screen.

You could have selected

at this
stage to sort in descending order as default.
14.1
Click

in the
Field
list window next to any fields on which you wish to sort.
Example: Last name
14.2
Click

to move your selection to
the
Sort fields window.
14.3
Select the radio button

to choose
to sort either Ascending

or Descending

.
14.4
Click

to confirm your selection
and return to the
Employee Addresses
screen.

The report is now sorted in ascending alphabetical order on
Last
name.
15. Click the title at the top of the column you wish to move.

The column is now highlighted.
15.1 Drag and drop the column to the desired position.
16.
Click

to send the report results
as e-mail.
16.1 As required, complete the following fields:
16.2
Click

to send the mail.
17.
Click

to go to the
Save
list in file screen.
17.1
Select the radio button

for the
type of file you wish to export.
Example: HTML format
17.2
Click

to confirm your selection.
17.3 Complete the following field:
17.4
Click

to save the file.

The system displays the message, "xxxxxx Bytes transferred.
18.
Click

to send the report to a Word
Processor and go to the
Word Processor Settings
window.
18.1 Select
Form letter processing with MS Word. This takes you to the
MS Word Settings window.

Selecting
Form letter processing with MS Word
automatically creates a Mail Merge file for you within MS Word. Selecting
Create document creates a document
within MS Word for you to edit.
See F1 help for further information.
18.2 Complete the following fields
18.3
Click

to confirm your selection
and take you to MS Word.

You can now create your Mail Merge in MS Word.
18.4 Return to SAP SME - Human Resources
19.
Click

to Export your report to
Excel and go to the
Export list object to
XXL screen.
19.6
Select

Excel Display.

There are several processing options in Excel.
19.7
Click

to confirm your selection
and take you to MS Excel.

From Excel you can manipulate the information off-line as required.
19.8 Return to SAP SME - Human Resources
20.
Click

to view the report as it
would be printed.

Use

to actually print the report
output to your printer.
20.1
Click

to return
to the interactive view.
21. Locate and select the
Annual Salary column in your report.

This function can be used to sum any numeric column.
21.1
Click

to sum the values in the
Annual Salary column.
21.2 Repeat from
Step 21 to remove the total.
22.
Click

to return
to the
HR Ad Hoc Query screen.
23.
Click

to return
to the
SAP Easy Access Main Menu
screen.
24. You have now completed this transaction.
Result
You have executed, manipulated and exported Ad Hoc reports..