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

GUI_DOWNLOAD Date format

balaji_viswanath
Participant
0 Likes
3,222

Hi,

I am downloading an internal table to excel through GUI_DOWNLOAD function module, internal table contains a date field and it's getting downloaded in "YYYYMMDD" format. Whereas if we use WS_DOWNLOAD it's getting downloaded with date separator (based on user settings) i.e. slash, dot and etc. Is GUI_DOWNLOAD has this shortcoming?

Regards,

Balaji Viswanath.

1 ACCEPTED SOLUTION
Read only

Former Member
1,814

Try populating the paramter DAT_MODE with 'X'.It should work.

Hi,

I am downloading an internal table to excel through GUI_DOWNLOAD function module, internal table contains a date field and it's getting downloaded in "YYYYMMDD" format. Whereas if we use WS_DOWNLOAD it's getting downloaded with date separator (based on user settings) i.e. slash, dot and etc. Is GUI_DOWNLOAD has this shortcoming?

Regards,

Balaji Viswanath.

4 REPLIES 4
Read only

Former Member
1,815

Try populating the paramter DAT_MODE with 'X'.It should work.

Read only

0 Likes
1,814

Thank you, its working.

Read only

former_member632458
Participant
0 Likes
1,814

IF u want the same formate as in the database upload the file in 'DBF' format.

Read only

former_member611314
Discoverer
1,814

if you want the format same as the format of internal table populate the FM like below

CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = gv_path1
filetype = 'ASC'
append = abap_true
write_field_separator = abap_true
dat_mode = abap_true