Parameterization
This page shows how to parameterize the Xtract OHS component using SSIS variables directly in the component and by using SSIS expressions to set Data Flow Properties.
Parameterization using Expression Properties
The recommended way of parameterization is to use SSIS expressions to set Data Flow Properties. Data Flow Properties are displayed in the "Properties" window of the Data Flow Task.
Note
Data Flow Properties are not to be confused with Custom Properties that are displayed in the "Properties" window of the component. When parameterizing the Data Flow Properties, the Custom Properties are overwritten.
For more information on property expressions, see Microsoft Documentation: Use Property Expressions in Packages.
- Right-click the Data Flow canvas and select Properties. The window "Properties" opens.
- Add an Expression by clicking using […]. The window "Property Expression Editor" opens.
- Select a property from the drop-down list under Property.
- Open the "Expression Builder" using the […] button under Expression.
- Build your Expression and click [Evaluate Expression] to check for correct syntax.
- Confirm your input with [OK].
Data Flow Properties of Xtract OHS
List of Data Flow Properties that can be parameterized:
Property Name | Description |
---|---|
[Xtract OHS].[ConvertsDates] | Enable or disable conversion of SAP dates, see ConvertsDates. |
[Xtract OHS].[ConvertsTimes] | Enable or disable conversion of SAP times. |
[Xtract OHS].[MinDateReplacement] | Converts the SAP date 00000000 to the entered value, see MinDateReplacement. |
[Xtract OHS].[MaxDateReplacement] | Converts the SAP date 9999XXXX to the entered value, see MaxDateReplacement. |
[Xtract OHS].[InvalidDateReplacement] | Every invalid value will be converted into the entered value, see InvalidDateReplacement. |
Custom Properties of Xtract OHS
The Custom Properties are properties that are unique to the component. When parameterizing the component using SSIS variables, the Custom Properties are overwritten.
The Custom Properties of the Xtract OHS component are displayed in the "Properties" window.
ConvertsDates
When this property is set to True (default) SAP date fields (YYYYMMDD) assume the SSIS pipeline type DT_DBDATE instead of DT_WSTR. For the date conversions to apply, set the property UseLegacyDateConversion to False. In case of invalid data in SAP date fields, the following date conversions are applied:
- InvalidDateReplacement
- MaxDateReplacement
- MinDateReplacement
InvalidDateReplacement
Replaces an invalid date format. The default value is 1970-01-02. To use the property enter a replacement value for invalid SAP dates, such as '20190132' (January 32nd 2019) in the format yyyy-mm-dd. The value NULL is supported.
MaxDateReplacement
Replaces SAP dates with the year 9999. The default value is 2099-12-31. To use the property enter a replacement value in the format yyyy-mm-dd that contains the year ‘9999’. Example: ‘99990101’ (January 1st 9999). The value NULL is supported.
MinDateReplacement
Replaces SAP dates with the year 0000. The default value is 1970-01-01. To use the property enter a replacement value in the format yyyy-mm-dd that contains the year '0000'. Example: '00000000'. The value NULL is supported.