on ‎2022 Apr 21 2:55 AM
Dear experts
I am doing an Mapping using this file:

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?
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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=?


You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Instead of 'compare' function, use 'equals' function from String functions.
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.