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

FM For date Format

Former Member
0 Likes
742

Hi,

Could anybody assist me, the date format is like 20080519, but it should be in the format of 19.05.2008.Is there any function module .

Thanks in advance.

Regards.

I.Reddy Prasad.

7 REPLIES 7
Read only

Former Member
0 Likes
715

Try FM CONVERT_DATE_TO_EXTERNAL

Read only

Former Member
0 Likes
715

date:

g_date type sy-datum,

g_date1(10) type c.

g_date = sy-datum.

write g_date to g_date1.

Read only

Former Member
0 Likes
715

Use FM CONVERSION_EXIT_D3DAT_OUTPUT

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 11:55 AM

Read only

valter_oliveira
Active Contributor
0 Likes
715

Hello.

Try this:


DATA: l_in TYPE dats,
      l_out TYPE CHAR 10.
l_in = sy-datum.
WRITE l_in TO l_out DD/MM/YYYY.

Regards.

Valter Oliveira.

Read only

Former Member
0 Likes
715

change your settings in user profile ...

system>user profile>own data

and in defaults tab .. change your date format to

DD.MM.YYYY ...

in your program ...

data : v_date(10).

write sy-datum to v_date.

v_date contains date in dd.mm.yyyy format ...

Read only

Former Member
0 Likes
715

Hi,

CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
    EXPORTING
      DATUM = W_DATE1
      DTYPE = 'DATS'
    IMPORTING
      IDATE = W_DATE2.

Regards

Adil

Read only

Former Member
0 Likes
715

CONVERT_DATE_INPUT

CONVERT_DATE_BY_PERIOD_INPUT