cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get PI Process timeStamp

Former Member
0 Kudos

Hi. to all

I have a question about PI time process I need to get this value to map in one element in my target interface.. on payload I see the value

</SAP:Main>

- <SAP:ReliableMessaging xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

<SAP:QualityOfService>ExactlyOnce</SAP:QualityOfService>

</SAP:ReliableMessaging>

- <SAP:HopList xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

<SAP:Hop timeStamp="2010-01-28T17:40:45Z" wasRead="false">


<SAP:Hop timeStamp="2010-01-28T17:40:45Z" 

Is posible to get this value in message mapping?

Thanks and Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In your sender adapter tick mark the time stamp check box under advance tab ---> ASMA settings and then use the dynamic configuration to get the time stamp inside the mapping.

You can also create the time stamp in mapping by writing an udf but this time stamp will not be exactly same (hh:mm:ss can differ from the payload time stamp).

Regards,

Sarvesh

Former Member
0 Kudos

Hi Sarvesh

Thanks for your reply..I know about ASMA properties and activate source time stamp but this value is from the file.

e.g ofr one file the value is for 3 months ago when the it was created.

I want to get the datetime when PI process the file.

Thanks and regards

Edited by: Luis Ortiz on Jan 28, 2010 2:18 PM

Former Member
0 Kudos

> I want to get the datetime when PI process the file.

If you want to use the date and time when PI process the file then use "Current Date" standard function and under date properties set the time stamp as per your wish.

Regards,

Sarvesh

Former Member
0 Kudos

Sarvesh,

I think he is asking about the time when the file is actullay polled(processed) from the directory. Isn't it?

Regards

Sunil.

Former Member
0 Kudos

hi Sarvesh..

Only to clarify .My requeriement is to get the value Startime (this value I can see on Sxi_monitor).. the difference with the currentdatime is when the file is process the time is not the same(some time the mapping delay seconds or minutes) . I want to get this value because my target client need to process the files in order as PI received the file.(like processing sequence)

Thanks and Regards.

Former Member
0 Kudos

hi Luiz,

Make your CC QOS as EOIO and create the output file with time stamp.

Based on the timestamp the target client can process the file in sequence.

Regards,

Sunil.

Former Member
0 Kudos

Hi to All

thanks for your answer..I resolved the requeriment

I get the value timesent like Message_Id

http://help.sap.com/javadocs/NW04s/current/pi/com/sap/aii/mapping/api/StreamTransformationConstants....

thanks

Answers (0)