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: 

Date Format

Former Member
0 Kudos

Hi SDN's,

Can any one specify a function module which converts the date format from 20061010 to 10.10.2006

Urgent, please help

Thanks in advance

Pratyusha

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Please declare variable as sy-datum

ws_date type sy-datum.

move the date to this variable

write ws_date.

Also please check FM

CONVERSION_EXIT_PDATE_OUTPUT

Message was edited by: Dominic Pappaly

6 REPLIES 6

Former Member
0 Kudos

Hello Usha,

<b>DATA: LV_DATUM(10).

Use WRITE SY-DATUM to LV_DATUM</b>

wirte: lv_datum.

if useful reward.

Vasanth

Former Member
0 Kudos

Hi pratya,

1. we can do this directly also

2. data : d(10) type c.

write mydate to d.

regards,

amit m.

Former Member
0 Kudos

Hi

Please declare variable as sy-datum

ws_date type sy-datum.

move the date to this variable

write ws_date.

Also please check FM

CONVERSION_EXIT_PDATE_OUTPUT

Message was edited by: Dominic Pappaly

Former Member
0 Kudos

How about FM: CONVERSION_EXIT_PDATE_OUTPUT

Kind Regards

Eswar

Former Member
0 Kudos

Hello,

declare a variable of type date format,

DATA: d type sy-datum.

d = '20061010'.

write: / d.

Regards,

Shehryar

0 Kudos

Thnaks Dominic for the help.

And Thanks to all for ur replies

Regards

Pratyusha