cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Query

Former Member
0 Kudos

Hi Experts,

I have a mapping requirement in which the sender system is sender a field suppose A1 to receiver field suppose A2.

Now, the condition is that if the field comes with a value 'Not Applicable' then that tag A2 is not to be created on the target side.

Otherwise create with a value A1. Now, I tried to use createif function in SAP PI, but it's not helping.

Please let me know.

Regards,

Aniruddha

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

dont use create if function,use booleans equals with if then combination,

A1---------->
                       booleanequals------------>
CONSTANT-->                                           IF THEN---------------------->A2
                                                     A1----->

if your condition satisfies then only A2 will have A1 vaues,elase A2 not get populated.,

and A2 occurance should be 0 to unbounded.

Regards,

Raj

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Use mapping step as mentioned by AmitSri. It should work fine.

Regards,

Nayan

Former Member
0 Kudos

Hi,

Thanks a lot for your response, but my problem is that in the target if it comes as 'Not Applicable"

then I will not create the tag at all, so it is not that i will not populate any values in the target field, the target field itself will not be

created in this case.

Regards,

Aniruddha

Former Member
0 Kudos

A1---------->
       ---------------------------equals ---Not----IfwithoutElse( A1 ----THEN)------A2
Constant(Not Applicable)---

former_member854360
Active Contributor
0 Kudos

Use ifwithoutelse for your requirement

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Use ifwithoutelse and equalsS function to achieve this. This is pretty simple.