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

Function Module to DownLoad data in excel.

Former Member
0 Likes
1,873

Hi All,

Is there a FM to download data in excel sheet.

Regards,

Vidya.

1 ACCEPTED SOLUTION
Read only

abdulazeez12
Active Contributor
0 Likes
561

Hi

Use GUI_DOWNLOAD and in the filename parameter, give filename.xls ...the downloaded file will be in excel format

Cheers,

Shakir

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 29, 2008 4:51 PM

4 REPLIES 4
Read only

Former Member
0 Likes
561

Hi,

ALSM_EXCEL_TO_INTERNAL_TABLE

Regards,

Priya.

Read only

abdulazeez12
Active Contributor
0 Likes
562

Hi

Use GUI_DOWNLOAD and in the filename parameter, give filename.xls ...the downloaded file will be in excel format

Cheers,

Shakir

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 29, 2008 4:51 PM

Read only

Former Member
0 Likes
561

hi,

function module XXL_FULL_API.

refer to the link.

http://www.thespot4sap.com/Articles/Download_to_excel.asp

http://www.erpgenie.com/abap/functions.htm

regards,

sreelakshmi

Read only

Former Member
0 Likes
561

Hi use this works.

TYPE-POOLS: truxs.

DATA: it_raw TYPE truxs_t_text_data.

  • Uploading data from Local system to SAP.

PARAMETERS: p_file TYPE rlgrap-filename.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

CALL FUNCTION 'F4_FILENAME'

EXPORTING

field_name = 'P_FILE'

IMPORTING

file_name = p_file.

START-OF-SELECTION.

CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'

EXPORTING

  • I_FIELD_SEPERATOR =

i_line_header = 'X'

i_tab_raw_data = it_raw " WORK TABLE

i_filename = p_file

TABLES

i_tab_converted_data = i_spread[] "ACTUAL DATA

EXCEPTIONS

conversion_failed = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.