cancel
Showing results for 
Search instead for 
Did you mean: 

JMS acknowledgement

deva_gembali2
Participant
0 Kudos

Dear Experts,

Scenario :  WebsphereMQ --> (JMS)SAP PI 7.4(IDOC) --> SAP ERP &&&

SAP ERP IDOC Ack --> (IDOC)SAP PI 7.4(JMS) --> WebsphereMQ

As per the flow, i am required to read MessageID from Websphere through SAP PI and send it back through acknowledgement. Would like to know how to read MessageID in SAP PI ? Is JMS adapter supporting ? Can you advise me.



Deva

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Deva

Ask the web sphere team to include the JMS message id in the message header. Then in the sender JMS adapter select the following option

Then the JMS message id will be present in the PI message header. You can write a simple UDF to read that value from the PI message header in the same way we read file name.

former_member192343
Active Contributor
0 Kudos

Hi Deva

You can get MessageID in UDF

String MSGID;
MSGID=(String)(container.getTransformationParameters()).get(StreamTransformationConstants.MESSAGE_ID);
return MSGID;

regards, Mikhail