Table of Contents

Using APP Report Maintenance and Delivery

How To Migrate TWBS_SBO-Common Data If Required During Upgrade

The separate TWBS_SBO-Common database will no longer be used by the application. All APP information will be stored in SAP® Business One user-defined tables in the respective company databases. For existing customers upgrading to this new version, the application Server Configuration screen provides a method to migrate this information into the customer database.

A backup of the TWBS_SBO-Common from the previous SAP® Business One production environment must be present in order to perform the data migration.

The TWBS APP Server Configuration screen may only be accessed through SAP® Business One authorizations.

app_server_config_updated.jpg

APP Report migration will only occur for reports assigned to the specific database name the migration is being performed in or reports assigned to ALL databases. APP data migration can be performed multiple times if adjustments are required.

This process may take a few minutes.

Once all of the APP information has been migrated to all required databases and verified, the TWBS_SBO-Common database is no longer required.

How To Determine a Form Unique ID for Form Registration

Every SAP® Business One or ISV add-on screen generated using the UI API has a unique ID associated with it. This value can be easily retrieved from within SAP® Business One through the following steps…

image182.jpeg

image183.jpeg

How To Determine a Field Unique ID for Parameter Mapping**

Every field on an SAP® Business One or ISV add-on screen generated using the UI API has a unique ID associated with it. This value can be easily retrieved from within SAP® Business One through the following steps…

image182.jpeg

image184.jpeg

image44.jpeg

How To Set Report Security

image142.jpeg

image185.jpeg

image148.jpeg

image186.jpeg

image44.jpeg

How To Create Report Groups

image188.jpeg

image44.jpeg

How To Set Up Report Queries

image189.jpeg

image44.jpeg

How To Set Up Report Queries with Linked Parameters

image190.jpeg

Select the Query option button. Enter the criteria required (Name, Category, Database, Query, etc.)

Verify that the Query selected contains parameters.

For the purpose of this example, the following query will be used

image191.jpeg

image192.jpeg

image193.jpeg

image194.jpeg

image196.jpeg

This is only valid for execution through the APP application. Execution of the query through the SAP Query menu options will not display the specified parameter prompt text.

image197.jpeg

The results of the Query based on the entered parameter will be visible to the user.

image198.jpeg

Any charts associated with Queries that have parameters will also prompt for parameters when the chart is launched. If multiple panes of a dashboard contain objects based on the same query (a data display and a chart, for example) then the user will only be prompted once for the parameters by the dashboard. Each pane based on the query will share the entered parameter values.

image44.jpeg

How To Set Up Queries Not Linked to a Form

image199.jpeg

Be sure to leave the Link To value as “None”.

image44.jpeg

How To Execute Queries in TWBS Query Viewer

image200.jpeg

If you selected the Load Associated Charts option on the setup screen any charts associated with the query will also be loaded onto additional tabs when the query is executed.

image44.jpeg

Suggested Approach for Using Queries with APP

See the Query Tips and Tricks for APP Dashboards section of the User Guide for additional information.

image44.jpeg

How To User the Visual Query Builder

TWBS Advanced Productivity Pack (APP) incorporates a Visual Query Builder screen that allows the user to have a dynamic method to create and edit queries which can be used for reporting, query execution, or dashboards.

SAP® Business One variables are not supported in the TWBS Visual Query Builder.

How To Load a Blank Query into Visual Query Builder

image204.jpeg

SAP® Business One variables are not supported in the TWBS Visual Query Builder.

image205.jpeg

image207.jpeg

How To Load an Existing Query into Visual Query Builder

image208.jpeg

SAP® Business One variables are not supported in the TWBS Visual Query Builder.

image209.jpeg

image210.jpeg

How To Join Tables in the Visual Query Builder

The tables to be joined should be loaded into the SQL Graphical Display Pane of the Visual Query Builder screen.

image211.jpeg

image212.jpeg

image213.jpeg

How To Use Aggregate Functions in the Visual Query Builder

image214.jpeg

Aggregate functions available to the user include SUM, AVG, COUNT, MIN, and MAX among others.

How To Use Grouping in the Visual Query Builder

image215.jpeg

How To Use Aliases in the Visual Query Builder

image215.jpeg

How To Use Unions in the Visual Query Builder

image216.jpeg

How To Handle SAP Variables in the Visual Query Builder

image67.jpegimage218.jpeg

SAP® Business One variables are not supported in the TWBS Visual Query Builder.

image219.jpeg

image220.jpeg

image221.jpeg

image222.jpeg

image44.jpeg

image223.jpeg

The Document Entry (DocEntry) and Object Type (ObjType) fields must be included in the query results in order for the SAP Link To arrows to function properly.

The SAP® Document Object Type Reference Guide can be used to identify specific object type values.

