In order to use KGS DocumentRouter you may provide a configuration file that contains the DataInterface definition, as well as the ArchivingSystem definition and a configuration file that contains the SIDMapping definition.
These three definitions follow a certain structure that will be described in the following sections.
DataInterface definition
The data interface describes the data and positions of data which will be used in the linking process. Index files contain these values and needs to fit the definition. Regularly, the DataInterface is derived from the structure defined from the index file content.
An DataInterface can be defined in 2 types:
Separator based (variable length)
fixed length
DataInterface for sets with variable length |
---|
[<DataInterface name>] |
DataInterface for sets with fixed length |
[<DataInterface name>] |
When using a DataInterface for sets with variable length, it’s necessary to define the separator, which will be used in order split the value data stream and retrieve the values.
Keyname is the name of the variable defined within a DataInterface. The Key type has to be defined as one of the following types. Separator defines a symbol, that will be used when splitting the index file content. Number in Set defines the position of the value within the index file. Default Value can be defined as a fallback or as a static value when no value was found within the index file.
In case of a set with fixed length Length defines the length in characters of the value expected within the index file.
The following Key types are being supported by KGS DocumentRouter.
Type symbol / Type value | Symbol / Value description |
---|---|
B | SAP Business Object (e.g. BKPF, VBRK, etc.) |
C | SAP Content Repository ID (e.g.: FI, BU, FP, etc.) |
D | SAP Archive Document ID |
F | Image file name |
f | The image filename will be taken the same as the index file. |
H | SAP Host |
I | Ignores the value |
L | SAP Language |
M | SAP Client |
N | Defines, that the value will not be handed over to the SAP User Link Remote Function From Version 3.1.39 onward : Defines the Content of the ‘note’ component |
O | SAP Object ID |
P | SAP Password |
S | SAP SystemID |
T | SAP ArchiveLink Document Type (Archiving Object) |
U | SAP User |
X | Defines that this value will be handed over to the SAP User Link Remote Function |
Y | SAP System number |
b | Barcode |
d | Date |
g | SAP Group, which is being used in order to load balance the RFC connection |
m | SAP MessageServer Host, which is being used in order to load balace RFC connection |
n | SAP Client extracted out of the <SAP SID>M<SAP Client>-notation (e.g.: K47M800 will be translated to SAP Client: 800 in SAP SID K47) |
p | ISRA-specific parameter which will be handed over to an ISRA interface |
s | SAP System, which is being used for load balancing purposes |
o | Offset within the image file (F) |
l | Length from the offset within the image file |
The following separators are being supported.
A semikolon → ;
A comma → ,
A vertical bar → |
A hashtag → #
Sample of “DataInterface”-definition |
---|
[BASE_INTERFACE] |
Every row within a DataInterface defines a value. It’s also possible to reuse an already defined value in a DataInterface-definition by putting an @-sign before the values name and, like in the example above, using it e.g. as a fallback / default value.
Archiv Link Connection mapping
It’s often necessary to define one or many connections to the archiving system, so KGS DocumentRouter knows how to communicate with the archive and where to exactly archive the processed documents.
For that reason you may want to define the connection parameters for the archiving system.
The definition file has to be placed in config folder. (defined in instance common tab)
The definition file name can be configure in Archiving tab via config item AL Connection Mapping File.
The file follows this format:
Structure of an archive connection definition |
---|
[_ARC_<Name of the repository>] |
You may define multiple archiving systems in one definition file.
Sample of multiple archiving connection definitions |
---|
[_ARC_FI] [_ARC_TE] |
This definition was in DR3 hold in SIDMappingDefFile.
SIDMapping definition
In document router 4 the SID mapping for linking does not exist anymore via SID mapping file (SIDMappingDefFile).
Instead you can use in schema definition the S like in this example
[foobarInstance] SYSID = X |; |1 | MANDANT = X |; |2 | CONTREP = C |; |3 | LoginCL = S |; |0 |@SYSID@MANDANT
here the index files gives mandant and contrep and the LoginCL variable then contains the SAP connector instance id
or this:
[foobarInstance] CONTREP = C |; |1 | LoginCL = S |; |2 |
in this example the index file directly contains the SAP Connector instance id.
As you see, LoginCLis connected to the Variable S. We see it is concatenated from 2 others. So in index file, the concatenation from place 1 and 2 gives the variable value of LoginCL. This value is pointing to an existing SAP-Connector instance with this name.