Query another message payload from graph mapping program
I have the following scenario
Third Party Business System -> XI -> ECC 5.0
Third Party sends ORDER to ECC and ECC answers with ORDRSP
When mapping ORDRSP.ORDERS05 to Third Pty format, I need to use info that the Third Party provided us on the ORDERS.
So... I have to query the ORDERS message payload from ORDRSP message mapping program.
My first idea deal with doing an RFC lookup to search the ABAP Database for this info (my ABAP background raises ) but I'd like to know if there is a more elegant and efficent way of doing this.
basically you want to correlate two messages order and order response with each other in an asynchronous process using payload information e.g. the order number.
To be able to do this, i think you need to use a BPM, where you define the correlation (i.e. which fields in the order and order response must have the same value to identify the response for a particular order). In that BPM you have then access to both messages the original order and the order response and can use a multi mapping with two sources and one target to combine both messages into one.
The basic steps of such a BPM would be:
1. receive message from Third Party
2. send message to ECC
3. receive order response from ECC
4. Carry out multi mapping to combine order with order response
5. send message to third party
As mapping execution in BPM needs more resources than outside BPM, i would put the mapping from third party order to ORDER IDoc outside the BPM (i.e. after the BPM) and only execute the multi mapping within the BPM.