Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Message Mapping


I would appreciate any input on a mapping scenario I am having difficulty with.

I have a "Node" which is 0..Unbounded. This node has two attributes which are optional:




My scenario requires that I map differrent instances of this node based on one or the other attribute i.e.

if Node@type = "Actual" -> Map Node Value to Target A

if Node@status = "Complete" -> Map Node Value to Target B.

I am using the ifWithoutElse function to try to achieve my goal.

Problem is, via an example:

If I have three Nodes.

1. Node (Value)

@type = "Actual"

@status = "ADDA"

2. Node(Value)

@type = "Actual"

3. Node(Value)

@status = "Completel"


The mapping to Target A in the first two cases is fine, however mapping to Target B based on the Node with @status="Complete" does not fare so well. What is happenning here is the value in Node 2 gets mapped. It provides the value from the first node it reaches that does not have a @status attribute.

I would appreciate any insight into this please.

Thank you.


Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question