Setting Up an External Financial Interface

SyteLine provides an XML-based interface that can be used with an external financial system such as Infor SunSystems or SAP. Also, SyteLine provides a direct data access interface for Infor Global Financials (IGF). You can choose which types of financial information to export or import between SyteLine and the other system.

NOTES:

This topic includes the following subtopics:

Setting Up an External Financial Interface (SyteLine to External Financial System)

When setting up the interface, use the following information and instructions:

Concepts

  1. Since the external financial interface uses non-transactional replication as its method of transferring data, be sure you understand how replication works.

    For more information, see the Replication Reference Guide, available from our support site.

  2. Make sure you understand the distinction between data flow (transaction records being passed from SyteLine to the external system) and data maintenance (the updating of "code" records such as customer codes, terms codes, or exchange rates that might be passed from SyteLine to the external system, or vice versa). Decide which system will be the "master" for accounts payable and accounts receivable tasks.
  3. Become familiar with both the SyteLine database structure and that of the external financial application. Map the financial data that needs to flow between the systems, noting the system in which the data should be maintained.

    The SyteLine DataMap's Schema-Properties spreadsheet, which lists SyteLine database tables and columns, could provide a good starting point for a mapping plan.

  4. Become familiar with the syntax of the XML request documents used to pass data to and from SyteLine.

    For more information, see the document Integrating IDOs with External Applications (especially the chapter on XML IDO request and response documents), which is available from our support site.

Site/Intranet Preparation

  1. In the System Types form, create a new system type for the external financial application.

    This system type is used when defining the target site for the external financial application in the Sites/Entities form.

    Make sure that an additional system type is defined for your SyteLine application.

    The source and target system types are used in the names of XSL stylesheets that can be used to transform the XML data. For more information, see the System Types Help topic.

  2. In the Intranets form, define a separate intranet to be used only for data requests to and from the external financial application. Name this intranet something unique, such as EXTFIN, and select the External check box.

    For this intranet, specify the URL to which the financial XML request/response documents will be posted. This URL should be entered in the URL field on the Intranets form. This URL could be an ASP page on the external financial system that receives and processes the XML from the SyteLine message queue. The processing done at this URL is up to you. For example, an ASP page might map the data into the proper format for the external system, or it might write the XML documents to a location on its server for later processing.

  3. On the Sites/Entities form, define a source site from which system data will be exported:
  4. On the Sites/Entities form, define a target site for the external financial interface.

    NOTE: This site must not be used for any other purpose. To avoid confusion, we suggest you name the site EXTFIN.

  5. On the Site User Map tab:

For more information about setup requirements for this user, see the online help for this tab and field.

Interface Parameters

  1. Decide whether you want to export invoices, debit memos, and credit memos, and/or vouchers and adjustments, to the external financial system. Use the fields on the External Financial Interface Parameters form in SyteLine to specify this information:
  2. Decide whether you want to modify the standard SyteLine processing for Due Date Calculation, Tax Calculation, or Currency Conversion. On the External Financial Interface Parameters form, you can choose to use external processing for any or all of these. If you select external processing, you will need to modify one or more of these "stub" stored procedures to do what you want:
  3. Decide how you want to handle customer credit checking.

    When SyteLine performs a credit check for a customer, it needs the customer's current posted balance. If SyteLine is used for A/R functions, it has all the information it needs to calculate and store posted balance amounts. However, if the external financial system is used for A/R functions, then SyteLine must get the posted balance from the external system. There are two ways to do this:

Replication Setup

  1. Look at the default external financial (EXTFIN) categories in the Replication Categories form, and decide if you need to add any new categories.

    For instance, is there data in other SyteLine tables that your external financial system will need? We recommend that you leave the default categories as is, and create new ones as needed. The default EXTFIN categories are listed here:

  2. NOTE: A table name can be represented by the name of a view over the table. This section uses view names in place of table names, where appropriate.

    Processing note for customer and vendor records: When a new customer or vendor record is added in SyteLine, the information is sent to the external financial system as a single XML document combining the information from the sibling tables, customer/custaddr or vendor/vendaddr, respectively. The information for custaddr or vendaddr in the single XML just contains the specified key values and default values for the table's columns. The user-specified values will be included as part of an update that follows the insert. However, for updates to existing customer or vendor records, the XML document pulls records only from the table that changed.

  1. Create one replication rule for each EXTFIN category, using the Replication Rules form.

    This must be done for each SyteLine site where you will be exporting data to the EXTFIN site. If you created additional categories for your external financial system in the previous step, set up rules for the new categories, too.

    A sample rule would include information such as the following:

    Source Site: OH (the site from which data will be extracted)

    Target Site: EXTFIN

    Category: EXTFIN Vendor

    Description: Pass vendor info to EXTFIN

    Interval Type: Immediate (anything but Transactional will work here)

    Interval: (Blank if Interval Type is Immediate; some interval value otherwise)

    Start Interval at: (Blank if Interval Type is Immediate; a time value otherwise)

    Disable Replication: (Cleared - EXTFIN uses replication)

    Update All Columns: (Cleared)

  2. On the Replication Management form, click the Regenerate Replication Triggers button to rebuild the database table triggers based on the rules you created in the previous step.
  3. Stop and start the replication services on the SyteLine utility server.

XML Document Creation

Again, in these examples, we use view names in place of actual table names.

  1. Set up the URL (which was specified in Step 6) on your external financial system to retrieve and process the XML documents mentioned in Step 12. <UpdateCollectionName="Table!replication_category_to_object_name">

    For example: <UpdateCollectionName="Table!Customer">

    The external financial system is expected to respond to these "update collection" requests by updating the data in the external financial application.

Your external financial system should use the information in these tags to determine how to process and map the data in each XML document. The import process on the external system must also handle the batch_seq information in the XML document.

For information about the syntax and tags used in the XML documents, see the document Integrating IDOs with External Applications, especially the chapter on XML IDO request and response documents.

Samples of the outbound XML documents that may be generated from SyteLine are available in ZIP files from our support site.

Setting Up an Incoming Financial Interface (External System to SyteLine)

To set up an interface that updates the SyteLine database with financial data from the external system, create XML documents that access the SyteLine IDO collections. The process and syntax of using XML documents for data transfer to SyteLine is described in the document Integrating IDOs with External Applications available from our support site.

Then set up your external system to post the XML documents to the SyteLine mailbox, using the HTTP POST protocol.

The SyteLine External Financial Interface Data Request Utility can be set up to request updates to specific SyteLine database tables from the external financial application. Depending on your external financial application's requirements, you may be able to use this utility as a starting point for setting up your application. For more information, see Updating SyteLine Data from Data in an External Financial Application.

NOTE: For Infor Global Financials (IGF) integration, only Chart of Accounts, Currency Codes, and Currency Rates can be selected on the Table tab. All fields are available for use on the Customer Posted Balance tab. The IGF integration uses direct data access with this utility to retrieve data for SyteLine.


Related Topics

Example: Requesting Data from an External Financial Application

Handling Replication Data and Communication Errors

Updating SyteLine Data from Data in an External Financial Application