The Production Order database table (OWOR) does not have a specific ObjType field that contains the value for the Production Order document header record. Refer to the How To Add Link To Arrows for Production Order to TWBS Visual Query Results section of the User Guide.

image189.jpeg

image225.jpeg

image226.jpeg

image228.jpeg

image229.jpeg

image230.jpeg

image232.jpeg

image233.jpeg

image44.jpeg

image234.jpeg

The Document Entry (DocEntry) and Object Type (ObjType) fields must be included in the query results in order for the SAP Link To arrows to function properly.

The SAP® Document Object Type Reference Guide can be used to identify specific object type values. To account for the Object Type for Production Orders, be sure to include “'202' AS [ObjType]” in your query.

The Production Order database table (OWOR) does not have a specific ObjType field that contains the value for the Production Order document header record.

image189.jpeg

image236.jpeg

image237.jpeg

image238.jpeg

image239.jpeg

image229.jpeg

image240.jpeg

image241.jpeg

image242.jpeg

image44.jpeg

How To Set Up SMTP Mails

image243.jpeg

There are limitations involved with the SMTP option. When using SMTP, the user can no longer send the document(s) as a draft, instead the email will be sent immediately. Furthermore, the user must specify where the email is coming from, the system cannot do it for the user.

image44.jpeg

How To Set Up Delivery Preferences from Ship To

image245.jpeg

The user can still use the manual e-mail CC List and BCC List fields in the Add Email Recipients window.

image44.jpeg

How To Set Up Print on Approve on Sales Order

VERIFY STILL EXISTS

This option will work only for Sales Orders and in Update Mode. It will not work when the user adds a new Sales Order. For this purpose the user must select the Auto Print On Add checkbox option.

Click the Update button.

To use the functionality…

image248.jpeg

The default report of the selected customer must be the same as the one that the user updated with Auto Print On Approve [Update Mode].

image44.jpeg

How To Customize Email Messages

image249.jpeg

To insert HTML tabs into the context of your email message…

  • Select the Query customization type option.
  • Select the Query to be used for the HTML tags.
  • Click the Select Tag drop down menu and select the tag you want to insert.
  • Click the Insert button to add the tag to the email.

image44.jpeg

How To Set Up Batch Processing

Creation of the SQL View is not required if your query is selecting data from just one table. This step is required if you are using a query with any of the following components…

  • Any JOINS between tables or DB objects.
  • Any table or field Aliases.
  • Any use of the GROUP BY clause.
  • Any use of the HAVING keyword.

The saved query should simply be SELECT * FROM [view name] (NOLOCK) or SELECT field1, field2… FROM [view name] (NOLOCK). If you were able to skip SQL View creation, the query should be SELECT * FROM [table] (NOLOCK) or SELECT field1, field 2… FROM [table name] (NOLOCK).

The report needs to be Document Specific.

image44.jpeg

How To Set Up a User Defined Form

Users now have additional flexibility in using their own forms. To take advantage of this flexibility the user should fill in every entry while registering a form. APP can handle these forms the same as it handles a standard SAP marketing document screen.

Clicking on the Define New option at the bottom of the Link To drop down list on the Report Maintenance screen will launch the Form Registration screen. APP allows you to attach custom crystal reports to any SAP® Business One or ISV add-on screen (i.e. you can launch a report from any SAP® Business One window by clicking the Print or Preview buttons). The first step in this process is to register the window in APP using the Form Registration screen.

The Form Registration screen is also accessible through the Form Registration menu option under the Administration image10.jpeg Setup image10.jpeg APP Configuration menus.

image121.jpeg

The Table Name, Record Key entries are very important for Batch Processing. If these fields are missing Batch Processing will not work.

If the Business Partner fields are setup correctly, the user will be able to access the following features…

  • Set as Default – Set a specific report as a default for current business partners, series of business partners, or business partner group.
  • BP Activity Integration – APP can create activities when a report is printed or delivered (Contact Person DB Field is also important).
  • Recipients from Contact Persons/Addresses – You can set recipients for your form in report delivery settings.
  • Consolidated BP

If the Contact Person DB field is setup correctly, the user will be able to access the following features…

  • BP Activity Integration - APP can create activities when a report is printed or delivered (Business Partner fields are also important).
  • Contact Preference delivery of reports - Delivery of reports through the preferences set up on the BP contact person.
  • Document Contact – You can specify document contact recipient for delivery.

If this field is set-up correctly, the user can add their own email recipients when delivering a report. APP will collect the recipients from the database field corresponding to the currently processing record while performing the email delivery.

These features will not work for user defined forms…

  • Incorporation of Sales Employees in email delivery.
  • Print On Add/Delivery On Add.
  • Save as XML/Send as XML – APP is unable to save your report in XML format. So you cannot send an XML attachment in your email.

image44.jpeg

How To Refresh APP Report Data

image263.jpeg

