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

date conversion

Former Member
0 Likes
553

Hi All,

Is there any function module to convert a date as shown in example.

example:

13/01/2007 (dd/mm/yyyy) as 13 January 2007 or 13 Jan 2007.

Thank you

Jaison

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
524

Hi Jaison,

Check the thread,

Regards,

Hema.

    • Reward points if it is useful.

4 REPLIES 4
Read only

Former Member
0 Likes
524

no there is no such FM..u have to do it via logic with the help of table

t247 .

Demo code -

data : d1(8) value '20051215',

c1(2),

c2(10).

c1 = d1+3(2).

select ktx into x_ktx from T247 where spras = 'E'.

concatenate d16(2) x_ktx d10(4) into c2.

write c2.

Read only

Former Member
0 Likes
525

Hi Jaison,

Check the thread,

Regards,

Hema.

    • Reward points if it is useful.

Read only

Former Member
0 Likes
524

Hi ,

The FM is CONVERSION_EXIT_IDATE_OUTPUT.

You need to pass the date in the format YYYYMMDD

Regards

Arun

Message was edited by:

Arun R

Read only

Former Member
0 Likes
524

Dear Jaison,

(1) Extract the first 2 characters from the Date String in dd/mm/yyyy format.

(2) Use "MONTH_NAMES_GET" Function Module to get hold of the Month Name.

(3) Extract the last 4 characters from the Date String in dd/mm/yyyy format.

(4) Concatenate (1) (2) and (3) into a variable and display it.

Regards,

Abir

************************************

  • Don't forget to award Points *