cancel
Showing results for 
Search instead for 
Did you mean: 

Condition in Graphical mapping

Former Member
0 Kudos

Hi

Can anyone give the graphical mapping for the If then Else condition

If Date1 <> 0

Move T to Var1

else

Move F to Var1

Thanks

PR

Edited by: PR on Mar 19, 2009 9:53 PM

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Thanks

PR

Former Member
0 Kudos

Yes, as mentioned above best way for this problem is to use the "Fixed Value Table". Maintain the values in fixed value table and then you don't have to use any conditions. Mapping will be simple 1 to 1 like this..

Values in Fixed Value Table
Key       Value (default is F)
0          T

Date1 ---> Fixed Value Table ---> Var1

Regards,

Sarvesh

Former Member
0 Kudos

hello PR,

below is the message mapping.

/ns0:mt_t_test=/ns0:mt_s_test /ns0:mt_t_test/var1=iF(const(value=T), stringEquals(/ns0:mt_s_test/date1, const(value=0)), const(value=F))

Former Member
0 Kudos

You can do this with a simple fixed value mapping with Date as input:

1 -> T

0 -> T

otherwise -> F

Thanks

Damien

Former Member
0 Kudos

Hi,

You can use the IF else funtion and the contants like this and do the mapping between the source and target field

Date> equalsS-> Constant <0>-->IF>THEN--


>CONSTANT<T>> ELSE--
>CONSTANT<F>
> VAR1

Regards,

Nithiyanandam

Edited by: Nithiyanandam A.U. on Mar 20, 2009 5:30 AM

Shabarish_Nair
Active Contributor
0 Kudos

>

> Hi

>

> Can anyone give the graphical mapping for the If then Else condition

>

> If Date1 <> 0

> Move T to Var1

> else

> Move F to Var1

>

>

> Thanks

> PR

>

> Edited by: PR on Mar 19, 2009 9:53 PM

source field DATE1 ->                 then -> Constant T
                              EqualsS -> IF                         |------ Target
      Constant 0   ---->                  else -> Constant F

Former Member
0 Kudos

Hi

Source Element (Date) ---> (IfElse) Function --->True (Contant function "T" --. Var1) --> Else false (Contant function "F" --. Var1)

RGDS

SRINI