Application Development and Automation 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: 
Read only

SAP conversion routine for a Long timestamp?

Former Member
0 Likes
8,318

Hi All,

We are using the SAP conversion routine TSTLC, at the domain level to convert short time stamps (data element TZNTSTMPS) from this:

    20,121,016,110,336

to a more readable format:

   10/16/2012 11:03:36

Does anyone know if there is a similar conversion routine for long time stamps (data element TZNTSTMPL)?  I am not able to find one.

Regards,

Steve

3 REPLIES 3
Read only

Former Member
0 Likes
3,590

Hi Steve,

Check the class CL_ABAP_TSTMP, that might help you in creating a custom function module/Class to fulfill your requirement.

Read only

Former Member
0 Likes
3,590

Hi,

you can check fm VELO03_CONVERT_FROM_TIMESTAMP.

Regards,

Klaus

Read only

Former Member
0 Likes
3,590

You can use ABI_TIMESTAMP_CONVERT_FROM.

or you may use:
WRF_PBAS_TIMESTAMP_TO_DATE

WSUBST_TIMESTAMP_TO_DATE

TRM_TIMESTAMP_CONVERT_FROM

IB_CONVERT_FROM_TIMESTAMP