cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi Experts, I have a requiremnet to fail the mapping if value mapping lookup (standard valuemapping) fails...

For example

vendor --111 --valuemaplookup to aaa ---target =aaa

if vendor 222 does not have value defined in value map table it has to fail the mapping...I am not sure its not working its outputting 222 in the target , any idea whats the cause.

Regards

Ravikiran

0 Likes
View Entire Topic
Former Member
0 Likes

you can try this:

add one UDF after value mapping...this UDF will compare the output of value mapping and input source value,
in case if both are same then it will throw a runtime exception

input will be a and b
execution type: single value

if(a.equals(b))
{
throw new RuntimeException();
}
else
return a;

Chk this also:
http://scn.sap.com/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphi...

Former Member
0 Likes

This is what I was looking for worked like charm...not sure how to give points to you...this new feature and look ,looks like a crystal maze