image44.jpeg

How To Preview a Default APP Report

This example is for the Sales Order screen.

image44.jpeg

How To Preview a non-Default APP Report

This example is for the Sales Order screen.

image265.jpeg

image266.jpeg

image44.jpeg

How To Print a Default APP Report

This example is for the Sales Order screen.

image44.jpeg

How To Print a non-Default APP Report

This example is for the Sales Order screen.

image265.jpeg

image268.jpeg

image44.jpeg

How To Email a Default APP Report

This example is for the Sales Order screen.

image44.jpeg

How To Email a non-Default APP Report

This example is for the Sales Order screen.

image265.jpeg

image269.jpeg

image44.jpeg

How To Fax a Default APP Report

This example is for the Sales Order screen.

image44.jpeg

How To Fax a non-Default APP Report

This example is for the Sales Order screen.

image265.jpeg

image271.jpeg

image44.jpeg

How To Set Up Document Printing for Delivery of Marketing Documents

image272.jpeg

image273.jpeg

If there are no delivery settings selected for the report, APP will create a blank mail with attachment and subject name. The attachment will be in PDF format and the subject name will be the report name defined in the report definition window. This new email will be saved in the Draft folder. The user can then send them in the future.

image44.jpeg

How To Set Up Document Printing Using Contact Preferences

In this version of APP the user has the ability to set the desired action corresponding to each and every customer contact person. To initiate this, the user should select the delivery preference in the Business Partner Master Data window.

image275.jpeg

image276.jpeg

APP will perform the actions assigned to each Contact Person while printing a Document only if you select the option Contact Preferences in the Document Action screen.

image44.jpeg

How To Set Up Batch Processing for Delivery of Customer Statements

image153.jpeg

Batch Delivery of BP Statements requires a report with the parameter name CardCode or @CardCode. Additional parameters or name variations will not be supported.

image44.jpeg

How To Print Checks for Payment

image277.jpeg

image44.jpeg

How To Batch Print Checks for Payment

image279.jpeg

For more information on the default action options, refer to the How To Set Up Document Printing for Delivery of Marketing Documents section of the User Guide.

How To Set Up Charts in APP

TWBS Advanced Productivity Pack (APP) provides tools to create charts from SAP Business One data and present them as either a stand-alone Chart or as an element of a Dashboard.

How To Create an SAP Business One Query

All APP charts are based on an SAP® Business One Queries. Queries can be developed using Query Generator, Query Wizard, or direct entry in the query editing window.

Save the query in the standard fashion. It may be appropriate to create a special category in Query Manager as a common place to hold APP-related queries; however this is not a requirement.

In some cases the query execution process in APP can encounter issues with very complex queries. Therefore if your query utilizes multiple JOIN statements or includes multiple summary functions (SUM, AVG, etc.) we recommend that the actual query statement be created as a View in the SQL database. The query in SAP® Business One is then simply SELECT * FROM [SQL View Name] (NOLOCK).

How To Register the Query in APP

image281.jpeg

How To Create an APP Chart Definition

image282.jpeg

image283.jpeg

The query statement for the report definition is displayed in the upper part of the screen. Any previously defined charts associated with the report definition are displayed in the list on the left side of the form. Click on an existing chart definition to modify it or click Define New to create a new/additional chart definitions.

APP can now support multiple Y-axis charts.

Some chart types are not appropriate for certain data sets. For example, if your data set contains both positive and negative values a Pie or Doughnut chart will not display correctly. If you are not sure if a particular chart type will work simply try it. If the results are not what you expected try a different chart type.

At least one of axis values must be numeric.

image44.jpeg

Query Tips and Tricks for APP Charts

Dates

Assume that the current date is May 15, 2020 for the following examples.

Parenthesis () are required since this is a SQL function.

Numbers

The user interface for SAP® Business One displays decimal numeric values based on the Display tab setup which can be accessed the SAP menu option for Display under the Administration -System Initialization -General Settings -Display menus.

the Administration image35.jpeg System Initialization image35.jpeg General Settings menu groups to load the General Settings screen.

However, decimal values are stored in the database to six-decimal precision. This means that a decimal value such as US Dollars that is displayed in SAP® Business One as 100.00 will be retrieved and displayed in the APP Charts as 100.000000. The number of decimals can be controlled by the SQL statement in the query. Combinations of cast and round can be used to arrive at a reasonable display value.

How To Use APP Charts

Once an APP Chart has been created it is available for viewing via the right-click menu from the SAP® Business One form to which it is assigned.

image286.jpeg

Selecting a menu option in the Charts sub-menu will load the chart data into the TWBS Chart Viewer screen. The screen has a number of menu options available to the user.

image287.jpeg

image288.jpeg

The complete list of chart types is not shown in this illustration. Additional chart types are added as buttons for this display session only.

