cancel
Showing results for 
Search instead for 
Did you mean: 

Remove segment in Message Mapping

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

this should work:

UEPOS -> exists -> not -> createIf -> removeContext -> E1EDP01

Context of UEPOS should be E1EDP01

Regards

Patrick

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

SudhirT
Active Contributor
0 Kudos

Hi Per,

If I understood correctly ,Do like this and let us know.

UEPOS---> Exists ----------->  

                                            and------>Not------->  IfWithoutElse --> E1EDP01----->E1EDP01

UEPOS-> Equals -> POSEX

Thanks!