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

convert date to timestamp

Former Member
0 Likes
4,688

hi,

I'm converting an spread sheet to internal table using FM 'ALSM .........' my problem is I'm getting date from the excell sheet but before storing it into internal table i want to convert the date into timestamp.

regards,

santosh

hi,

I'm converting an spread sheet to internal table using FM 'ALSM .........' my problem is I'm getting date from the excell sheet but before storing it into internal table i want to convert the date into timestamp.

regards,

santosh

6 REPLIES 6
Read only

Former Member
0 Likes
1,283

hi,

Try this FM.

RKE_TIMESTAMP_CONVERT_INPUT – Converts display to TIMESTAMP fields

\[removed by moderator\]

Edited by: Jan Stallkamp on Jul 24, 2008 12:41 PM

Read only

Former Member
0 Likes
1,283

Hi,

Please use FM CIF_GEN3_CONVERT_DATETIME.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
1,283

hi,

FRE_MASTER_OUT F&R CON R/3 Master Data

Functions

FRE_CONVERT_DATE_TO_TIMESTMP Convert Date to Timestamp

FRE_ORDER_IN F&R CON R/3 - Purchasing

Functions

FRE_CONVERT_DATE_2_TIMESTAMP Converts Date into Timestamp (15)

FRE_CONVERT_TIMESTAMP_2_DATE Converts Timestamp (15) into Date

Regards,

Brown.

Read only

Former Member
0 Likes
1,283

Please see if the "CONVERT" operator does what you want. There is a pretty good help page on it. Here is a small extract from it.

CONVERT DATE

Syntax

CONVERT DATE dat [TIME tim [DAYLIGHT SAVING TIME dst]]

INTO TIME STAMP time_stamp TIME ZONE tz.

Read only

Former Member
0 Likes
1,283

Hi Santosh,

also check this from other thread

REPORT YCHATEST MESSAGE-ID ZZ .

data: str type string.

concatenate sy-datum sy-uzeit ',' '0000000' into str.

write:/ str.

Read only

Former Member
0 Likes
1,283

bjbhb