on 08-27-2015 9:39 AM
Hello Experts!
Is there a way to fetch the message ID of the response message when the request message ID(of a synchronous message) is given? I'd have to access these 2 message IDs in the message mapping.
Regards,
Meghana
Hi Meghana,
As you said the message IDs are used in a totally different interface, you have to save the message IDs somewhere, value mapping cache can be utilised..
Each time when you run the sync interface, save the request and response message ID by value mapping replication, for more details refer below link.
SAP document: Value Mapping Replication for Mass Data - Integration Directory - SAP Library
After this, you can perform the lookup by request message ID given anywhere, and you may also add some logic to insert or delete the message IDs based on your requirement.
Regards,
Hailong
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Meghana
I'd assume you need both ID during message mapping of the response message, as during the request message the response ID is not available yet.
If so, you can use the getRefToMessageId() of InputHeader to retrieve the request message ID during response mapping. It is pretty straightforward to get by just using the code below in a simple UDF.
return container.getInputHeader().getRefToMessageId();
Note that the response message ID can be similarly retrieved with the getMessageId() method.
Rgds
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.