cancel
Showing results for 
Search instead for 
Did you mean: 

Get the target system time in the message mapping

ik69
Participant
0 Kudos

Hi there,

I need to use the system time of target R/3 system in the message mapping. Any ideas how can I handle this?

Thanks,

Igor.

Accepted Solutions (0)

Answers (7)

Answers (7)

ik69
Participant
0 Kudos

Hi Guru,

I did not said the outbound message is from R/3 system, did I?

Nevertheless, I am going to try RFC lookup using MSS_GET_SY_DATE_TIME

Thanks to all of you.

Regards, Igor

ik69
Participant
0 Kudos

Thanks for your quick replies.

XI and R/3 system is in the same timezone but this is not relevant. I know it might sound strange but there is a reason I need to use time in the message mapping which is 2 minutes later than in the target system:

e.g. target system time: 16:58:32 I need to use 16:56:32 value in the mapping.

I found RFC MSS_GET_SY_DATE_TIME which can proide me with the value, just wondering if there is no other way how to do that other than RFC lookup ...

Thanks,

Igor

justin_santhanam
Active Contributor
0 Kudos

Igor,

Since both boxes are in samtime zone, you can get the current time and subtract by 2 mins inside Mapping itself right?

raj.

ik69
Participant
0 Kudos

Hi Raj,

yes, I can do that if the XI box and R/3 system system times are synchronized which is not the case and will not be.

So I do not want an walk around solution ...

Thanks anyway.

Igor

Former Member
0 Kudos

Igor

The message which comes from R3 contains a node <SAP: TimeSent>. This contains the time stamp of the R3 system. Check this if it helps you.

Former Member
0 Kudos

Hi,

Why do you need this information from target in the mapping? If it is target's information, you don't need to send to it its own information

regards.

roberti

ravi_raman2
Active Contributor
0 Kudos

Igor,

Can you clarify your question a bit...

You need to use the system time in r/3 in your mappings as in ...towards r/3 or msg is from R/3...thats the question i have..

Regards

Ravi Raman

justin_santhanam
Active Contributor
0 Kudos

Igor,

Your XI box and R/3 system are in different zones?

raj.

Former Member
0 Kudos

I think one way is to populate system time in the message you are sending from the R/3 System and use it in the mapping. The other way I think is that when R3 system sends the message to XI, I guess there would be time stamp in the message envelope or header parameters.

Former Member
0 Kudos

Hi,

use RFC lookup for this (search RFC lookup in forum) and call some function module on R/3 - for example getcentral_timestamp... Then change the time according to your timezone. Or you can develop your own FM and use it.

Peter