How can I ( if possible ) set a UD static value from a data source based on contents of a column
Hi,
I have a data source, where the leading character of the alphanumeric values in the column are used to identify if the row value should be assigned to a particular dimension field in a UD. The complex expression here will display results in the error log indicating it has found the rows that I want to assign a different value for in the UD, but I don't know how to set that , so that the imported data assigns my UD requirement. Basically I want it so that if the args.value starts with "R" then assign it a value of "R" in the UD2 otherwise, leave it/set it as "None".
Dim sValue As String = args.Value
Dim myValue1 As String = "UD2 R-" & sValue
Dim myValue2 As String = "Ignore"
If Left(svalue,1)="R" Then
BRApi.ErrorLog.LogMessage(si, myValue1)
Else
BRApi.ErrorLog.LogMessage(si, myValue2)
End If
Any thoughts or am I approaching this the wrong way ? I cannot see that I would do this in a transformation rule as it is the source GL code that carries this information.
Cheers all