Downloading report in excel file
When I download reoprt in excel file then if material no is 0002134 then in the excel file this becomes 2134,
I am saving file from the Menu System->Save-> Local fiie and then selecting spreadsheet.
When I save as text file then it is not removing leading zeros, only in excel file it is removing leading zeros.
I wanted to know that how to download in excel file so that my material no should download as it is .
Thanks
APrasad
Menu System->Save-> Local fiie and then selecting spreadsheet.
Spreadsheet is not EXCEL. It is a an internal format.
if you enter xls as extension, then you just tell Microsoft to open this file with excel.
Excel then automatically coverts it to its own rules.
When download with Menu System->Save-> Local fiie and then selecting spreadsheet enter the file extension txt
Then open Excel, use file > open
find your file and open it, Excel will come up with an import assistant.
there you can define if the column is to be loaded as numbers or text.
Similar Messages
-
Reg: Download report into Excel file
Hi All,
While downloading the ALV report into excel file(System -> List -> Save -> Local file) or (List -> Export -> Local file), i cannot download full report in to excel. Even though the report contains just 200 rows(I can able to download about 90 lines).
Some reports can able to download all the data, even the report is very big. Currently I am blind to solve, anyone can help me to solve this issue.
Thanks in advance.The most elegant way of downloading ALV display data to EXCEL is displaying the excel in the SAP GUI screen itself. Select "Excel in Place" and then save it from there. Before that you need to let the VB script of SAP know as trusted macro. This is done by opening a blank excel file then go to Tools > options > Security > Macro Security > Trusted Publishers (tab) > (check) Trust access to Visual Basic Project. This activation is one time activation. Once you do this you can see ALV display exactly like in normal ALV with all the colors fields etc.
-
Unable to export report to excel file from SAP
Hi all,
I have a problem to download data from a report. The XL gets downloaded in a different format than my colleague.
We are using the same XL version but two weeks back the SAP GUI 730 got reinstalled to my machine and since then the problem
started.
Can you please confirm is there is any particular user settings for this?
I have login in any different working ( SAP Export ) machine with my login ID and Password and try to export the report to excel file from SAP, and I have same issue . Same we have requested another user to login in my machine with their ID and Password and check the same, They have tried and its working for then in my machine.
see screenshots attached.
Thanks.Execute report>
Right click anywhere in the report output and select Spreadsheet.
A pop up box will appear, select which export option you would like to use and click green check.
NOTE: If you don't see this option then goto Settings>Switch List then try above said.
Thanks,
Kumar -
Save alv report as excel file directly from program
Hello guys,
I require this in my work.
I want to save the ALV report tat is to be generated in the filepath that is given in the selection screen (want to save it locally eg: my windows desktop) and in the layout which is also given in the selection screen.
your comments will be very much appreciated.
Thanks in Advance,
JohnyHi Johny,
Actually we have an option to download report output in ALV but it does not download the specified on Selection-screen. For this Create on button for Excell download by setting PF status. and use USER_COMMAND event to trigger when u click on the button and download data to specified path.
1.
declare events table like this.
data :
i_events type slis_t_event,
w_events like line of i_events.
2.
Build events table .
w_events-name = 'USER_COMMAND' .
w_events-form = 'USER_COMMAND' .
append w_events to i_events.
clear w_events.
w_events-name = 'PF_STATUS_SET' .
w_events-form = 'PF_STATUS_SET' .
append w_events to i_events.
clear w_events.
3.
pass this events table through REUSE_ALV_GRID_DISPLAY.
4.
USER_COMMAND and PF_STATUS_SET call back subroutines should be like this in your case. These are nowhere called using PERFORM statement in ur program.
5.
PF_STATUS_SET' subroutine should be like this.
*& Form pf_status_set
form pf_status_set using extab type slis_t_extab.
set pf-status 'STATUS1' excluding g_extab.
"If you write like above Standard status will be gone.
"For that u have to copy standard status of any ALV program which has standard status.
"1. goto SE41 tcode. give program SAPLKKBL and status :STANDARD_FULLSCREEN .
2.Click on the Copy status button below program is ur program and status ur program status.
3. After that create your own button for Excel downlod.
endform. "pf_status_set
6.
USER_COMMAND subroutine should be like this.
*& Form user_command
form user_command using ucomm like sy-ucomm
selfield type slis_selfield.
case ucomm .
when 'XLS_DOWN'.
perform download_to_xls.
endcase.
endform. "user_command
Here is the sample program to download data into Excel file with header and Columns..
Check this program by running.
*& Report ZVENKAT_DOWNLOAD_XLS_WITH_HEAD
REPORT zvenkat_download_xls_with_head.
" Data retrieval related declarations
TYPES:
BEGIN OF t_emp_dat,
pernr TYPE pa0001-pernr,
persg TYPE pa0001-persg,
persk TYPE pa0001-persk,
plans TYPE pa0001-plans,
stell TYPE pa0001-stell,
END OF t_emp_dat,
t_attachment TYPE solisti1.
DATA:
w_emp_data TYPE t_emp_dat,
w_attachment TYPE t_attachment.
DATA:
i_emp_data TYPE STANDARD TABLE OF t_emp_dat,
i_attachment TYPE STANDARD TABLE OF t_attachment.
PARAMETERS: p_file TYPE string DEFAULT 'c:\tmp\test.xls'.
"Start-of-selection.
START-OF-SELECTION.
PERFORM get_data.
PERFORM build_xls_data_and_download.
"Form get_data from PA0001
FORM get_data.
SELECT pernr
persg
persk
plans
stell
FROM pa0001
INTO CORRESPONDING FIELDS OF TABLE i_emp_data
UP TO 4 ROWS.
ENDFORM. " get_data
"Form build_xls_data_and_download
FORM build_xls_data_and_download.
"If you have Unicode check active in program attributes then
"you will need to declare constants as follows.
CLASS cl_abap_char_utilities DEFINITION LOAD.
CONSTANTS:
con_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
DATA :l_lines TYPE char10.
DESCRIBE TABLE i_emp_data LINES l_lines.
CONCATENATE 'Total no of records:' l_lines
INTO w_attachment
SEPARATED BY con_tab.
CONCATENATE con_cret
w_attachment
INTO w_attachment.
APPEND w_attachment TO i_attachment.
CLEAR w_attachment.
CONCATENATE 'PERNR' 'PERSG' 'PERSK' 'PLANS' 'STELL'
INTO w_attachment
SEPARATED BY con_tab.
CONCATENATE con_cret
w_attachment
INTO w_attachment.
APPEND w_attachment TO i_attachment.
CLEAR w_attachment.
LOOP AT i_emp_data INTO w_emp_data.
CONCATENATE w_emp_data-pernr
w_emp_data-persg
w_emp_data-persk
w_emp_data-plans
w_emp_data-stell
INTO w_attachment
SEPARATED BY con_tab.
CONCATENATE con_cret w_attachment
INTO w_attachment.
APPEND w_attachment TO i_attachment.
CLEAR w_attachment.
ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = p_file
write_field_separator = con_tab
TABLES
data_tab = i_attachment.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. "build_xls_data_and_download
I hope that it helps u .
Regards,
Venkat.O -
Extract the report into excel file
how to extract the report into excel file?
which function module i have to use ?Hi Pavan,
If you want to download the displayed list in the Excel file,then at the time when the list is displayed on the screen, you can go to System option on the menu bar,from there go to List and then Save.You will get a pop up which shows you all the formats of download available.Select the one you want to and mention the target path of the file on the Presentation server.
Secondly,you can use the T-codes "CG3Y" to download the data from the Application Server to the Presentation Server and T-code "CG3Z" for vice-versa.
Or else you can use any of the FMs to first download the ABAP list to the ASCII or the BIN format and then convert it to excel using the FM "SAP_CONVERT_TO_XLS_FORMAT" or "TEXT_CONVERT_XLS_TO_SAP
I hope I have tried to answer your query.
In case of any further queries,please let know.
Regards,
Puneet Jhari. -
Error in XXL_FULL_API function module for download report to excel
Hi all,
I am using XXL_FULL_API function module for download report to excel, In this FM we have to fill a table called sema = t_gxxlt_s. in this table we have a fields called
i_sema-col_no = 19.
i_sema-col_src = 19.
i_sema-col_typ = 'STR'.
i_sema-col_ops = 'DFT'
here in 'col_typ' if we put STR in excel it will come as a text but i wnat the time field what i have to pass ?
and for filed 'col_ops' also ??
Thaks,
SridharHi sridhar joshi,
Please check this program
REPORT Excel.
TABLES:
sflight.
* header data................................
DATA :
header1 LIKE gxxlt_p-text VALUE 'Suresh',
header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.
* Internal table for holding the SFLIGHT data
DATA BEGIN OF t_sflight OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA END OF t_sflight.
* Internal table for holding the horizontal key.
DATA BEGIN OF t_hkey OCCURS 0.
INCLUDE STRUCTURE gxxlt_h.
DATA END OF t_hkey .
* Internal table for holding the vertical key.
DATA BEGIN OF t_vkey OCCURS 0.
INCLUDE STRUCTURE gxxlt_v.
DATA END OF t_vkey .
* Internal table for holding the online text....
DATA BEGIN OF t_online OCCURS 0.
INCLUDE STRUCTURE gxxlt_o.
DATA END OF t_online.
* Internal table to hold print text.............
DATA BEGIN OF t_print OCCURS 0.
INCLUDE STRUCTURE gxxlt_p.
DATA END OF t_print.
* Internal table to hold SEMA data..............
DATA BEGIN OF t_sema OCCURS 0.
INCLUDE STRUCTURE gxxlt_s.
DATA END OF t_sema.
* Retreiving data from sflight.
SELECT * FROM sflight
INTO TABLE t_sflight.
* Text which will be displayed online is declared here....
t_online-line_no = '1'.
t_online-info_name = 'Created by'.
t_online-info_value = 'KODANDARAMI REDDY'.
APPEND t_online.
* Text which will be printed out..........................
t_print-hf = 'H'.
t_print-lcr = 'L'.
t_print-line_no = '1'.
t_print-text = 'This is the header'.
APPEND t_print.
t_print-hf = 'F'.
t_print-lcr = 'C'.
t_print-line_no = '1'.
t_print-text = 'This is the footer'.
APPEND t_print.
* Defining the vertical key columns.......
t_vkey-col_no = '1'.
t_vkey-col_name = 'MANDT'.
APPEND t_vkey.
t_vkey-col_no = '2'.
t_vkey-col_name = 'CARRID'.
APPEND t_vkey.
t_vkey-col_no = '3'.
t_vkey-col_name = 'CONNID'.
APPEND t_vkey.
t_vkey-col_no = '4'.
t_vkey-col_name = 'FLDATE'.
APPEND t_vkey.
* Header text for the data columns................
t_hkey-row_no = '1'.
t_hkey-col_no = 1.
t_hkey-col_name = 'PRICE'.
APPEND t_hkey.
t_hkey-col_no = 2.
t_hkey-col_name = 'CURRENCY'.
APPEND t_hkey.
t_hkey-col_no = 3.
t_hkey-col_name = 'PLANETYPE'.
APPEND t_hkey.
t_hkey-col_no = 4.
t_hkey-col_name = 'SEATSMAX'.
APPEND t_hkey.
t_hkey-col_no = 5.
t_hkey-col_name = 'SEATSOCC'.
APPEND t_hkey.
t_hkey-col_no = 6.
t_hkey-col_name = 'PAYMENTSUM'.
APPEND t_hkey.
* populating the SEMA data..........................
t_sema-col_no = 1.
t_sema-col_typ = 'STR'.
t_sema-col_ops = 'DFT'.
APPEND t_sema.
t_sema-col_no = 2.
APPEND t_sema.
t_sema-col_no = 3.
APPEND t_sema.
t_sema-col_no = 4.
APPEND t_sema.
t_sema-col_no = 5.
APPEND t_sema.
t_sema-col_no = 6.
APPEND t_sema.
t_sema-col_no = 7.
APPEND t_sema.
t_sema-col_no = 8.
APPEND t_sema.
t_sema-col_no = 9.
APPEND t_sema.
t_sema-col_no = 10.
t_sema-col_typ = 'NUM'.
t_sema-col_ops = 'ADD'.
APPEND t_sema.
CALL FUNCTION 'XXL_FULL_API'
EXPORTING
* DATA_ENDING_AT = 54
* DATA_STARTING_AT = 5
filename = 'TESTFILE'
header_1 = header1
header_2 = header2
no_dialog = 'X'
no_start = ' '
n_att_cols = 6
n_hrz_keys = 1
n_vrt_keys = 4
sema_type = 'X'
* SO_TITLE = ' '
TABLES
data = t_sflight
hkey = t_hkey
online_text = t_online
print_text = t_print
sema = t_sema
vkey = t_vkey
EXCEPTIONS
cancelled_by_user = 1
data_too_big = 2
dim_mismatch_data = 3
dim_mismatch_sema = 4
dim_mismatch_vkey = 5
error_in_hkey = 6
error_in_sema = 7
file_open_error = 8
file_write_error = 9
inv_data_range = 10
inv_winsys = 11
inv_xxl = 12
OTHERS = 13
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
please refer this link
http://www.thespot4sap.com/Articles/Download_to_excel.asp
Best regards,
raam -
Hi all,
i am trying to download ALV to excel file.
but as the alv contains many fields,
the row in the excel is automatically wrapped to the
next row ..
what i want is the row in excel should come as it is
in the ALV (whole thing in one line) and should not wrap to next row
Regards,
TarangHi Shah,
<b>
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'</b>
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_LAYOUT = WA_LAYOUT
I_SAVE = 'A'
IT_FIELDCAT = I_FLDCAT_HEAD
IT_SORT = IT_SORT
IT_EVENTS = I_EVENTS
TABLES
T_OUTTAB = IT_FINAL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC = 0.
<b> CALL FUNCTION 'GUI_DOWNLOAD'</b>
EXPORTING
BIN_FILESIZE =
FILENAME = 'C:\Documents and Settings\vikranthk\Desktop\vikranth.xls'
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = it_final.
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
Thanks
Vikranth Khimavath
Message was edited by: Khimavath Vikranth -
Export Report to Excel File & query design??? Urgent
Hi all,
1) It seems that I cannot use any BEx tools/function afer I export query report to excel file, such as refresh query report,...etc. If I am wrong, please let me know.
2) I have about 18 free CHARs in my report as my clien request (all variables are optional), now I only can run the query in the specific period, otherwise the report will show error and cannot run it. Why? is there any way I can fix it?
Thanks.
J.Hi Prvaeen,
That is what i see in my excel file after exported.
Here is the error I got from web report:
The URL http://sdcbwqa03.amcc.com:8100/sap/bw/BEx was not called due to an error.
Note
The following error text was processed in the system BWQ : Invalid dynamic line component.
The error occurred on the application server sdcbwqa03_BWQ_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Form: COPY_SETXX_LINE of program CL_RSR_REQUEST================CP
Form: GET_DATA_CELLS of program CL_RSR_REQUEST================CP
Form: COMPUTE_NOP of program CL_RSR_LIST_CALCULATION=======CP
Form: COMPUTE_ORDER of program CL_RSR_LIST_CALCULATION=======CP
Form: COMPUTE of program CL_RSR_LIST_CALCULATION=======CP
Form: REQUEST_DATA of program CL_RSR_REQUEST================CP
Form: READ_DATA_INTERNAL of program CL_RSR_REQUEST================CP
Form: READ_DATA of program CL_RSR_REQUEST================CP
Form: READ_DATA of program CL_RSR_WWW_VIEW===============CP
Form: RENDER of program CL_RSR_WWW_ITEM===============CP
Thanks.
J. -
Steps to save a Query/Report as Excel file in Share folder
Hi,
I have a requirement where i need to schedule a BI report automatically on a daily basis and save it in a Sharepoint folder as a excel file. I have gone through the Forums but didnt get a clear idea on how to proceed this with. I read about RSCRM_BAPI transaction but i hope we need to do this manually to save the file each time. Also, in Broadcaster there are options only to send Email & save in Portal.
So, if anybody have idea on saving a Query/Report as excel file in a Share folder automatically, kindly help me in suggesting the steps to do this activity.
Regards,
MuraliHi
1. Create Three Floders in AL11 i.e. in Apllication Server. Eg Name it F1, F2 and F3.
2. First dump the .csv files into F1. (Name xyz.csv).
3. Then using UNIX/WINDOWS (depends on your OS) script , first check the file is there are not in F1, if yes then rename the file with date and time or date and transfer the files from F1 to F2 i.e xyz06032010.csv.
4. Then Create a small ABAP program to check the file in F2, if it is there then Trigger the Event, and using that event you execute teh PC.
5. Then using UNIX/WINDOWS (depends on your OS) script , transfer the files from F2 to F3 i.e xyz06032010.csv
6. Next day morning F1 and F2 are empty and F3 is having the backup files.
So use this method, I used the similar logic and it is working fine.
Timinings are importent i.e what time you need to dump the fule in F1 and what time you need to run UNIX/WINDOWS (depends on your OS) script , transfer the files from F1 to F2 and what time UNIX/WINDOWS (depends on your OS) script , transfer the files from F2 to F3.
OR
1. Create Two Floders in AL11 i.e. in Apllication Server. Eg Name it F1 and F2
2. First dump the .csv files into F1. (Name xyz.csv)
3. Then load the data using InfoPackage, through PC.
4. At the end of the load Attach a simple Program to Move the xyz.csv file from F1 to F2.
5. So next day the file will come to F1 and the it will load and at the end it will move to F2.
Else you can use simple one or two lines of UNIX/WINDOWS (depends on your OS) script to move the file from F1 to F2 , once you load is over.
While moving the file from F1 to F2 you can append the date at the end of the file and then move to F2, it is use full for future reference.
See Blogs and Article, similar logic...
https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
How to transfer the Data from SAP-System to Non-SAP system without additional Cost/License
/people/surendrakumarreddy.koduru/blog/2009/03/11/how-to-transfer-the-data-from-sap-system-to-non-sap-system-without-additional-costlicense
To Check the Files/Reports in Application Server and Trigger Mail Alerts.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/4096bf2d-bcea-2b10-4ab4-e0683830d9b2&overridelayout=true
Thanks
Reddy
Edited by: Surendra Reddy on Mar 12, 2010 6:41 AM -
Hi experts,
I used subtotals in ALV.first three columns I claculated based on the addition of individual column.In fourth column i calculated the value based on three calculated values ...It is not problem.
when i download this into excel file the original value is only coming .the calculated value i.e) calculated based on three values didnt get displayed in excel file..Help me please...
Thank u,
Manjula Devi.DHi.
I find that
List > Export > Spreadsheet
gives no subtotals, but
List > Export > Local File and then Spreadsheet
does give subtotals.
I find that
Views > Microsoft Excel
followed by
Save As
does give subtotals.
John -
Downloading report in excel format.
Hi,
I'm newbie on apex. I'm trying to make a report which is enabled to download in excel format. Report is working correctly what I expected.
But I found single colume data was split multiple cell in downloaded excel file. I don't know how I can merge this cells into one.
I made a sample report with data.
http://apex.oracle.com/pls/apex/f?p=9971:2:0::NO
If you download this report, you can see 'Long Text' is split into two or three cells.
Any information will be welcomed.
Thanks
JaenyunThanks for your reply.
If I change column display type in input form to text field from textarea, It makes to prevent to input enter key in text data.
But I hope user can input enter key in text data. So still I need another way to download data into single cell. -
Regarding ME2L - Download output to Excel File
Hi Friends,
In ME2L, I have requirement to download the Purchasing Documents Per Vendor Report Output to a Excel File.
Could be helpful is there any UserExit or Enhancement point to modified or Can let me know how to do this.
Regards,
sg.Hi,
Go to me2l tcode.....then change the "Scope of List" into "ALV".....and execute it.....now on the tool bar...click on "LOCAL FILE"....now select the radio button "Spreadsheet".....and perform your work..
Arunima -
Download reports to Excel sheet
Hi Experts,
I have report like
Col1 Col2 Col3
AAA 220 21
BBB 400 20
CCC 0 10
Here Col3=Col2/@PV (Presentation Variable)
@PV=20 Default and if Col2=0 then Col3=10 Default.
My Question is, when I am trying to download the report to Excel, Col3 values shows 0 and in filter shows Col3 is equal to @{PV} but I need to show the Presentation Variables values in Excel sheet. I think this is bug in OBISE1 but if you any one able to solve this issue plz help me.
Thanks in Advance
Balaa...For more information,
go through these threads,
Calculations done with PVs not seen when downloaded to excel
Re: PVs not seen in downloaded CSV file-Alternative way of doing?
Regards,
Raghu -
Downloading table to excel-file obeying special conditions
hi all.
i download the internal table to excel file. the excel file is not initial, it has a header line (names of fields). I need to add the data from the table to the file, overwriting the previous data(if it was), but saving the header line. one more requirement: i need to be able to set visible length of each field. is it possible to do using standard function 'GUI_DOWNLOAD'?
thanks all in advance.With GUI_DOWNLOAD, you could only append (and not an actual XLS file, but a DAT or TXT file)
You should try to use OLE instructions, look at <a href="http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm">Download a report to excel with format (border, color cell, etc)</a> for a sample program using OLE.
Regards -
Download report into excel sheet
Hi
I have requirement like, in report output I want a button, if I press that button it has to ask where I have to save that output list in excel sheet format.
Plz help me out
Thanks in advance
Regards
RaoPls do like...
START-OF-SELECTION.
* Select and Process the data .
PERFORM select_and_process_data.
* Display Records.
PERFORM display_result.
* Set the pf-status and user command.
SET PF-STATUS '110_VAL'. " create yr button here
AT USER-COMMAND.
* Download result to spreadsheet.
PERFORM download_to_spreadsheet.
END-OF-SELECTION
FORM download_to_spreadsheet .
DATA:
l_filefilter TYPE string,
l_filename TYPE string,
l_path TYPE string,
l_fullpath TYPE string,
l_user_action TYPE i.
IF sy-ucomm = 'DLOAD'. " Button name (Function code)
l_filefilter = 'EXCEL Files (*.XLS)|*.XLS|Text Files (*.TXT)|*.TXT|All files (*.*)|*.*||'.
CALL FUNCTION 'GUI_FILE_SAVE_DIALOG'
EXPORTING
file_filter = l_filefilter
default_extension = 'xls'
IMPORTING
filename = l_filename
path = l_path
fullpath = l_fullpath
user_action = l_user_action.
IF l_user_action = 1 OR l_user_action = 0.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = l_fullpath
filetype = 'ASC'
TABLES
data_tab = o_file
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ELSEIF l_user_action = 2.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
append = 'X'
filename = l_fullpath
filetype = 'ASC'
trunc_trailing_blanks = 'X'
TABLES
data_tab = o_file
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. " download_to_spreadsheet
" Note : Give the path according yr requirement.
Regards,
RH
Maybe you are looking for
-
Video and Audio Files are different lengths when exporting
I'm just trying to get comforatable with a much faster Windows workstation on PPro and AE. I just exported my first project from PPro to burn to Blu-ray like I've done dozens of times on our older Mac Pro w/o problems. My Ppro file is 7:04:18 in leng
-
Print Screen Opens on Page Immediately - How do I stop it?
Hi, First I'd like to thank blarman74 and Andy because I worked off of the information on this thread: Autoprint Print Friendly Page Autoprint Print-Friendly Page I created a Button: URL call to javascript:PrintPopup() I put this code in the report's
-
Creating a "Business Service" from a WSDL: Can't initialize WsdlEntryHelper
I'm working through a "HelloWorld" setup of Weblogic (10.0.3.5) and OSB (11.1.1.5.0) using OEPE 11.1.1.7.2. I have a OSB Project with a Weblogic Web Service. I've generated a WSDL and when I try to copy/paste or drag-and-drop or load the WSDL file th
-
How do you change the directory of system exec after it has ran once in the current vi
Hi all, Attached is the sub vi that i am running in my main application. I run it twice and change the directory of the file to run. It appears that after i run this vi that i cant change the directory and it tries to run a file from the incorrect
-
Photoshop Elements trial download - Mac OSX 10.8.6 fatal error on installation failure
Can anyone unravel the following and offer a simple solution please? thanks: Exit Code: 7 -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 37 error(s), 12 warning(s) WARNING: DW066: OS requirem