cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping - fixed values - not mapping

Former Member
0 Kudos

Hi

i have a simple fixed values mapping that is not producing anything.

the input value can be 'Y' , 'N' , or a blank.

The fixed value mapping is setting these input values to 'Yes', 'No', and 'No'

however when i test this, nothing is getting mapped to the output record for this field.

can someone tell me why?

many thanks,

Julia

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

What happens when you use this logic?


Source -> mapWithDefault: -> fixValues -> Target

Configuration for fixValues would be:


DefaultValue: No
BehaviourLookUp: Use Default Value
key             value
Y                Yes

Hope this helps,

Mark

Former Member
0 Kudos

Thanks Mark - but that is exactly what i have now. When i go to the test tab and load my test message the field in question turns red. This i think is a clue but i haven't figured out the clue yet.

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

When i go to the test tab and load my test message the field in question turns red.

The test message you are using and the ones declared in your messagetype do not match that's why it turns red. Try using the generate instance button in the test tab and then compare it with your test message.

Hope this helps,

Mark

Former Member
0 Kudos

>>When i go to the test tab and load my test message the field in question turns

chk ur test message...the name of question filed not seems to be the same which u r maintaining in ur test message...

Former Member
0 Kudos

Mark

thanks so much - this is exactly what was the problem.

The input field name was spelled wrong.

Julia

Former Member
0 Kudos

AmitSri,

Thank you - this was what my problem was - the field name was spelled wrong.

thank you for your time.

Julia

Answers (2)

Answers (2)

Former Member
0 Kudos

I think there is a BUG in fixValue box. in our previous mapping. when the logic is complex, the fixValue box may doesn't work.

Try to delete the old fixValue box, save mapping. and then add a new one.

If it still doesn't work, I suggest you use UDF to replace it.

Former Member
0 Kudos

Test the FIxvalues mapping with display queue functionality.

Seems to be a simple issue.

Former Member
0 Kudos

Thank you - I had forgotten that and i hope this is a simple issue

When i tried it, i received this issue

Exception:[java.lang.IllegalArgumentException: No value found for ''] in class com.sap.aii.mappingtool.flib7.TextFunctions method fixed_values[, FixedValues{Y=Yes, N=No}, com.sap.aii.ib.bom.flib.types.ValueMappingStrategy@4824ca10, , com.sap.aii.mappingtool.tf7.rt.Context@33dc1ce0]

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Still you are not passing the values correctly.... so this error. Please go through the links

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf4...