Skip to Content
0
Former Member
Jun 18, 2009 at 10:31 AM

mapping - message split

23 Views

Hi all,

I need a little bit help with message splitting.

I have message structure like below. The Error Node exists in all rows, in first part it is initial (with no value), then come rows with different error messages.

<Message1>
  <Row>
    <node1>a</node1>
    <node2>a</node2>
    <Errror/>
  </Row>
  <Row>
    <node1>a</node1>
    <node2>a</node2>
    <Errror/>
  </Row>
  ...
  <Row>
    <node1>a</node1>
    <node2>a</node2>
    <Errror>text_a</Errror>
  </Row>
  <Row>
    <node1>a</node1>
    <node2>a</node2>
    <Errror>text_b</Errror>
  </Row>
  ...
</Message1>

I need to split it into 2 messages so, that in first message will be rows without error, and in the second with.

<Message1>
  <Row>
    <node1>a</node1>
    <node2>a</node2>
  </Row>
  <Row>
    <node1>a</node1>
    <node2>a</node2>
  </Row>
  ...
</Message1>
<Message2>
  <Row>
    <node1>a</node1>
    <node2>a</node2>
    <Errror>text_a</Errror>
  </Row>
  <Row>
    <node1>a</node1>
    <node2>a</node2>
    <Errror>text_b</Errror>
  </Row>
  ...
</Message2>

Is this feasible with graphical mapping? How can I can make the assignment of the row once to first and

other time to second message? Or do I have to use XSLT/ABAP? (I am not very familiar with java...) Thanks for any suggestions.