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: 

translation

Former Member
0 Kudos

Hello!

Do you know a way how to convert

12/31/2007 to 31.12.2007 ?

Reagrds

Sas

1 ACCEPTED SOLUTION

former_member210123
Active Participant
0 Kudos

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

this should work

10 REPLIES 10

former_member210123
Active Participant
0 Kudos

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

this should work

0 Kudos

sorry I don't understand what you mean

rgds

sas

0 Kudos

Easy solution.


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

Former Member
0 Kudos

v_date = '12/31/2007'.

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

v_date1 separated by '.'

Former Member
0 Kudos

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

former_member708410
Contributor
0 Kudos

hi,

data = '12/03/2007'.

d1 = date+0(2).

d2 = date+3(2).

d3 = date+6(4).

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

Former Member
0 Kudos

HI,

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

Former Member
0 Kudos

Bharath Srinivas which type has vdate and vdate1 ?

regards

sas

0 Kudos

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

Former Member
0 Kudos

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