...
...
Two possible ways to insert a license for Data Lineage API exist.
We sent you a license file or a license hash. What to do with them is described in the subchapters below.
Using license file
Add the file license.lic into the Core folder.
Insert hash
Windows
Code Block | ||
---|---|---|
| ||
DataLineage.cmd insert-license -l <license hash> |
...
Code Block | ||
---|---|---|
| ||
./DataLineage.sh insert-license -l <license hash> |
Using license file
...
Maintain Connection Data
Normal Connection properties
To maintain the connection data you have to change the appsettings.json file.
Per default the appsettings.json file is empty, but the two connection possibilities are shown (see below).
Code Block | ||
---|---|---|
| ||
{
"BwErpSystemConfigurations": [
{
"BwErpSid": "",
"Languages": [ "", "" ],
"Server": "",
"SystemNumber": "",
"Client": "",
"User": "",
"Prefix": ""
}
],
"HanaSystemConfigurations": [
{
"BwErpSid": "",
"HanaSchema": "",
"SchemaBlacklist": [ "", "" ],
"Languages": [ "", "" ],
"Server": "",
"Database": "",
"SqlPort": "0",
"UseSsl": "false",
"User": "",
"ConnectionString": ""
}
],
"SacSystemConfigurations": [
{
"Url": "",
"TokenUrl": "",
"ClientId": "",
"ExcludePrivateObjects": false
}
]
} |
If you decided on the RFC connection you use the properties below BwSystemConfiguations
. If you decided on the HANA SQL connection you use the properties below HanaSystemConfiguations
.
...
Explaining the properties:
...
Property
...
Meaning
...
Connection
...
Example
...
BwSid
...
The System ID of your BW system
...
RFC & HANA
...
BI2, A4H, …
...
Server
...
The host or IP address of your HANA database
...
RFC & HANA
...
hdb.mycompany.de
...
SystemNumber
...
The system number of the BW system
...
RFC
...
00, 03, …
...
Client
...
The client of the BW system
...
RFC
...
001, 800, …
...
Prefix
...
The prefix of the function module for the RFC connection
since v1.4.0 you can run the Metadata API without installing a function module. In that case you do not have to set it in appsettings file (more infos here).
...
RFC
...
Z_, /MYCOMP/Z_, …
...
UseAlwaysGetString
...
DO NOT USE WITHOUT CONSULTNG BLUETELLIGENCE.
Only works together with the prefix property. Controls that all data for an RFC connection is retrieved via the *RFC_GET_STRING function module.
...
RFC
...
true, false
...
Database
...
The database on your HANA tenant where the BW application is located
...
HANA
...
HN2, HDB, SYSTEMDB, …
...
HanaSchema
...
The schema where the BW application is located
...
HANA
...
SAPBI, SAPA4H, SAPHANADB, …
...
HanaSchemaBlacklist
...
Schemas which should not be analyzed during the process of getting metadata from HANA. It totally make sense to restrict it via the list at least for some technical SAP schemas.
...
HANA
...
["_SYS_AFL", "_SYS_AUDIT", "_SYS_BI", "_SYS_BIC"]
...
SqlPort
...
The SQL Port of your HANA DB.
Normally the SQL Port is 3<instance number>13.
To figure out the SQL Port use this guide or visit the SAP help for more information.
...
HANA
...
30213
...
UseSsl
...
If you have set up and want to use an SSL connection to your HANA database.
...
HANA
...
true, false
...
Languages
...
List of Languages you want to export
...
RFC & HANA
...
[ "E", "D" ], [ "E" ], ["D", "C", "F"]
...
User
...
User for the BW Data Lineage API. The user needs full select rights on the HANA schema of the BW system.
...
RFC & HANA
...
EncryptedPassword
...
Note |
---|
No manual input. The password must be set via command line (see here). In that case a property EncryptedPassword is stored in the appsettings.json file. If you need to use a clear password, please use the connection string. |
...
RFC & HANA
...
Url
...
URL of the SAC instance
...
SAC
...
https://mysacinstance.eu10.hcs.cloud.sap
...
TokenUrl
...
Token URL of the SAC instance
...
SAC
...
https://mysacinstance.authentication.eu10.hana.ondemand.com/oauth/token
...
ClientId
...
Client ID for the OAuth Authentication in SAC
...
SAC
...
EncryptedSecret
...
Note |
---|
No manual input. The secret must be set with the first start of the API for SAC. |
...
SAC
...
true, false
...
ExcludePrivateObjects
...
Handle if the private SAC entities should be included or excluded
...
SAC
...
SplitFilesChunckSize
...
Chunck size to split the Details, Buildups, and BuildupDescriptions file to multiple files by a number of entities.
0 - default. Output 1 file
...
RFC & HANA
...
0, 10000, 1000000
Complex connection properties (HANA connection only)
Instead of using the delivered content of the appsettings.json file, you can use a connection string if you need to set more properties for your HANA database. That is important if you use e.g. proxy servers and users.
For more detailed information you can visit the SAP guide.
Example of ConnectionString:
...
Info |
---|
If you do not insert a password in the connection string you can also set an encrypted password via command line (see here). |
Connection properties for upload
If you want to upload the file directly to a platform you need to maintain the parameters to upload your metadata.
...
In the appsetting.json file you have to configure the connection an other data for running the app.
More information about that can be found here.
Set Password
The following command in the command line sets an encrypted password into the appsettings.json file.
In the following examples, the set password is done for BW-/ERP-systems with an RFC connection. Here the parameter -s <SID> is used. If you have a HANA connection you have to set the password with the parameter -b <HANA HDB>
.
Windows
The following command will open a prompt to insert the password.
Code Block | ||
---|---|---|
| ||
DataLineage.cmd set-password -s <SID> -p <password> |
Command for versions < 1.2.5
DataLineage.cmd set-password -s <SID> -h <HANA Schema> -p <password>
Unix
The following command will open a prompt to insert the password.
Code Block | ||
---|---|---|
| ||
./DataLineage.sh set-password -s <SID> -p <password> |
Command for versions < 1.2.5
./DataLineage.cmd set-password -s <SID> -h <HANA Schema> -p <password>
...