cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping : IF...then

Former Member
0 Kudos

Hi

How to make us of 'if else' conditions in graphical mapping. I need to map a field only if it satisfies a condtion....say the target field 'F1' should be mapped only when the source field 'S1' equals 'F'.

Thkx

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206604
Active Contributor
0 Kudos

Hi Shruthi,

You can use "Equals" function comes under "Text" section.

Equals takes in 2 inputs, first you can give the source filed and the second field as constant "F". ZGive the output of Equals to IF, Then Source field.

Thanks,

Prakash

prabhu_s2
Active Contributor
0 Kudos

Prakash

i did as instructed but when i test the mapping i got error message " Mapping object abpm3_sourceABS incomplete. Unable to continue execution"

thkx

prabhu_s2
Active Contributor
0 Kudos

Thkx prakask. Was able to get it. I didnt map properly.

former_member206604
Active Contributor
0 Kudos

Hi,

Did you try this way


SField      --->
                  [EqualsS] ---> 
Constant(F) --->                 [IF] ---> TField
                     SField --->

Make sure TField minoccurs = 0

If your TField minoccurs = 1 the Use IF Then ELSE and use a Constant(with bllank valu) in the Else part

Thanks,

Prakash

Former Member
0 Kudos

Solved. cheers

Former Member
0 Kudos

Prabhu,

As praskash said you got to link the 'Equals' condition to the 'If' and the source field to the 'Then'. When you test the mapping give the value which will satisfy the if condition or the target xml will not be generated.