Creating a custom report
To walk you through the basic steps involved in creating a custom report using SAP Crystal Reports, we will use an example. When you want to create more complex reports, see the SAP Crystal Reports online Help for detailed instructions.
Note: We recommend creating a sub-report for each multi-record database you add to the same report.
The example report you will create will be an Employee Original Hire Date List report that retrieves the following information: employee first name, employee last name, and original hire date.
If you are creating a custom report for the first time, you must specify Abra HRMS Data Access as the data source.

- Select Connected Services > Sage HRMS Tools > Crystal Reports to launch SAP Crystal Reports.
- In the Welcome to Crystal Reports window, select Blank Report and click .
-
In the Database Expert window:
- Click the plus sign to expand Favorites.
- Click the plus sign to expand Abra HRMS Data Access.
- Scroll through the list until you find the tables you want to include in the report and click once to highlight the tables.
For this example, highlight HRPERSNL. - Click to add a check mark to the tables you selected for the report.
-
When you finish selecting the tables you need for the report, click
.The report opens in Design mode with the Field Explorer window visible.

- In the SAP Crystal Reports main menu, select Insert > Text Object.
- The text object appears as a floating object. Drag it to the
location on the report and click once to anchor it in place.
For this example, drag it to the upper right hand corner of the Page Header band line. - Double-click in the text object and type the report name.
For this example, type Employee Original Hire Date List. - Drag your cursor over the title to highlight the text.
- In the main menu, select Format > Font.
- In the Text Format window for Size, select 14 and click .
-
If you need to expand the text object to accommodate the larger text:
- Move your cursor anywhere inside the text object and click once to highlight the text box and display the crosshairs cursor.
- Move the cursor to the right border of the text object until it changes to a left/right arrow.
- Click and drag the cursor to resize the text object.

- In the SAP Crystal Reports main menu, select Insert > Text Object.
- The text object appears as a floating object. Drag it to the
location on the report and click once to anchor it in place.
For this example, drag it to the lower left most position of the Page Header band line for the first column. - Double-click
in the text object and type the report text.
For this example, type Employee Name. - Drag your cursor over the title to highlight the text.
- In the main menu, select Format > Font.
- In the Text Format window for Style, select Bold and click .
- Repeat steps 1 through 6 to create additional column headings.
For this example, create a column heading for Original Hire Date, placing the column heading in center of the Page Header.

- In the SAP Crystal Reports main menu, select Insert > Field Object.
-
In the Field Explorer window:
- Click the plus sign to expand Database Fields and HRPERSNL.
- Left-click
and drag a field to the desired
location on the report.
For this example, drag p_fname to the left most position of the Details band line, which will insert the employee's first name on the report.
- In the main menu, select Format > Font.
- In the Text Format window for Size, select 8 and click .
- Repeat steps 1 through
4 to add the other fields.
For this example, add the employee's last name using p_lname and date of birth using p_orighire.

- Place your cursor over the separation line between the Page Header band line and the Details band line. The cursor changes to an up and down arrow.
- Click once and drag the separation line down about 1/8 inch.
- In the main menu, select Insert > Line. The cursor changes to a pencil.
- Place the cursor on the Page Header band line under the Employee Name column heading.
- Hold down the left mouse button and draw a line from the left side of the report to the right side of the report.
- Right click on the line and select Format Line.
- In the Format Editor window, change the width to the widest option and click .
- Repeat steps 1 through 7 to add a line to the Page Footer.
- In the main menu, select File > Save As and save the report.
- In the main menu, select File > Print Preview to see the result.

If the report contains data from two or more database files, the database files must be linked. You use a field that is common to both databases to link the database files so records from one database match with related records from the other database.
For example, you can add benefit plans descriptions from the Employee Benefit table (HBENE) and employee benefit premiums from the Benefit Plan table (HBEPLAN) to the Employee report that uses the Employee Personnel table (HRPERSNL). You link the databases so that each employee can be matched up with their benefit descriptions (from the Benefit Plan table) and each benefit description (from the Benefit Plan table) can be matched up with the employee benefit premium (from the Employee Benefit table) .
- In the SAP Crystal Reports main menu, select Database > Add Database to Report.
-
In the Data Explorer window, select the tables for the report:
- Click the plus sign to expand Favorites.
- Click the plus sign to expand Abra HRMS Data Access.
- Scroll through the list until you find the tables you want to include in the report and click once on each table to highlight it.
For this example, highlight HBENE and HBEPLAN. - Click , which adds a check mark to the tables you are adding to the report.
- When you finish selecting the tables for the report, click .
-
The Visual Linking Expert window shows all the tables currently in your report including any existing links. To add a link:
- Scroll through the primary
database file, until you find the field to use as the link.
For this example, the field is p_empno in HRPERSNL. - Left-click and drag the
field from the primary database file to the corresponding field in the
related database file. After the database files are linked, a link line
is created from the field in the primary database to the corresponding
field in the related database.
For this example, drag p_empno in HRPERSNL to b_empno in HBENE. - Repeat steps 3a and 3b for all fields to be used to link the databases.
For this example, drag b_benecode in HBENE to code in HBEPLAN. - When done, click .
- Scroll through the primary
database file, until you find the field to use as the link.
-
Add the fields that you want from the linked tables:
- In the main menu, select Insert > Field Object.
- In the Field Explorer window, click the plus sign to expand Database Fields and HBEPLAN.
- Left-click and drag desc (the benefit plan descriptions) to the desired location on the report.
- Repeat steps 4b and 4c to drag b_epremium in HBENE (the employees' benefit premiums) to the desired location on the report.