The purpose with this page is to provide a step-by-step guide how to, in IFS
Connect, create new routing rules and how to use them effectively to direct
outgoing e-Invoices to different locations, destination addresses.
Use this page when you want to learn more about how to configure IFS Connect
for sending of e-Invoices.
Navigate to Integration / IFS Connect /
Routing Rules
Select the Outbound tab
Select Create New in the menu bar
Select APPLICATION_MESSAGE to route
from and ensure the checkbox Enabled is
selected
Enter a proper description in the Description
field
Select the OUT1 queue
Press New in the Content based conditions area
Select MESSAGE_FUNCTION as
Search Criteria (Search),
equals as Operand
(Op) and SEND_EINVOICE_MESSAGE as
Matching Criteria (Match)
As optional conditions you can use the Address
defined in Message Setup or the
Customer ID to route the E-Invoice to
different addresses
Using Address in
Customers Message Setup as a
Content based condition
Press New again in the Content based conditions area
Select RECEIVER as
Search Criteria and
equals as
Operand Criteria
As Matching Criteria select the desired Address defined in
the Message Setup tab in the Application
Base Setup / Enterprise / Customer /
Customer window
Using Customer ID as a
Content Based Condition
Press New again in the Content based conditions area
Select C16 as
Search Criteria and
equals as
Operand Criteria
As Matching Criteria select the
relevant Customers Identity
Select Destination Address link and
choose the Destination Address dedicated to
the scenario given in Content based conditions
Press OK
If you have selected several addresses you have to set which of them to
be the main address by pressing RMB on one of them and select
Set as Main Address
Select Save in the menu bar
Routing Rules will be selected according to the following rules
Most importantly all the Content based
conditions should match
If there are more than one Routing Rule with all the
Content based conditions matching then the
process will select the Routing Rule with most
Content based conditions
If there is more than one Routing Rule with same number of matching
Content based conditions then the process
will select the Routing Rule which is created first
It is advisable to not rely on the created date/time of the Routing Rule
and instead make more specific Content based
conditions
Please refer to different scenarios below to get an idea on how to
set-up different routing rules to suit different routing needs
Sending all e-Invoices to the same address is simply achieved by having a
single routing rule defined with only the
MESSAGE_FUNCTION as the Content based condition
In this scenario it is requested to send an e-Invoice to different
Destination Addresses with respect to different
addresses defined in Message Setup basic data
for a Customer
First it is necessary to create separate Routing Rules for each address defined
in the Customer’s Message Setup. Then the
Content based conditions are used as follows,
Search Criteria (Search) set to
RECEIVER
Operand Criteria (Op) set to
equals
Matching Criteria (Match) set to
<Value of the corresponding Address in Customer's Message Setup address
field>
Perform step 1 to 3 for each Routing Rule
Now connect the different Routing Rules to the appropriate Destination
Address where the E-Invoice should be sent
ADD_SERVER defined in the
Address field in
Customer's Message Setup field
ADD_EMAIL defined in the
Address field in
Customer's Message Setup field
In this scenario it is requested to send an e-Invoice to different
Destination Addresses with respect to multiple
criteria, like e.g. the Customer Identity and the Customer Address in the
Message Setup.
To achieve this it is necessary to create a Routing Rule with conditions an
MESSAGE_FUNCTION, RECEIVER and C16.
Assume that the following Routing Rules have been defined.
Routing Rule
Content based condition
Rule 1
RECEIVER = ADDRESS1
Rule 2
C16 = CUST1
Rule 3
RECEIVER = ADDRESS2
Rule 4
RECEIVER = ADDRESS3
Rule 5
RECEIVER = ADDRESS3 AND C16 = CUST2
Rule 6
RECEIVER = ADDRESS4 AND C16 = CUST2
Note: MESSAGE_FUNCTION = SEND_EINVOICE_MESSAGE is common
for all Routing Rules in this case and is not shown in the table.
The system will pick Routing Rules according to the following,
CUSTOMER
Address (Message Setup)
Routing Rule
Comment
CUST1
ADDRESS2
Rule 2
Rule 2 is picked with the assumption
that Rule 2 is created before
Rule 3, else Rule
3 could be picked. Avoid ambiguous situations like this.
CUST1
ADDRESS1
Rule 1
Rule 1 will be picked if it was created
before Rule 2, else
Rule 2 will be picked. Avoid ambiguous
situations like this.
CUST2
ADDRESS2
Rule 3
CUST2
ADDRESS3
Rule 5
This rule has more details than Rule 4
CUST2
ADDRESS4
Rule 6
Note: When there are two or more Routing Rules that satisfy the
condition, then the most content based condition will be picked.
If number of content based conditions is also equal then the first created
Routing Rule will be selected.
Therefore make sure to add more content based conditions to avoid ambiguous
scenarios
Sending e-Invoice information leads to the following,
Outgoing data is processed and an internal send e-invoice XML schema is
created.
The internal XML is transformed to a schema called IFSEinvoice. This schema
is an external schema but with a few modifications for IFS e-Invoice
functionality.
The IFSEinvoice schema can now be further processed, transformed, according
to customer needs.