on 11-21-2008 1:34 PM
Hello,
I am sending the ORDRSP.ORDERS05 to an external message ORDERS05 which is based on the
same structure as the ORDERS05.
However I should not be sending all E1EDP01 segments. If the item belongs to a higher level item, then it should not be sent. If the item belongs to a higher level item then the field E1EDP01-UEPOS exists and has a value. In that case I should not transfer the E1EDP01 segment.
See example for what I mean. This would be the source message:
- <E1EDP01 SEGMENT="1">
<POSEX>000010</POSEX>
<ACTION>000</ACTION>
<MENGE>1.000</MENGE>
<MENEE>PCE</MENEE>
<PMENE>PCE</PMENE>
- <E1EDP01 SEGMENT="1">
<POSEX>000020</POSEX>
<ACTION>000</ACTION>
<MENGE>1.000</MENGE>
<MENEE>PCE</MENEE>
<PMENE>PCE</PMENE>
<UEPOS>000010</UEPOS>
- <E1EDP01 SEGMENT="1">
<POSEX>000030</POSEX>
<ACTION>000</ACTION>
<MENGE>1.000</MENGE>
<MENEE>PCE</MENEE>
<PMENE>PCE</PMENE>
<UEPOS>000010</UEPOS>
This first item is the header item and does not contain the field UEPOS.
The next two items belongs to item 000010 and should not be sent.
In this case only the POSEX 000010 should be sent.
The target message should then look like this:
<E1EDP01 SEGMENT="1">
<POSEX>000010</POSEX>
<ACTION>000</ACTION>
<MENGE>1.000</MENGE>
<MENEE>PCE</MENEE>
<PMENE>PCE</PMENE>
I think this should be possible with the standard functions in Message Mapping, and I have been playing around with CREATEIF and EXISTS, but have had no success. Anybody has any idea what to do?
Regards,
Per Rune
Hi,
this should work:
UEPOS -> exists -> not -> createIf -> removeContext -> E1EDP01
Context of UEPOS should be E1EDP01
Regards
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot for your replies!
I implemented the suggestion from Patrick and that seems to work fine!
Again, thanks a lot for your effort.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Per,
If I understood correctly ,Do like this and let us know.
UEPOS---> Exists ----------->
and------>Not-------> IfWithoutElse --> E1EDP01----->E1EDP01
UEPOS-> Equals -> POSEX
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.