on 11-24-2009 12:48 PM
Hi all
If my receiver side field occurence is 0-1, but i want it always to be mapped with some value say "1" even if input field is not occuring , and the input side suppress will not be there,so we can not use map with default also,is there some way to map a default value say in receiver file content conversion?
Thanks
Pratichi
Just use a if condition to check if input field is not empty then only pass it to target else pass the constant. This will solve the problem.
Edited by: Sarvesh Singh on Nov 24, 2009 6:32 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pratichi,
You can use "if-else", you have to check if value exist or value is not empty then pass the source field value else you can pass the constant value say "1".
Thanks,
Sunil Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pratichi,
Not in file content conversion you can achieve this in message mapping using:
1. mapwithdefault or
2. fixmappings
3.valuemappin
etc..
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried to use Constant value with if statement in your mapping? It might solve mapWithDefault problem.
Kind regards,
Radek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.