Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

RFC&BAPI for timestamp

Former Member
0 Kudos

Hi, everyone.

I need to get a timestamp of the sever.

I know I can achieve it as following:

GET TIME STAMP FIELD s_tst.

But according to the requirement, the third party one need this timestamp. So I need a RFC & BAPI, which can return the timestamp for the caller.

I know, I can create a RFC & BAPI by myself, but my question: is there any exists BAPI & RFC which can achieve my target?

Any reply is welcome.

Hope your reply, thanks a lot

1 ACCEPTED SOLUTION

andreas_mann3
Active Contributor
0 Kudos

Hi try that,

CALL FUNCTION '/BDL/_GET_CENTRAL_TIMESTAMP'

DESTINATION dest

IMPORTING

tag = date

uhrzeit = time .

CONVERT DATE date TIME time INTO

TIME STAMP stamp TIME ZONE 'UTC+12'.

Andreas

2 REPLIES 2

andreas_mann3
Active Contributor
0 Kudos

Hi try that,

CALL FUNCTION '/BDL/_GET_CENTRAL_TIMESTAMP'

DESTINATION dest

IMPORTING

tag = date

uhrzeit = time .

CONVERT DATE date TIME time INTO

TIME STAMP stamp TIME ZONE 'UTC+12'.

Andreas

Former Member
0 Kudos

You can use GET_SYSTEM_TIME_REMOTE rfc FM.

cheers,