on 12-05-2012 12:51 PM
Hi,
Is it possible to have the following:
1. Outbound Message:
<OBrecord>
<f1>aaa</f1>
<f2>bbb</f2>
<f4>ddd</f4>
</OBrecord>
(i.e. f3 is not present as it is not a mandatory field)
2. All 4 fields mapped and mandatory on the Inbound side. Giving:
3. Inbound Message
<IBrecord>
<f1>aaa</f1>
<f2>bbb</f2>
<f3></f3>
<f4>ddd</f4>
</IBrecord>
I didn't think this was possible as to have f3 on the inbound side as a mandatory field would mean that f3 would need to exist on the outbound message or the mapping would fail. However, is there some feature of the mapping which allows a field to be present on the inbound side even when there wasn't an element on the outbound side to map into it i.e. an inbound default value if no outbound element present ?
Cheers,
PaulC.
Hi Paul,
You can use mapwithdefault function to achive ur requirement.
Sourcefield-->mapwithdefault-->Targetfield.
Thanks,
Satish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Paul,
I think you can just drop the field f3 in your mapping.
If this field is not available in your outbound structure,
you can just skip it.
The fact that it is a mandatory field in your source structure
does not impact your target structure.
(assuming that you use different data types in source an target)
That's what message mapping is good for...;-)
Regards,
Jürgen
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.