cancel
Showing results for 
Search instead for 
Did you mean: 

check null value in value mapping

Former Member
0 Kudos

Hi,

i have a problem with a message mapping (inside BPM).

There is a value mapping with a null value (error: value not found). In this case the BPM exists with error.

A normal Message Mapping(without BPM) will get the output value equal to the input value, if no entry found.

Is there a possibility to handle the null value (value not found) ?

Regards,

Gordon

Message was edited by: Gordon Breuer

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gordon,

your Question is a little bit confusion.

There is no differenz between message mapping inside/outside BPM.

Could you give more details.

What do you mean by NULL-value. Do you mean the node does not exist?

If yes: Try the function "exists"

Regards Mario

Former Member
0 Kudos

Mario you are right, it´s alittle bit confusing.

OK.

Value Mapping

from xxx to yyy

from zzz to mmm

Our message mapping has the input value xxx and the output value will be yyy.ok ?

In some cases the value is not existing in the value mapping.

Example: Our message mapping (in BPM with container and second message as ABAP mapping) has the input value aaa and the BPM gets in error because the value is not existing in the value mapping.

Another message Mapping works fine. If the Value is not existing in the Value mapping, the output value will be same like the input value.

any ideas to handle this error ?

Former Member
0 Kudos

Hi Gordon,

why don't you use an UDF?

public String MyValueMapping(String inputField,Container container){


+if(inputField.equals("AAA"))
{return "BBB"; }
if(inputField.equals("CCC"))
{return "DDD"; }
if(inputField.equals("XXX"))
{return "ZZZ"; }

// no matching entry found:
return inputField;+

}

Regards Mario

Message was edited by: Mario Müller

Former Member
0 Kudos

1. that´s no good idea. the value mapping could be managed by a the account manager but the java could not be managed by him.

2. There are more than 30 entries.

any other ideas ?

temp. solution is to use an fixed value mapping with else function...it works fine !

Former Member
0 Kudos

Hi Gordon,

first I would try to find the difference between

a) mapping <b>OK</b> although the is no value in the value table for a certain value

a) mapping <b>KO</b> although the is no value in the value table for a certain value

There must be a difference!

I guess this is the way to solution

Regards Mario

Former Member
0 Kudos

oh dear... i found the error.

i have a substring after the value mapping and the input value is smaller than the substring start

sorry for any inconvenience.

Gordon

Former Member
0 Kudos

was a pleasure!

You found it!

regards Mario