cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error using Mapping

former_member740482
Participant
0 Likes
688

Dear experts

I am doing an Mapping using this file:

entrada.xml

And I need transform the value of the field gender

IF gender = M

gender = "Mujer"

ELSE

gender = "Hombre"

However When I amd testing appear the following message of eror:

What is the cause of this error?

Accepted Solutions (1)

Accepted Solutions (1)

PriyankaChak
SAP Champion
SAP Champion
0 Likes

Hi,

You can refer to the below to get details of how compare function works. Also, as it resolved the issue, please accept the answer.

https://answers.sap.com/questions/8676086/require-a-detailed-explanation-of-compare-function.html

Also, for equals, check this -> https://help.sap.com/doc/saphelp_nw73ehp1/7.31.19/en-us/4b/fbd16f66d33de4e10000000a42189e/content.ht...

Regards,

Priyanka

Answers (2)

Answers (2)

former_member740482
Participant
0 Likes

Hi Priyanka

Excellent response. Now this work fine.

I have two questions:

1-How did you know that was the cause of the error? If the message says:

Runtime exception during processing target field mapping /User/User/gender. The root message is: Cannot cast "7" to Boolean. on the exchange?

2. I am using the option : "Display Queue" to test the mapping of this specific node

How is interpreted the following=?

PriyankaChak
SAP Champion
SAP Champion
0 Likes

Hi,

Instead of 'compare' function, use 'equals' function from String functions.

Regards,

Priyanka