Some chart types may not be appropriate for the data being reported and so may not display correctly.

Printing Charts

Delivering Charts

Chart Data Grid

image290.jpeg

image292.jpeg

image293.jpeg

Grouping function is available only in the Data view of a chart. The results are not used to change the presentation of the chart nor can the results be printed or exported.

image44.jpeg

How To Group Data in an APP Chart

This example is for the Sales by Customer query.

image161.jpeg

image162.jpeg

image294.jpeg

image295.jpeg

image165.jpeg

image166.jpeg

Information on both the Data and Chart tabs will update in real-time as columns are selected for grouping.

image44.jpeg

How To Filter Data in an APP Chart

This example is for the Sales by Customer query.

image161.jpeg

image162.jpeg

image294.jpeg

image295.jpeg

image170.jpeg

image171.jpeg

image172.jpeg

Information on both the Data and Chart tabs will update in real-time as values are selected for filtering.

image296.jpeg

image44.jpeg

How To Set Up APP Advanced Delivery

TWBS Advanced Productivity Pack (APP) includes functionality called Advanced Delivery. This functionality allows a user to select a group of records (e.g. a specific group of Business Partners) and deliver (e-mail or fax) and/or print associated documents for this group of records. This section describes the steps used to define and execute the APP Advanced Delivery functions.

There are three steps required to set up the APP Advanced Delivery functionality…

image44.jpeg

How To Create an Advanced Delivery Query

Create an SAP® Business One query to retrieve the data elements that you may want to use as filters in the document delivery process. The query must be saved before opening the APP Report Definition function. Otherwise the query will not be available for use.

Save the query in the standard fashion. It may be appropriate to create a special category in Query Manager as a common place to hold APP-related queries; however this is not a requirement.

In some cases the query execution process in APP can encounter issues with very complex queries. Therefore if your query utilizes multiple JOIN statements or includes multiple summary functions (SUM, AVG, etc.) we recommend that the actual query statement be created as a View in the SQL database. The query in SAP Business One is then simply SELECT * from [SQL View Name] (NOLOCK).

SAMPLE QUERIES

QUERY LIMITATIONS

image44.jpeg

How To Create an APP Report Definition

General Tab

Create a basic Report Definition. The Report Definition for a sample Advanced Delivery setup is shown below.

image298.jpeg

Delivery Preferences Tab

Delivery Preferences is information about how a report/document is delivered. Click on the Delivery Preferences tab. Create a new E-mail Message ID. The message will be used to format the contents of the outgoing e-mail message and to assign the Query to be used to filter the Advanced Delivery selection list.

image299.jpeg

Create a new Message ID

image44.jpeg

How To Set Up Advanced Delivery Configurations

Advanced Delivery Definitions can be added from the Report Maintenance screen.

image300.jpeg

image301.jpeg

Advanced Delivery Definitions can be created from the Advanced Delivery function of the APP Reports menu.

image302.jpeg

image44.jpeg

How To Edit an Advanced Delivery Configuration

Advanced Delivery Definitions can be edited from the Report Maintenance screen.

image303.jpeg

image304.jpeg

image44.jpeg

How To Clone an Advanced Delivery Configuration

Advanced Delivery Definitions can be cloned from the Report Maintenance screen.

image303.jpeg

image305.jpeg

image44.jpeg

How To Remove an Advanced Delivery Configuration

Advanced Delivery Definitions can be removed from the Report Maintenance screen.

image300.jpeg

Once a definition has been removed from the system, it cannot be recovered and must be recreated manually.

image44.jpeg

How To Execute APP Advanced Delivery Definitions

How To Execute Previously Defined Advanced Delivery Definitions

To select a group of records…

  • Click the checkbox of the first record
  • Hold down the SHIFT key
  • Click the checkbox of the last record
  • All records between the two check boxes are selected.

To select a mixed group of records…

  • Click the checkbox of the first record
  • Hold down the CTRL key while selecting the desired records.

Define and Execute an Advanced Delivery Definition

A special or one time Advanced Delivery Definition can be created and executed from the Advanced Delivery function of the APP Reports menu. This definition can also be saved for reuse.

image302.jpeg

To select a group of records…

  • Click the checkbox of the first record
  • Hold down the SHIFT key
  • Click the checkbox of the last record
  • All records between the two check boxes are selected.

To select a mixed group of records…

  • Click the checkbox of the first record
  • Hold down the CTRL key while selecting the desired records.

image44.jpeg

How To Use APP Pivot Grids and KPIs

A detailed video highlighting the process of setting up Pivot Grids, manipulating Pivot Grids in real-time for extensive data analysis, and setting up key performance indicators (KPIs) is available on our TWBS YouTube Channel. A direct link to the video is provided below.

TWBS APP How To Set Up Pivot Grids and Utilize KPIs

image44.jpeg