Epicor ERP Auto Print Course
Epicor ERP Auto Print Course
EDE8921905
90521-10-9215-5831001
10.1
Revision: December 01, 2015 5:06 p.m.
Total pages: 33
course.ditaval
Auto Print Course Contents
Contents
Auto Print Course...................................................................................................................5
Before You Begin....................................................................................................................6
Audience.........................................................................................................................................................6
Prerequisites....................................................................................................................................................6
Environment Setup..........................................................................................................................................7
About Auto Print....................................................................................................................9
Workshop - Auto Preview an SSRS Report.........................................................................10
Locate the Check Box....................................................................................................................................10
Locate the OrderHed Table............................................................................................................................10
Add Standard Directive..................................................................................................................................11
Add an Action...............................................................................................................................................12
Define Report Parameters..............................................................................................................................12
Enable Data Directives....................................................................................................................................13
Test the BPM.................................................................................................................................................13
Workshop - Auto Print an SSRS Report...............................................................................15
SSRS Report - Create a Data Directive............................................................................................................15
Define the Condition.....................................................................................................................................15
Select the Report...........................................................................................................................................16
Set Up Report Options...................................................................................................................................17
Set Up Report Parameters..............................................................................................................................18
Activate the Directive.....................................................................................................................................18
Test the Auto Print Action..............................................................................................................................19
Workshop - Email an SSRS Report.......................................................................................20
Create a Data Directive..................................................................................................................................20
Define the Condition.....................................................................................................................................20
Select the Report...........................................................................................................................................21
Set Up Email Options.....................................................................................................................................22
Set Up Report Parameters..............................................................................................................................23
Activate the Directive.....................................................................................................................................24
Test the Auto Print Action..............................................................................................................................24
Workshop - Auto Print Bartender Labels............................................................................26
Define the Report Style..................................................................................................................................26
Create a Data Directive..................................................................................................................................27
Define the Condition.....................................................................................................................................27
Select the Report...........................................................................................................................................28
Set Up Report Options...................................................................................................................................28
Set Up Report Parameters..............................................................................................................................29
Activate the Directive.....................................................................................................................................29
Create a Sales Order......................................................................................................................................30
Test the Auto Print Action..............................................................................................................................30
Conclusion.............................................................................................................................32
This course illustrates how you use a Business Process Management (BPM) data directive to automatically print
and distribute reports.
Use the Auto Print action to preview, print, e-mail, or fax a report when a data directive executes. You can
automatically print SSRS reports, Crystal reports, Bartender labels, and Outbound EDI documents.
®
The course workshops demonstrate how to automatically display a print preview of a SQL Server Reporting
Services (SSRS) report, print an SSRS report, send an SSRS report to selected recipients as an e-mail attachment,
®
and generate Seagull Scientific BarTender labels.
Upon successful completion of this course, you will be able to:
• Understand the purpose of the auto print functionality.
• Work with Business Process Management (BPM) data directives.
• Define conditions that activate the Auto Print action.
• Link the Auto Print Ready check box to a data directive. This check box is available for use on AR Invoice Entry,
Sales Order Entry, and other programs.
• Learn how to find and select a report for automatic printing.
• Configure the Auto Print action to preview, print, e-mail, and/or fax a selected report.
• Configure report styles and data directives to automatically print BarTender labels.
Read this topic for information you should know in order to successfully complete this course.
Audience
Prerequisites
To complete the workshops in this course, the necessary modules must be licensed and operating in your training
environment. For more information on the modules available, contact your Epicor Customer Account Manager.
It is also important you understand the prerequisite knowledge contained in other valuable courses.
• Navigation Course - This course introduces navigational aspects of the Epicor application's user interface.
Designed for a hands-on environment, general navigation principles and techniques available in two user
interface modes - Classic Menu and Modern Shell Menu. Workshops focus on each of these modes and
guide you through each navigational principle introduced.
• Database Concepts Course - This course reviews the table and field name identification process using Field
Help, Customization Tools, and the Data Dictionary Viewer functionality. It also describes table linking
procedures and requirements as well as join type definitions and specifications.
• System Flow Course - This course introduces a basic quote to cash scenario that includes the process from
the initial customer quote to final cash receipts and payment of supplier invoices. This course emphasizes the
series of processes that make up the quote to cash process by using a simple scenario to highlight various
transactions. Your organization may have more complex processing routines than those described in this
course.
Environment Setup
The environment setup steps and potential workshop constraints must be reviewed in order to successfully
complete the workshops in this course.
Your Epicor training environment, in which the Epicor demonstration database is found, enables you to experience
Epicor functionality in action but does not affect data in your live, production environment.
The following steps must be taken to successfully complete the workshops in this course.
1. Verify the following or ask your system administrator to verify for you:
• Your Epicor training icon (or web address if you are using Epicor Web Access) points to your
Epicor training environment with the Epicor demonstration database installed. Do not complete
the course workshops in your live, production environment.
Note It is recommended that multiple Epicor demonstration databases are installed. Contact
Support or Systems Consulting for billable assistance.
• The Epicor demonstration database is at the same service pack and patch as the Epicor
application. Epicor's education team updates the Epicor demonstration database for each service pack
and patch. If your system administrator upgrades your Epicor application to a new service pack or patch,
he or she must also download the corresponding Epicor demonstration database from EPICweb > Support
> Epicor > Downloads and install it. If this is not performed, unexpected results can occur when completing
the course workshops.
• Your system administrator restored (refreshed) the Epicor demonstration database prior to
starting this course. The Epicor demonstration database comes standard with parts, customers, sales
orders, and so on, already defined. If the Epicor demonstration database is shared with multiple users
(that is, the database is located on a server and users access the same data, much like your live, production
environment) and is not periodically refreshed, unexpected results can occur. For example, if a course
workshop requires you to ship a sales order that came standard in the Epicor demonstration database,
but a different user already completed this workshop and the Epicor demonstration database was not
restored (refreshed), then you will not be able to ship the sales order. Epicor's education team has written
the course workshops to minimize situations like this from occurring, but Epicor cannot prevent users
from manipulating the data in your installation of the Epicor demonstration database.
2. Verify, or ask your system administrator to verify, that a printer is shared on the network and can be accessed
for the course workshops.
3. Log in to the training environment using the credentials epicor/epicor. If you are logged into your training
environment as a different user, from the application Home Page click Settings to open the Settings Page,
and then choose Change User under General Options.
6. Verify, or ask your system administrator to verify, that the shared network printer (from Step 2) has been
added to Printer Maintenance and is configured correctly:
a. Launch Printer Maintenance. Navigate to System Management > Reporting > Printer
Maintenance.
b. On the Detail sheet, click Printer ID to open the Printer Search dialog box.
c. Search for the printer using its network name or just click Search to retrieve all printers.
e. On the Detail sheet, verify that SSRS Printer is selected and verify that the Description field contains
a value. A description is required for the printer to be included on selection lists in the application.
f. Click Save to apply any changes and then close Printer Maintenance.
7. To be able to test Auto Print for BarTender Labels, the BarTender and Commander applications must be
installed and configured to pick up and process the .bt output file generated by the Auto Print action. Verify,
or ask your system administrator to verify these applications are installed on your server.
Note To refresh your Epicor training database, send a request that includes your site ID to
[email protected]. Refreshing your training database may take up to 72 hours after the
request is received.
You use the auto print feature to immediately print, preview, and/or send reports. When users enter or update
data in selected columns, the report renders using the actions and parameters you define.
To leverage this feature, you set up a Business Process Management (BPM) standard data directive with an Auto
Print action in its workflow. Introduced in Epicor 10, the BPM Auto Print action replaces the Business Activity
Manager Auto-Print event used in previous Epicor ERP releases.
Through Business Process Management, you create workflows that automate, execute, and monitor business
processes and data entry. A Standard data directive is a set of conditions and actions associated with a specific
database table, so these directives track data changes. In Data Directives Maintenance, the BPM Workflow
Designer has a library of configurable actions you leverage to create data directives that launch auto printing
based on triggers ranging from a single statement to multiple statements designed with custom C# code.
For example, you can create a BPM data directive based on the JobHead table that auto prints the Job Traveler
report by monitoring the Required By field on a job record. When users update the Required By date and save
the job, the data directive activates, causing the Auto Print action to run. This action specifies what printer to
use and which data parameters need to be passed to the report. The Job Traveler then prints on the selected
printer in your production center, alerting your production team about the job change.
You can also use automatic printing to distribute the report to key individuals. For example, you could create a
data directive that automatically emails Sales Order Acknowledgments to specific customer contacts. Likewise,
you could set up a directive that e-mails new purchase orders to managers for review.
The Auto Print action is a flexible feature. It can just run a single auto print task like a print preview. However
when you indicate you want to print the report on a client or server printer, you can also set up the action to
simultaneously send the report as an e-mail attachment and/or a fax. Likewise if you select the Email/Fax print
action, you can send out the report through both an e-mail attachment and a fax.
Tip You can further customize how the report auto prints by designing routing rules. Routing rules activate
when the Auto Print action runs, and they help you streamline reporting for specific business needs. They
can be simple rules that define an alternate report style users run when they need to print a report using
a unique format, or complex rules that divide, or break, the report run into multiple dataset partitions
which they can link to separate rendering workflows.
For more information, review the Routing Rules section in the application help, the Reporting Tools chapter
in the Implementation User Guide, and/or the SQL Server Reporting for Epicor ERP course.
Some programs have an Auto Print Ready check box. By default, this check box does not do anything. However
you can set up a data directive to monitor this check box.
In this workshop, you will create a data directive which monitors the OrderHed table. When users select the
Auto-Print Ready check box on a sales order and click Save, the sales order displays in a print preview window.
4. Now click the Header tab to display the Header > Detail sheet.
You next create the data directive that monitors this check box.
6. Click Search.
Data directives are based on a table. Selecting a table adds it to the Data Directives tree view, making it available
for you to create data directives. When a table has existing data directives configured for it, those directives
display on the tree view under the table node.
2. In the Directive Name field, enter XXX-Auto Print (where XXX are your initials).
3. In the Group field, enter XXX (where XXX are your initials).
5. Click the Condition icon and drag it to the workflow pane of the Designer, below the Start element.
8. In the Condition pane at the bottom, click the Add Line icon.
For this exercise, you will insert one condition statement. However a Condition action can have multiple
statements that execute in the order you arrange them on this tab.
9. In the Condition statement, click the drop-down list and select The specified field has been changed
from any to another.
10. Click the specified link; the Select Table Field(s) window displays.
12. From the list of available fields, select the AutoPrintReady check box and click OK.
Add an Action
1. In the workflow elements toolbar, click the Auto Print icon and drag it below the Condition element.
2. Connect the Condition's True exit point to the Auto Print element.
4. In the Actions pane, verify Automatically print specified report with selected options with rule
displays.
5. Click the first specified link. The AutoPrint Report Search window displays; verify the Basic tab is active.
7. In the Report Table Level field, verify 'OrderHed' is the Primary table displays.
This limits the Search Results grid to only display reports where OrderHed is the primary table.
8. Click Search.
9. From the list, select OrderAck (Sales Order Acknowledgment) and click OK.
10. Click the second specified link. The Set up Auto Print window displays.
13. You want to display the Sales Order Acknowledgments in a .pdf viewer. For the Output Format, verify the
PDF option displays.
Now to complete the auto print action, you specify the report parameters. On this sheet, you define the actions
associated with the listed parameters so values are passed to the report in the context of the Auto Print action.
2. For the OrderList parameter, click the arrow on the right-hand side and select The specified expression.
4. In the Available variables pane, expand the Temp-tables > ttOrderHed node.
9. Click OK.
10. In the Set up Auto Print window, click Apply and then OK.
4. Click Save.
2. Click New.
5. On the Lines Detail sheet at the bottom, enter the following details:
Field Value
Part DSS-1010
Order Quantity 10
7. Click Save.
The Sales Order Acknowledgment report appears in a preview window. It displays the current sales order.
This workshop takes you through creating and testing a Business Process Management (BPM) data directive that
auto prints an SSRS report in response to a record change. During this workshop, you cause the Job Traveler to
print when users update a job record.
You begin by creating a data directive that monitors the Job Header (JobHead) table.
2. On the Detail sheet, click in the Table field. Enter jobhead and press Tab.
6. For Directive Name, enter XXX Auto Print Job Traveler, where XXX are your initials.
8. Click Save.
You now launch the BPM Workflow Designer to create the data directive.
2. Select the Condition action element and drag it to the workflow design area.
3. Click on the Start element to display its connections; drag one of them to a connection arrow on the
Condition action element.
5. On the Condition tab at the bottom of the workflow design area, click the New button.
6. Click the arrow on the right side of the Condition column and choose the There is at least one updated
row in the specified table statement.
You have configured the Condition element. Now whenever a user changes a value on the JobHead table, the
condition evaluates to true.
You next add the Auto Print action element to the data directive.
1. Select the Auto Print action element and drag it to the workflow design area.
2. Place your cursor over the Condition action to display its connections; drag its True connection to a
connection on the Auto Print action.
When the condition statement resolves to True, it activates the Auto Print action.
6. Click Search.
7. In the Search Results list, select the JobTrav report that has Standard - SSRS displayed in the Style
Description column.
8. Click OK.
In the action statement, note that specified changes to JobTrav.
You can now define some print options for the Job Traveler report.
3. For the Print Action, select Auto Print. This sends the report directly to the printer.
4. From the Output Format drop-down list, select the PDF option.
5. For the optional User Description, enter Job Traveler Auto Print.
This text displays in the System Monitor to help you locate a specific run of this report.
6. For the Printer option, select the Server radio button and choose the network printer defined in Printer
Management to support these course workshops.
For SSRS reports, the list only shows SSRS printers.
Other printer options:
• When the application is configured to support it, selecting Use Default Printer causes the application
to automatically select the printer. The application first checks the workstation for a default printer. If
the workstation does not have a printer defined, the application next checks the current company. The
printer defined on the current company then runs. You select default printers in Workstation
Maintenance and Company Maintenance.
• You can choose Client and select a client-based printer; however a message will display advising you
the client printer option is not recommended for SSRS reports. Click OK to use the client printer with
the Auto Print action.
7. For Print Quantity, select the Constant radio button and enter 1.
This indicates only one copy of the report is sent to the server printer.
Tip Select the Dynamic radio button when you want users to decide how many copies to print. You
select the table and field that contains a numeric value. During runtime, users enter a value in this
table/field that indicates the number of copies to run at the printer.
You next must define parameters for the report; these parameters define the data that populates the generated
report. For this workshop, you will configure a report parameter to pull in the job number (ttJobHead.JobNum)
for the job record that changed.
3. From the Actions column (be sure the Jobs parameter is still selected), click the Down Arrow and select
The specified table and field value option.
6. Click OK.
You return to the Report Parameters tab. The Action column now displays:
• The ttJobHead.JobNum table and field value
Now complete the Auto Print action element and activate the data directive.
2. Depending on the table selected for the data directive, different rule options are active. Select the For each
matching radio button option.
3. Now click the table drop-down list to select the temporary table (tt) that uses the execution rule. Verify the
table drop-down list displays the ttJobHead (temporary table).
Tip Temporary tables contain the updated rows in memory before they save to the actual database.
When you define a row rule, you determine how the Epicor ERP application updates multiple unsaved
rows to the database.
4. Click OK.
You return to the BPM Workflow Designer.
7. On the Standard > Detail sheet, select the Enabled check box.
8. Click Save.
Make a change to a job record to verify that the Auto Print action triggers and prints the Job Traveler report for
the changed job record.
4. From the Search Results grid, select job 2056 and click OK.
Tip You can choose another job as well. The auto print is set to launch from a change to any job.
5. Make a simple change to the job. For this example, change the Priority from NORMAL to Very High.
6. Click Save.
7. Now either launch the System Monitor from your Windows Tray or from the Epicor ERP application.
Menu Path: System Setup > System Maintenance > System Monitor
Important This program is not available in Epicor Web Access.
9. Retrieve the report from the printer selected in your Auto Print action report options.
You can set up an Auto Print action to generate a report as an e-mail attachment. When users activate the data
directive, the report renders using a selected output format, such as a .pdf, and then is automatically sent to
selected recipients.
For this workshop, you once again create another data directive that monitors an Auto Print Ready check box,
in this case the Auto Print Ready check box within AR Invoice Entry. When users select this check box and save
the invoice, the AR invoice generates as a .pdf file and then is sent to a recipient as an e-mail attachment.
2. On the Detail sheet, click in the Table field. Enter InvcHead and press Tab.
In the tree view, the InvcHead node now displays.
4. Click the Down Arrow next to the New button. Select New Standard Directive.
A new Standard directive node is added under the InvcHead node.
6. For Directive Name, enter XXX Email AR Invoice (where XXX are your initials).
7. Click Save.
You now launch the BPM Workflow Designer to create the data directive.
2. Select the Condition element and drag it to the workflow design area.
3. Click on the Start element to display its connections; drag one of them to a connection arrow on the
Condition element.
5. On the Condition tab at the bottom of the workflow design area, click the New button.
6. From the condition statement drop-down list, select The specified field has been changed from any to
another option.
13. You want this condition to monitor when users select the Auto Print Ready check box. Verify the false
option displays in this dialog box.
You next add an Auto Print action element to the data directive and select the report that renders through this
BPM action.
1. In the BPM Workflow Designer, select the Auto Print action element and drag it to the workflow design
area.
2. Place your cursor over the Condition action to display its connections; drag its True connection to a
connection on the Auto Print action.
This indicates that when the condition statement resolves to True, it activates the Auto Print action. When
a user selects the Auto Print Ready check box, the condition activates this Auto Print action.
5. Use the fields on the Basic tab to find and select the specific report to automatically print. From the Report
Type drop-down list, select the SQL Server Reporting option.
6. Now from the Report Table Level drop-down list, select the 'InvcHead is used by the Report' option.
7. Click Search.
The Search Results grid displays the report styles that match your search. A series of ARForm report styles
displays on this drop-down list.
9. Click OK.
You return to the BPM Workflow Designer. The action statement now reads:
• Automatically print ARForm report with selected options with rule
You now set up an Auto Print action to generate the AR invoice as an e-mail attachment.
3. Determine the Run Schedule for this report. Select the Immediate option.
This causes the report to be placed at the top of the system agent queue and renders before other tasks
waiting in the queue. Because you want to immediately send the email after a user selects the Auto Print
Ready check box, you select this option.
4. Optionally enter a User Description to help identify the instance of this report. For this example, enter
Auto Email for AR Invoice.
This text displays in the System Monitor to help you locate an archived report.
7. The Attachment Type defines the format of the electronic file. The report generates using this file type
and then the Auto Print action attaches this report file to the email. Notice you can select XML, PDF, Word,
and other file format types. For this workshop, select the PDF option.
8. Enter who will receive this e-mail in the E-Mail To field. You can enter one or multiple e-mail addresses in
this field. For this example, enter your email address.
9. Use the E-Mail Body field to enter any additional text you want to include with the report. This text displays
in the message pane on the email window. For this example, enter "A new AR invoice is ready for your
review. This AR invoice is attached."
You next define the parameters you need to populate the report.
To render the selected AR invoice, you need to populate the ttInvcHead.InvoiceNum column with the current
invoice number. This invoice data then can populate the AR Invoice Form, and the report renders its data in the
.pdf format, creating the e-mail attachment.
3. Now from the Action column, click the drop-down list. Select The specified table and field value option.
7. Click OK.
The Action column now displays "The ttInvcHead.InvoiceNum table and field value" statement.
8. Click Apply.
9. Click OK.
Now finish the Auto Print action element and activate the data directive.
3. On the Standard > Detail sheet, select the Enabled check box.
4. Click Save.
To test this Auto Print directive, you first create a miscellaneous invoice in AR Invoice Entry. After you select the
Auto Print Ready check box and click Save, the report generates and is sent as an email attachment.
2. From the Group > Detail sheet, click the Group... button to find and select an invoice group. Select a
group from the current fiscal year.
6. Click Search.
The Search Results grid populates with open sales orders.
8. Now click the Down Arrow next to the New button; select New Line.
10. Select one of the selected sales order's detail lines. Click OK.
Information from the selected detail line displays on the Line > Detail sheet.
The AR Invoice renders as a .pdf file and attaches to an e-mail. This e-mail displays in your inbox. To check on
the progress, launch the System Monitor. When the report process is complete, it displays on the History Tasks
sheet.
Setting up Auto Print for a Bartender Labels report is similar to setting up Auto Print for SSRS reports. However
you first create a report style for the Bartender labels and then create an Auto Print data directive.
You can currently set up these Bartender labels in the Epicor ERP application:
• GenInv
• GenJob
• GenQA
• GenSO
• GenShip
• GenRcpt
For this workshop, you create a data directive that causes a change in Customer Shipment Entry to automatically
® ®
generate shipping labels. Once the shipping label (.bt) file is sent to the server, the BarTender Commander
application intercepts the .bt file and sends it to the printer.
You first set up a report style that outputs the bartender labels to a folder on the server.
4. Click the Report Type drop-down list and select Bartender Labels.
8. Click Save.
Create a BPM standard data directive that includes a Condition that activates the Bartender Auto Print action.
2. On the Detail sheet, click in the Table field and enter ShipHead. Press Tab.
The table displays on the tree view.
5. For Directive Name, enter XXX Ship Auto Print (where XXX are your initials).
6. Click Save.
You now launch the BPM Workflow Designer to create the data directive.
2. Select the Condition element and drag it to the workflow design area.
3. Select the Start element to display its connection arrows; drag any one of these arrows to a connection on
the Condition element.
5. On the Condition tab at the bottom of the workflow design area, click the New button.
6. From the Condition drop-down list, select The specified field has been changed from any to another
statement.
9. Click OK.
Now whenever the Status value on a customer shipment changes, this condition resolves to true.
1. Select the Auto Print action and drag it to the workflow design area.
2. Place your cursor over the Condition action to display its connections and drag its True connection to the
Auto Print action.
4. Select the report that will auto print. Click the specified report link.
The Auto Print Report Search dialog box displays. Verify you are on the Basic tab.
8. Click Search.
You can now define print options for the bartender labels.
While you can set up automatic printing for bartender labels, the actual report is not sent to the printer.
Instead the printer name is placed in the Bartender header file. The BarTender Commander application then
intercepts the .bt file and sends it to the printer defined in the header file.
5. For the Printer option, select Server and choose the network printer that supports these course workshops.
Tip When the application is configured to support it, choosing the Use Default Printer radio button
option causes the system to automatically select the printer. The system first attempts to use the
default label printer at the workstation. However if the default printer is not set as a label printer, it
will then use the default label printer defined in Company Maintenance.
You next define the parameters you need to populate the Bartender labels.
3. In the PackNum row in the Action column, click the Down Arrow and select The specified table and
field value option.
6. Click OK.
You report to the Report Parameters tab. The Action column now displays:
• The ttShipHead.PackNum table and field value.
4. Click Save.
8. In the Need By field, enter the date one week from today's date.
9. Click Save.
10. Navigate to the Summary sheet and record the sales order number _________.
Complete an order shipment to trigger the Auto Print action in your BPM data directive.
3. Navigate to the Lines > Customer Shipment Entry > Detail sheet.
5. In the Order Number field, enter the sales order number created in the previous exercise and press Tab.
6. Click Line/Rel, click Search, select the record, and click OK.
9. Click Save.
11. You can verify the report printed through the System Monitor:
a. Access the System Monitor from either your Windows Tray or from the Epicor ERP application.
Menu Path: System Setup > System Maintenance > System Monitor
Important This program is not available in the Epicor Web Access.
Conclusion