Skip to Content

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

BPM - Bundle 2 Files to 1 - Mapping error.

I'm using BPM to bundle 2 messages into 1. The two Data Types for the Abstract MT are completly diferent. I got the BPM to work but my final Message are in different order. IF I check each xml before the transformation they are both in perfect order. The sequence is changed only for the Message2.

How can assure the same order of the lines as they are in the inbound message?

Message1

RecordSet Structure: Header,1,Line,*,Footer,1

RecordSet Sequence: Ascending

Header.keyFieldValue 0

Line.keyFieldValue 2

Footer.keyFieldValue 4

Message1 example:

0abc

2def

2ghi

2jkl

4mno

Message2

RecordSet Structure: Header,,Line1,,Line2,,Footer,,EOF,*

RecordSet Sequence: Variable

Header.keyFieldValue 11

Line1.keyFieldValue 22

Line2.keyFieldValue 23

Footer.keyFieldValue 33

EOF.keyFieldValue 88

Message2 example:

11ABC

22def

23iii

22ijk

23iii

33RTE

11VBN

22hjk

23iii

22yui

23iii

33QWE

88EOF

The target message DATA TYPE:

HeaderG (from Message2)

Line1G (from Message2)

Line2G (from Message2)

FooterG (from Message2)

EOFG (from Message2)

HeaderD (from Message1)

LineD (from Message1)

FooterD (from Message1)

Target Message example (HOW IT SHOULD BE):

11ABC

22def

23iii

22ijk

23iii

33RTE

11VBN

22hjk

23iii

22yui

23iii

33QWE

88EOF

0abc

2def

2ghi

2jkl

4mno

And the result I'm getting is:

11ABC

11VBN

22def

22ijk

22hjk

22yui

23iii

33RTE

33QWE

88EOF

0abc

2def

2ghi

2jkl

4mno

See how it sorts all the Header, Line1, Line2, Footer together in that order. AND IT is removing all the other Line2 '23' because the are the same.

I guess the error is in the Message Mapping I'm doing in the BPM, but I don't think there is any option to change the sequence, I might be wrong.

Sorry for my english, I've tried to make it clear.

Thanks in advance for any help.

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