on 08-13-2008 7:44 AM
Hi friends,
Thanks for providing the help so far.I am designing a IDoc to JDBC scenario.I am facing a mapping problem.An IDoc field needs to be mapped to the receiver data type only if it exists in the IDoc,else no value needs to be passed to the receiver data type. I have made the occurence of the specific field of the receiver data type as 0..1.I am trying to do a mapping using 'exists' and boolean function 'if then'. Still the mapping is not working.
regards
Debansu
Hi,
Santosh,I had done the mapping as you have mentioned but still it did not work.
Prakasu,can you please tell me how the MapWithDefault works ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Field1(IDOC)MapwithDefaultTargetField
If Field1 exits with some value (123) then the same value will be assign to the Target Field.
If Field1 does Not exit in the Sender then that time
MapwithDefault--TargetField.
Default Value is null. So empty tag will form in the Target Side.
Regards,
Prakasu
Hi,
Thanks to all especially Prakasu and Santhosh.The problem has got resolved.
regards
Debansu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI.
Apply the Logic Inside this Screeshot
http://img223.imageshack.us/img223/2882/78323488su6.jpg
REgards
Seshagiri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1)use if then else boolean function.
2)if source field exists map source field to target
3)else map empty constant to target
Edited by: malini balasubramaniam on Aug 13, 2008 10:35 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What error do you get in the mapping.
Is you mapping is like.
source field-----> exist----> IF -------------> target
|
then<----- source field
Thanks
SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ideally boolean function exists should work. Try using createIf.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use "Map with Default" function.
It will solve ur Problem.
If the value passed it will pass the value.Other wise empty tag will create if the node does not exit also.
Regards,
Prakasu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.