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: 

Excel File downloaded from application server is also opening in notepad

former_member377111
Participant
0 Kudos

Hi Friends,

While downlaoding an excel file from the application server,we are able to open in notepad also.But this does not conatin the excel properties and hence happening.File should only oopen with excel and no other file type

Can any open help on this

ld_file = '/usr/sap/trans/abap/HR_DATA.xls'.

OPEN DATASET ld_file FOR OUTPUT in text mode ENCODING DEFAULT .

IF sy-subrc = 0.

LOOP AT int_final.

CLEAR wa_string.

CONCATENATE int_final-employee_sno int_final-employee_code INTO wa_string SEPARATED BY con_tab.

CONCATENATE wa_string int_final-first_name INTO wa_string SEPARATED BY con_tab.

please help...

Edited by: Neliea on Oct 29, 2009 1:11 PM

2 REPLIES 2

Former Member
0 Kudos

Hi,

Please refer to these links.

[url];url]

[url];url]

Regards,

Aditya

0 Kudos

I have actually downloaded my excel,but the problem is this excel also opens with notepad.(When u right click open with notepad)

Which i donot want to happen.Please help me.