Dynasys is daily refreshed from BW and SalesForce.
A global and unique process (common to all instances of one company) allows to manage files provided by those two applications. The goal is to :
Results of import flows are centralized into DYS_GLOBAL_IO_FLOWS table, filtered on Flow_type = 'DYN_IN' and Flow_Sub_Type = 'Import_Files' and Activated = '1'

> Flow_Table = name of the inbound file without its extension
> Original_Date = date of the last file imported in U00
> Last_Exec = date of the last file proceed
Here's the algorithm dedicated to inbound csv files :

If current day = Monday, the file must have been generated on Day-1 at the latest
Otherwise, the creation date of the file must be Day 0.
The setting file D:\DynaSys\Batchs\Settings\dscp_settings.ini on the backend server contains a list of files to exclude.
If the file is part of this list, it won't be processed.

The list of files in which infinity values are replaced by zero are defined in the setting file :

Files to convert to Unicode Standard are listed in the setting file :

Once the file is uploaded into its TEMP table, then the related line of DYS_GLOBAL_IO_FLOWS table is updated :
If the file is defined in the list of excluded files, then the related line of DYS_GLOBAL_IO_FLOWS table is updated :
This process allows to force some values in TEMP tables or remove lines that are not consistent.
For example :
Content of TEMP tables may be controlled to guarantee some consistency : we talk about integrity controls (IC).
Different types of IC are predefined in Dynasys application.
An IC is always assigned to one table, several IC can be set up to check one table.
Four types of IC :
If all IC assigned to one table are verified, then this TEMP table is copied into its "twin" BCKUP table.
Otherwise, the TEMP table is refreshed from BCKUP table.
Integrity controls are defined into DYS_GLOBAL_IO_FLOWS table, filtered on Flow_type = 'DYN_IN_IC' and Activated = '1'
