JMS - Different IDOC's
I'm new to XI and I'm trying to integrate an existing application with an R/3 backend system.
The applications puts messages on an MQSeries Queue in XML format. These messages should be mapped to IDOC-structures.
What I've done so far :
I succesfully created a JMS connection and got a perticular message mapped to an IDOC and even got it into R/3.
The problem :
There are different types of messages that get onto the queue and the other messages fail because of the mapping of course.
I hear you thinking "why not give every type of message it's own queue ?" ... The thing is that the order of the messages is important, so I really should be able to process the messages in sequence.
Is there a way to determine the Sender Agreement at runtime ? Based on the message content ? Or even let te Sender Agreement be filled in by the application ?
Tx in advance