2015 Jan 23 9:30 PM
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.
2015 Jan 23 9:50 PM
hi sara,
can't you change
lv_po_date_sold type dats8
to
lv_po_date_sold like sy-datum
and try..............
2015 Jan 24 8:39 AM
Hi Sara,
you can use USING EDIT MASK '__.__.____' in WRITE statement.
WRITE lv_date_str TO lv-cust_po_date.
Regards,
Vishram