How to download the file Interactive report
Hi ,
I am using that Issue Tracker 1.0 in APEX 4. I added one more item as File upload. Here we uploading screen shots. Now what happened when i press the create button the file name got stored in my table. the file stored in Apex_Application_files.
After inserting the data its shows the Interactive report ,In that report i have a download link for each and every issue when i pressed the button the corresponding file should be come...
How to download that particular file. ?????
In that report there is a option for Link URL in that URL manually i passed on file id. Its working..
Now i have one item i stored the file id. How to pass the Item to My URL??
Please help me out.
Thanks in advance
Cheers,
Shan.....
Edited by: JayaShan on 8 Jan, 2010 12:58 PM
Search Google for a tutorial using terms like "AS3 FileReference download tutorial"
Here is a link for that search...
http://www.google.com/search?q=AS3+FileReference+download+tutorial&rls=com.microsoft:en-us &ie=UTF-8&oe=UTF-8&startIndex=&startPage=1&rlz=1I7GGNI_en
Similar Messages
-
how to download the files from mail like gmail or yahoo or hotmail to my iphone 5s.I have not seen the option in my iphone 5s
Download what files?
What is the actual problem that is occurring? -
One field is missing in downloading the file from report
Hi Friends,
I have a problem with downloading the file from SAP.
Actually the report has to download 6 fields from the list of the report to a .txt file on the presentation server. But it is downloading only 5 fields. The missing field is DEA#. Actually now i have to fix that problem.
I found that in the download process they have not inlcuded the DEA# field.
Here in this 1 field is not getting dowloading from the list of the report to the text file.
I'm giving a portion of the code.
Like this they r calling the FM:
FORM DOWNLOAD_FILE.
CALL FUNCTION 'DOWNLOAD'
EXPORTING
FILENAME = P_OUTFIL
TABLES
DATA_TAB = I_OUTPUT.
IF SY-SUBRC <> 0.
WRITE:/ 'Error downloading file'.
ENDIF.
in code we have,
data: v_output type t_output,
data: i_output type t_output occurs 0.
and,
BEGIN OF T_OUTPUT,
RECORD(200),
END OF T_OUTPUT.
when i debug the program,
the record field is showing only the 5 fields not the missing 6th filed)DEA#).
and we have another FORM :
*& Form FORMAT_FILE_WITH_TABS
Insert tabs between fields so when uploaded in Excel, the
record will be separated into columns where a tab is found.
FORM FORMAT_FILE_WITH_TABS.
LOOP AT I_KNA1 INTO V_KNA1.
CONCATENATE: V_KNA1-KUNNR
V_KNA1-NAME1
V_KNA1-NAME2
V_KNA1-STRAS
V_KNA1-ORT01
V_KNA1-REGIO
V_KNA1-PSTLZ
INTO V_OUTPUT SEPARATED BY C_TAB.
APPEND V_OUTPUT TO I_OUTPUT.
CLEAR V_OUTPUT.
ENDLOOP.
ENDFORM. " FORMAT_FILE_WITH_TABS
If you look into this FM, there is no mention of DEA# field,
i hve tried to correct it by adding the "v_likp_dea" in the FM. when i did like this it is showing the DEA# field in the downloaded .txt file but only 1 value for all the records.
My question is for each record i have to show its unique DEA#.
I guess i could do this by putting it in loop, could anybody tell me how i can i do that, Please
Thank you very much.
Raj.In the subroutine format_file_with_tabs ,
You should read it_likp with the key that uniquely identifies for dea# . This should be done in the loop at i_kna1.
Suppose kunnr identifies a unique dea# in it_likp internal table , then you should write
FORM FORMAT_FILE_WITH_TABS.
LOOP AT I_KNA1 INTO V_KNA1.
clear v_likp.
read table it_likp into v_likp
with key kunnr = v_kna1-kunnr binary search. (should sort the itab to use binary search with read. )
CONCATENATE: V_KNA1-KUNNR
V_KNA1-NAME1
V_KNA1-NAME2
V_KNA1-STRAS
V_KNA1-ORT01
V_KNA1-REGIO
V_KNA1-PSTLZ
v_likp-dea
INTO V_OUTPUT SEPARATED BY C_TAB.
APPEND V_OUTPUT TO I_OUTPUT.
CLEAR V_OUTPUT.
ENDLOOP.
ENDFORM. " FORMAT_FILE_WITH_TABS
Message was edited by: Kalidas Cheroolil -
How to download the file in as3.0
hi
in as3.0 click the button and download the file in the local path folder.
how to write the code in as3.0. help me
thksSearch Google for a tutorial using terms like "AS3 FileReference download tutorial"
Here is a link for that search...
http://www.google.com/search?q=AS3+FileReference+download+tutorial&rls=com.microsoft:en-us &ie=UTF-8&oe=UTF-8&startIndex=&startPage=1&rlz=1I7GGNI_en -
How to download the files, that are located in server, from the client?
Hello folks,
My program is like that, the files are located in the server and stored in file system.
I can only know the server name and the directory listing, so that I can show the file names from that directory on the browser.
The user might downloads those files from the browser and he might deletes those files through the browser.
That user has valid right to do so and the files can be any type of extension.
So how can I write this kind of program? Currently the whole system is in struts, so how can I make compatible with struts technology?
Do u have any ideas?
Regards,
PhyoThank you, grigpm. But actually I want the user to select the file that he wants to download rather than setting it in the configuration file. If it is possible, let me see the sample code of FileManager servlet. I've tried with some ways but I can only download from the same server with the application server. I want to download from different server. I hope someone can help me with sample code....
Best regards,
Phyo -
How to download the file and delete the file
plz send me reply
Hi Nagalakshmi,
If you want to download a file on to the presentation server from your application then please have a look at the methods listed under the OO class CL_GUI_FRONTEND_SERVICES from transaction SE24 to perform similar operations as requested by you on files on presentation server.
However if u are considering downloading and then deleting a file on the application server, then u would need commands like OPEN DATASET, TRANSFER and CLOSE and eventually DELETE DATASET.
F1 on the commands should help you along.
Hope this helps.
Regards,
Aditya -
Problem in Downloading the file by using FM : GUI_DOWNLOAD in XLSX format
Dear Experts,
We are using FM: GUI_DOWNLOAD to download the data in .XLSX Format,But it is giving ERROR while opening the Excel file.
So,Please help me how to download the file in .XLSX format.
checked DC30 - for file extensions..there we were observed the suffix field is taking only 3 characters,it is not accepting 4 characters,kindly tel me how to increase the field size for SUFFIX field.
and USED : CL_GUI_ALV_GRID and CL_GUI_FRONTEND_SERVICES.
Still Not possible to download the data in XLSX format.
Kindly Provide the Solution.
Regards,
Nagarajuhi
Try to use like below
Display save dialog window
call method cl_gui_frontend_services=>file_save_dialog
exporting
window_title = 'FILE PATH'
default_extension = 'XLS'
default_file_name = 'CREDIT LIMIT DATA'
INITIAL_DIRECTORY = 'c:\temp\'
changing
filename = l_filename
path = l_path
fullpath = l_fullpath
user_action = l_result.
Check user did not cancel request
check l_result eq '0'.
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = l_fullpath
filetype = 'ASC'
APPEND = ' '
write_field_separator = 'X'
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 = ' '
WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
SHOW_TRANSFER_STATUS = ABAP_TRUE
IMPORTING
FILELENGTH =
tables
data_tab = it_crdt_limit
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
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
endif.
endif.
Thanks
Gupta -
How to download .doc file from ms sql
Hi guys.,,,!
I have a problem in file uploading and downloading. The problem is i upload my .doc file in ms sql server successfully completed. After that i would like to download the file from the database.can anybody tell that how to download the file from the database.mani_miit wrote:
I have a problem in file uploading and downloading.OK.
The problem is i upload my .doc file in ms sql server successfully completed. Sorry, I don't see a problem here? You said that it is successfully completed. Please elaborate the problem.
After that i would like to download the file from the database.can anybody tell that how to download the file from the database.Just get an inputstream of the file from the database using ResultSet#getBinaryStream() and write it to the output of whatever UI technology you're using. -
How to download the output of a report along with column header
Hi,
Could someone please tell me on how to download the output of a report along with column header to .txt format. A download option needs to be given to the user using physical and logical file names .The report basically contains header details and item details and requirement is to download the same format into an .txt format.Hello,
Try this FM:
Data: being of itab occurs 0,
matnr like mara-matnr,
maktx like makt-maktx,
end of itab.
data:begin of fld_tab occurs 0,
fld_name(20),
end of fld_tab.
fld_tab = 'Material'.
append fld_tab.
fld_tab = 'Material Desc'.
append fld_tab.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME = 'C:\1.txt '
FILETYPE = 'DAT'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = itab
FIELDNAMES = fld_tab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Naimesh -
How to validate the file path when downloading.
Hi
How to validate the file path when downloading to Presentation or application Server.hiii
you can validate file path by following way
REPORT zvalidate.
TYPE-POOLS: abap.
DATA: w_direc TYPE string.
DATA: w_bool TYPE abap_bool.
w_dir = 'c:\Myfolder\'.
CALL METHOD cl_gui_frontend_services=>directory_exist
EXPORTING
directory = w_direc
RECEIVING
result = w_bool
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
not_supported_by_gui = 4
OTHERS = 5.
IF NOT w_bool IS INITIAL.
WRITE:/ 'Directory exists.'.
ELSE.
WRITE:/ 'Directory does not exist.'.
ENDIF.
regards
twinkal -
How to download the blocked ALV output to PDF file.
How to download the blocked ALV output to PDF file.
I am able to download the BLocked ALV output in PDF format,
but the each bolck in ALV is displaying different pages of PDF.
In my report I have 4 block in 1 page, I am able to see the output in PDF but in different page.
How to avoid the Page-break in PDF.
Thanks,
Ravi Yasoda.hi,
I believe that your have 4 containers on the screen with individual ALV display. in this case, there is no way to get combined PDF output to my knowledge.
However you can use Smartform/Sapscript as output which would allow you to display ALV in blocks and also print it in one.
Regards,
Nirmal -
How to download the PO data to excel file
Hi..
How to download the SAP purchase order details on EXCEL file.
Thank and Regards
Baskaran.PUse tables EKKO and EKPO for header and item detail information
Use the below reports
Source - SAP Standard Reports - ERP Operations - SCN Wiki
No
Broad level Report
Options available for report execution
Tcode in SAP
Remarks
Used by
Report area
1
Purhase order analysis
By delivey schedule
By purchase order details
By purchase order hostory
ME80FN
This report can be used for displaying the information of purchase orders created and the transactions that has taken place.
Purchase
Purchase
2
Purchase order display
By supplier
By material
By buyer
By plant
ME2L
ME2M
Facility available to restrict the viewing based on the status of PO viz. Partly received,
Closed, No GR made
Bill passing not done , etc.
Purchase
Purchase
3
Anlysis of order values
By Material
By buyer
By supplier
ME81N
Totals analysis
ABC analysis
Analysis using comparison period
Frequency analysis
Purchase & Finance
Purchase
4
Goods receipt forecast
By purchase order
By vendorwise
By material wise
ME2V
Number of anticipated deliveries
Pruchase & Stores
Purchase
5
Stock lying with subcontractors
By Supplier
By material
ME2O
Can be useful in deciding which component is to be given to supplier if the procurement is on subcontracting basis. It also helps in giving the visibility of stocks lying at subcontractor.
Pruchase & Stores
Purchase
6
Monitor supplier confirmation
By Supplier
By buyer
ME2A
This program is useful especially for imported purchase orders or such cases where the lead time of procurement is very high.
Purchase & planning
Purchas -
How to download the application file to local file by back ground job?
hi:
can any one tell me how to download the application file to local file by back ground job? thanks in advance..
MonsonHi,
In order to download a file from application layer to a local file in background,
first write a report(ZREPORT1) in which do the following steps:
OPEN DATASET g_file_1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.
loop the g_file and append all the data into another internal table.
end of this report you shd have all the data in the application layer file into your internal table.
Now create another report(ZREPORT2) and submit this report in background.
that is,
JOB_OPEN
JOB_SUBMIT and
JOB_CLOSE
and in job_submit submit ZREPORT1 which downloads the file in application layer.
Please reward points if helpful.
Regards,
Arul. -
How to download the script data into pdf file
how to download the script data into pdf file
i have one option to download the script data to pdf file --->rstxpdft4 program.
i have one doubt how to use this proogram.or any function module to download the script data to pdf file.
Thanks and regards,
Sri.Hi Sri Sai,
I know one method to convert the sapscript to pdf file :
first generate a Spool Request for the required Sapscript
then goto transaction SP01 and copy the generated Spool Request number
now execute the SAP report RSTXPDFT4
here enter the copied Spool request number and the target directory into the parameters
execute the report
required pdf file will be generated into the target directory
i hope it will help you out
Please refer this simple program:
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Reward points if found helpful....
Cheers,
Eshwar. -
How to download the report data in xml format
Hi All,
how to download the report data (sql/interactive) in xml format...
Thanks,
VinothYou will want to do something like this:
http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
except customize it for xml.
hth,
John
Maybe you are looking for
-
No AC3/DTS pass-through option on my X-
As the title says, i miss the pass-through option in the console to pass the signal to an external decoder (the whole decoder section is missing). What's the problem? Please help.Message Edited by Nazgul9 on 06-0-2006 06:00 PM
-
Pl/sql block to retrieve information from three tables.
Hi Everyone, I have three tables. Student table, bookDetails table and bookIssue records table. This is my question Write a plsql block that has to display bookid, booktitle, student_name, earliest issue date and recent issue date taking the input of
-
If i want to give informative message in an exit like for eg. when the exit fires , i should be able to display information like "Error occurred due to", "Solution" etc. how can i do it. Right now i am able to write a single sentence, but if i want t
-
Internal Behaviour of Truncate Table Command in Oracle Database
Hi, Can anyone let me know the internal behaviour of Truncate Table Command in Oracle Database? Thanks, Harshad.
-
Advanced Settings for characteristics in QD
Hi, It should be possible to reach "Advanced" - Settings by double click on a characteristic in Query Designer (e.g. switch display in BexAnalyzer from posted values to master data). What settings in BI (?) have to be maintained to do so? (7.0) BR, T