Skip to Content
0
Former Member
Dec 06, 2008 at 10:58 AM

Value Mapping - N:1 Mapping

123 Views

I need to create a value mapping like this

A --> 1

B --> 2

C --> 2

D --> 2

E --> 3

So that if the source field has 'A' the value mapping returns 1 and if my source field has 'B' or 'C' or 'D' it should return 2.

When I create this in value mapping table, it doesnu2019t accept and gives an error saying it is a duplicate mapping entry.

I know that value map tables are mean to hold two way data mappings and hence doesnt allow what I'm trying to do here, but still is there a standard way to do this ?

I dont want to use FixValues function here since this value map table would be used by other message mappings too and hence if I go for a FixValues function I would have to create it in every mapping (hence not a good solution).

I also want to avoid non standard techniques like entering unique values in the value mapping table and later do a string function in the message mapping to cut out the actual value as mentioned by grube in some blog i read.