TV 3.7.0
Before one can add settings to a bdomain, the bdomain has to exist first. Therefore, the first chapter of the following HowTo Guide has to be followed, before continuing with this guide:
To add settings to a bdomain which should be used for file imports, the script API_CFIADM.ADD_BDOMAIN_SETTING is used.
Here the name of the bdomain that just has been created has to be provided as well as the offset in hours if the change of business days should not occur at midnight, otherwise the default value will be used, which is 0.
The following command shows an example on how to add bdomain settings.
EXECUTE SCRIPT API_CFIADM.ADD_BDOMAIN_SETTING(
'TESTING' -- p_bdomain
,6 -- p_bdate_start_offset
);
Issuing this command results in a new entry in the table CFIADM.CFI_BDOMAIN_SETTINGS.
bdomain | bdate_start_offset |
---|---|
TESTING | 6 |
If one wants to modify the CFI bdomain settings of a bdomain, the script API_CFIADM.MODIFY_BDOMAIN_SETTING can be used. As the only two parameters of this function are the name of the bdomain and the business date offset and the bdomain name is required and therefore cannot be changed, this script can only be used to modify the offset in hours.
The following example shows how to modify the mentioned offset.
EXECUTE SCRIPT API_CFIADM.MODIFY_BDOMAIN_SETTING(
'TESTING' -- p_bdomain
,0 -- p_bdate_start_offset
);
After running the command above the entry for the bdomain 'TESTING' in the table CFIADM.CFI_BDOMAIN_SETTINGS will have changed as can be seen below.
bdomain | bdate_start_offset |
---|---|
TESTING | 0 |
To remove CFI bdomain settings from a bdomain one only has to provide the name of the bdomain the settings should be removed from to the script API_CFIADM.REMOVE_BDOMAIN_SETTING as can be seen in the example below.
EXECUTE SCRIPT API_CFIADM.REMOVE_BDOMAIN_SETTING(
'TESTING' -- p_bdomain
);
After issuing the command above the entry belonging to the bdomain 'TESTING' will have been removed from the table CFIADM.CFI_BDOMAIN_SETTINGS.