cancel
Showing results for 
Search instead for 
Did you mean: 

Suppress Value

Former Member
0 Kudos

Is it possible in the value mapping to suppress a value.

So lets say I have the following

A = 1

B = 2

C =

D = 4

Is it possible to make it so c doesn't produce a target field.

So if I set my occurence on my target field XXX to 0 - unb

in the case of C above XXX will not appear in the target

is this possible and if so then how

Accepted Solutions (0)

Answers (6)

Answers (6)

deviprasad_pothireddy
Active Participant
0 Kudos

Hi Ricardo,

Also know the mapWithdefault function

Ref this blog /people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13

(reward points if it is helpful )

Regards,

Deviprasad.

Former Member
0 Kudos

HI,

Your proble is simple, because , if you made the target field as 1..1 then youshould map and should contain the value also,due to that reason you have to made it occurr . as 0..1 or 0..unbound.

then it will work even thou your source does not contain any value..

..

the other thing .. after changing the target field occurr as 0..1 or 0..unbound,

then use the following mapping if required..

source field existscreatif--targetfield

please let meknow your problem solved or not...

Regards

Chilla..

prabhu_s2
Active Contributor
0 Kudos

can u try using <b>exists</b> in a <b>if</b> condition. Map the <b>source</b> to <b>exists</b> thru <b>if</b> and the result of <b>if</b> to <b>target</b>. this shud help

Former Member
0 Kudos

OK but isnt a creat if a node function and isnt an IF a boolean function... so you cannot use in this scenario?

Former Member
0 Kudos

Mario can you clarify that please... I share the same probem but when I try something like that I get a mapping error referring to cannot cast to booloean type error message

Former Member
0 Kudos

Hi,

your problem is, taht you do not distinguish between <i>text</i> und <i>boolean</i> variables.

For. e.g. If you want to compare texts, you have to use the EQUALS under the text-functions not the boolean-functions!

But in both cases you will get as a result an boolean variable!

Samples:

<u>EQUALS (text)</u>

input # 1 MARIO

input #2 SAPXI

output = false

<u>EQUALS (boolean)</u>

input # 1 true

input #2 true

output = true

So, if you are dealing with texts, make sure u use the correct function!

Regards Mario

Former Member
0 Kudos

Yes,

use CREATEIF

1) First: IF element.length <> 0

2) CREATEIF

Thats it!

Regards Mario