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 format

Former Member
0 Likes
562

Hi All,

I am facing date format Issue..for the below statement.

DATA: lv_po_date_sold type dats8,

           LV_DATE_STR type sy-datum,

           lv-cust_po_date type char12.

lv_date_str = lv_po_date_sold.

WRITE lv_date_str TO lv-cust_po_date.

After executing this my date format is coming as '09-13-2013'. But my system default settings is DD.MM.YYYY.

I am not sure from where it's taking default date format during write statement.

Could any one suggest me how I can fix this date format Issue..

I know to manipulate the date format using concatenation but I am looking to solve using above statement ...Because when I execute the same report from CRM Web UI the statement works fine but when I ran the report from SE38 the formatting Issue is coming.

I appreciate your help on this.

Thanks,

Sara.

2 REPLIES 2
Read only

Former Member
0 Likes
456

hi sara,

can't you change

lv_po_date_sold type dats8

to

lv_po_date_sold like sy-datum

and try..............

Read only

Former Member
0 Likes
456

Hi Sara,

you can use USING EDIT MASK '__.__.____' in WRITE statement.


WRITE lv_date_str TO lv-cust_po_date. 

Regards,

Vishram