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

translation

Former Member
0 Likes
1,269

Hello!

Do you know a way how to convert

12/31/2007 to 31.12.2007 ?

Reagrds

Sas

1 ACCEPTED SOLUTION
Read only

former_member210123
Active Participant
0 Likes
1,248

write to sy-datum to dd.mm.yyyy.

this should work

Hello!

Do you know a way how to convert

12/31/2007 to 31.12.2007 ?

Reagrds

Sas

10 REPLIES 10
Read only

former_member210123
Active Participant
0 Likes
1,249

write to sy-datum to dd.mm.yyyy.

this should work

Read only

0 Likes
1,248

sorry I don't understand what you mean

rgds

sas

Read only

0 Likes
1,248

Easy solution.


  DATA: val(10).
  WRITE sy-datum TO val DD/MM/YYYY.
  TRANSLATE val USING '/.'.
  WRITE val.

Read only

Former Member
0 Likes
1,248

v_date = '12/31/2007'.

concatenate v_date3(2) v_date0(2) v_date+6(4) into

v_date1 separated by '.'

Read only

Former Member
0 Likes
1,248

hi check this..

parameters: p_date(10) .

data: date1(2),

date2(2),

date3(4),

date4(10).

date1 = p_date+0(2).

date2 = p_date+3(2).

date3 = p_date+6(4).

concatenate date2 date1 date3 into date4 separated by '.'.

write:/ date4.

regards,

venkat

Read only

Former Member
0 Likes
1,248

hi,

data = '12/03/2007'.

d1 = date+0(2).

d2 = date+3(2).

d3 = date+6(4).

concatenate d2 '.' d1 '.' d3 into d4 .

Read only

Former Member
0 Likes
1,248

HI,

concatenate v_date+3(2) v_date+0(2) v_date+6(4) into
v_date1 separated by '.'

Read only

Former Member
0 Likes
1,248

Bharath Srinivas which type has vdate and vdate1 ?

regards

sas

Read only

0 Likes
1,248

Both are of char type ... length 10 ..

Read only

Former Member
0 Likes
1,248

hello thx for all your hints.

The actually problem what I'm having is to

convert date into timestamp.

This below shown FM accepts 31.12.2007

but NOT 12/31/2007

*CALL FUNCTION 'ABI_TIMESTAMP_CONVERT_INTO'

Is there a solution ?

regards

sas