cancel
Showing results for 
Search instead for 
Did you mean: 

xMII 12: Message Services - How to get the Received Time?

Former Member
0 Kudos

Dear all,

we are working with xMII 12 SP1 and have sent some Control Recipes from SAP to xMII. The messages are successfully queued. Using the Query Messages and Read Message action I can retrieve the message contents.

However, the action parameters do not return the receive / process time of the message that is displayed in the Message Monitor. Using the Query Messages action I can only set the selection datetime, but don't get back the datetime that belongs to a specific message.

Is there a way to get this datetime within a transaction?

Best regards

Michael

Accepted Solutions (1)

Accepted Solutions (1)

jcgood25
Active Contributor
0 Kudos

Michael,

The Read Message action should return two timestamps that match up with the html table you see on the Message Monitor page. The following are taken from a 12.0.1 build 75 system (my 12.0.2 system is not running right now - nightly build process I guess)

Query Action Sample Results:

<?xml version="1.0" encoding="utf-8"?>

<JCOMessageList>

<JCOMessage>

<MessageId>2</MessageId>

<JcoServerName>XMIIMESSAGELISTENER</JcoServerName>

<MessageName>JEREMY</MessageName>

<Category />

<MessageType>3</MessageType>

<Status>4</Status>

<DocNumber />

</JCOMessage>

</JCOMessageList>

Read Action Sample Results:

<?xml version="1.0" encoding="utf-8"?>

<JCOMessage>

<MessageId>2</MessageId>

<JcoServerName />

<MessageName>JEREMY</MessageName>

<Category />

<MessageType>3</MessageType>

<Status>4</Status>

<DocNumber />

<DocCount>0</DocCount>

<Function />

<PacketID>0</PacketID>

<b><ProcessingTimeStamp>2007-10-12 06:12:37.573</ProcessingTimeStamp>

<ReceivedTime>2007-10-12 06:12:34.73</ReceivedTime></b>

</JCOMessage>

Are you not seeing these two time fields?

Regards,

Jeremy

Former Member
0 Kudos

Hi Jeremy,

thanks for the posting, because it gave the missing link to the solution.

The Read action returns two output XMLs: "JCOMessage" and "MessageDocumentXML". I only recognized the second one. The interesting part for me however is inside the first output XML.

Best regards

Michael

Answers (1)

Answers (1)

Former Member
0 Kudos

Michael,

Since 12.0 is in Ramp-Up stil, can you please submit this support message through the right channels so that it can be documented and to see it could possibly be a bug or anything. They will also be able to help you resolve the issue.

Former Member
0 Kudos

Hi Alin,

thank you for your mail. I will open a SAPNet message when I detect any errors, as I have done several times, but this time I thought it was just a misunderstanding from my side. As I haven't found any hints in the forum, I ask directly. And like many times before, Jeremy gave the hint for the answer.

Regards

Michael