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

changing the date format

Former Member
0 Likes
530

hi experts,

i have the date field in the report output of type DATUM.

but i have to change that field into DD/MM/YYYY format.

i want to change that field format only after selection query.

how to go about this.

thanks and regards

Shyam.

4 REPLIES 4
Read only

Former Member
0 Likes
509

HEllo,

Do like this.

data: lv_datum(10).

write sy-datum to lv_datum.
write lv_datum.

Vasanth

Read only

Former Member
0 Likes
509

Hi,

Parameters:DATE1 type Sy-datum.
data:   DATE2(10) type c.


WRITE: DATE1 to DATE2. " Here the DATE2 will have the User format. 
                                        " Write this line after your Select statment

Regards

Sudheer

Read only

0 Likes
509

Thank you sudeer,

i have send the said format of date to local file and unix.

Read only

Former Member
0 Likes
509

Hi,

Could you assign the Points and close the thread

Regards

Sudheer