Download or save Text file in specified path from WEB UI
Hi Experts
I am handling a requirment where user borwses the path and set on WEB UI and press on the Button to dowload the content with text file format in specified path(local PC).
I tried to use CL_CRM_FRONTEND_SERVICES=>GUI_DOWNLOAD method to download , but it is throwing an exception of "flush" . I come to know that This method ment for only SAP GUI not for WEB UI.
I have tried to use the class "CL_BSP_UTILITY", but it didn't work well.
Can you please help me to achieve this. Help is most appreciable.
Thanks in Advance.
Chand
Hello,
A simple search on SDN should have given you following links:
Replacing WS_DOWNLOAD with CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
Hope this helps,
Kind regards,
Joost Stallaert
Similar Messages
-
i recently updated my macbook, i don't know if that has any effect to my recent problem, but when i try to download and save .mp3 files from the internet, like i have done in the past, it downloads but not as an mp3 file, its "blank" and when i try to open it, i can't? I NEED HELP !
Here is the download page
-
I'm using yahoo email on firefox but cannot download or save doc file attachments
Emails that I have received on my yahoo account contain attachments, saved as word documents or powerpoint or pdf files. Today, when I tried to download these files, the daownloading software could not recognise the file format in any of the files (I tried with twenty different files), and therefore could not download or save the files. The pop up window simply states "Resolving...." and does not change at all.
Please assist me to download file attachments on emails that come through yahoo, when I use Firefox as my browser.Hi there,
Please take a look at this article ([[Managing file types]]). Let us know if it worked!
Regards,
Ziggy -
Flash Player update 10.3 unable to download and save flv files
Hello,
Since the Flash Player update to 10.3.183.10 it is no longer possible for me to download and save *.flv files. A file of only 2320 kb is saved along with a meta file of 1 kb. The 2320 kb file has a flv extension but the file will not play in any of my media players. Files of mp4 type still download and play fine. The problem only occurred following the last upgrade and even though I uninstalled then reinstalled Adobe Flash Player I cannot overcome the problem. My PC runs MS Windows Vista Home Premium Version: 6.0.6002 Service Pack 2 Build 6002. Browser Internet Explorer 9.0.8112.16421.
Your assistance would be much appreciated.
DiblocThank you.
The problem only occurs when downloading flv files from YouTube. For all video downloads I have been using RealPlayer and experience no problems when downloading flv files from sites other than YouTube.
Have been able to download these files now using the site http://www.savevid.com/
Perhaps YouTube are blocking the use of RealPlayer from downloading flv files? -
How do I download and saves html files off my website to store and save using Dreamweaver CS3?
How do I download and saves html files off my website to store and save using Dreamweaver CS3?
I need to save all files from web and store onto a drive to reupload to a new domain name. I use Dreamweaver CS3.First define your Local Site folder in Dreamweaver. DW will use this folder to store your site files.
Go to Manage Sites > New or Edit site. See screenshots.
Servers: Enter your remote server's log-in details. When complete, hit TEST to see if the connection is working. If all is well, hit SAVE.
From the Files Panel (F8), click on Remote Server to show the files that are currently there. Click the green Down Arrow to GET files from remote server to your local site folder.
Nancy O. -
Downloading pipe delimited text file on to desktop with data in internal
hi all,
how to download pipe delimited text file on to desktop with data in internal
table with an example plz.hi,
u can use the FM GUI_DOWNLOAD.
here is the sample code.
*Internal table to hold the employee details
DATA: it_details TYPE STANDARD TABLE OF x_details,
wa_details TYPE x_details.
*Internal table for file
DATA: BEGIN OF it_details_txt OCCURS 0,
line(700),
END OF it_details_txt.
*Employee details for the file
CLEAR wa_details.
LOOP AT it_details INTO wa_details.
CLEAR it_details_txt.
CONCATENATE
wa_details-var1
wa_details-var2
wa_details-var3
wa_details-var4
INTO it_details_txt-line SEPARATED BY '|'.
APPEND it_details_txt.
CLEAR wa_details.
ENDLOOP.
*Download file in .TXT format to local desktop
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'data.txt'
filetype = 'ASC'
TABLES
data_tab = it_details_txt
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
no_authority = 10
OTHERS = 11.
IF sy-subrc = 0.
MESSAGE 'Data downloaded successfully' TYPE 'S'.
ENDIF. -
How to make the active save-to-file with the data from GPIB ?
Hello,,everybody !!
I want to make the active save-to-file with the data from GPIB since starting the measurement. To save-to-file at the end of measurment is somehow risky for losing the data because my measurment have to take for long time (eg. 24-48 hours).
Thank you in advance for anybody's help !!Thanks Dennis,
I have already append, I got it but still have one small problem that between each line it has the blank line. Example as below ,
16:40:33 54.24
16:40:34 54.23
16:40:35 54.24
I want to get rid of the blank line in between.. Do you have the idea about it ? -
How to read two text files using the Read from spreadsheet.vi and then plot it
I need to read two text files using the read from spreadsheet function and then plot these files over time.
The file with the .res extention is the RMS values (dt and df) and the second file contains the amplitude of a frequency spectrum.
I really appreciate any help..thanks
Attachments:
RMS.txt 1 KB
FREQUENCY.txt 1 KBFrom NI Example Finder:
Write to Text File.vi
Read from Text File.vi
Jean-Marc
LV2009 and LV2013
Free PDF Report with iTextSharp -
Is there any way to download smartform into text file
is there any way to download smartform into text file
Hi,
No you cant save a smart form into text file but you can store it in a XML file.
Goto menu Utilities --> select More Utilities --> select Upload/Download --> click Download and give the path to save the backup for smartform.
Now you smartform is saved to XML file at your PC.
Also you can upload this smartform.
Hope this helps you.
Regards,
Tarun -
Using a text file to provide paths for copy-item
OK, please don't beat me over the head too much for this. I've been trying various methods all day and nothing seems to be working. I have a text file that has a list of folders (full paths including drive letters). I want to copy all of
the folders and their contents to another path. The destination path does not change (d:\temp\destination) but each of the folders in the text file should end up being subfolders of the destination
Sources:
d:\source1 (has file01.txt, file02.txt)
d:\source2 (has file03.txt, file04.txt)
Destination
d:\temp\destination
Should end up with something like
d:\temp\destination\source1\file01.txt
d:\temp\destination\source1\file02.txt
d:\temp\destination\source2\file03.txt
d:\temp\destination\source2\file04.txt
I've tried
Copy-Item -Path D:\Temp\paths.txt -Destination D:\Temp\attachments -recurse -Force
which just copies the file that contains my paths.
I've tried
foreach($line in (Get-Content -Path D:\Temp\paths.txt)){$dest_folder="D:\Temp\destination" | Copy-Item -path $line -destination $dest_folder -force -recurse}
I get an error that says
Copy-Item : The input object cannot be bound to any parameters for the command either because the command does not take
pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
Would anyone mind helping me out here? If I need to create a file that has the source foldername as well as the destination path, I can do that, I just figured there has to be a way to specify a base directory and let powershell do its thing from there.try
$SourcesFile = ".\sources.txt"
$Root = "d:\temp\destination"
foreach ($Source in (Get-Content -Path $SourcesFile)) {
$Destination = Join-Path -Path $Root -ChildPath (Split-Path -Path $Source -Leaf)
Copy-Item -Path $Source -Destination $Destination -Recurse -Force
Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx -
Application Server Download - Tab Delimited Text File
Hi,
I am trying to create a tab delimited text file in application server. Is there any option should i use with the Open Dataset / Transfer statements? My requirement is to download the file (Text - Tab Delimited) into Excel for further analysis. Can you please suggest me a suitable solution for this?
Thanks,
Kannan.Hi,
You can use transactions CG3Y and CG3Z. Its very simple.
Refer sample code:
constants: c_split TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
c_path TYPE VALUE char100 '/local/data/interface/A28/DM/OUT'.
*& Form f1001_browse_appl_file
Pick up the file path for the file in the application server
FORM f1001_browse_appl_file .
DATA: lcl_directory TYPE char128.
lcl_directory = p_direct.
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
directory = lcl_directory
filemask = c_mask
IMPORTING
serverfile = p_f2
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc 0.
MESSAGE s000 WITH text-039.
EXIT.
ENDIF.
ENDFORM. " f1001_browse_appl_file
*& Form f1004_app_file
upload the file from the application server
FORM f1004_app_file .
REFRESH: i_input.
OPEN DATASET p_f2 IN TEXT MODE ENCODING DEFAULT FOR INPUT.
IF sy-subrc EQ 0.
DO.
READ DATASET p_f2 INTO wa_input_rec.
IF sy-subrc 0.
MESSAGE s000 WITH text-030.
EXIT.
ENDIF.
o
+ Split The CSV record into Work Area
PERFORM f0025_record_split.
o
+ Populate internal table.
APPEND wa_input TO i_input.
CLEAR wa_input.
ENDDO.
ENDIF.
ENDFORM. " f1004_app_file
*& Form f0025_record_split
Move the assembly layer file into the work area
FORM f0025_record_split .
CLEAR wa_input.
SPLIT wa_input_rec AT c_split INTO
wa_input-legacykey
wa_input-profile_role
wa_input-read_date.
ENDFORM. " f0025_record_split
DO your manipulation with the data records here.
Popualte data into final internal table and write it back to application server at the desired path.
*& Form f0020_write_application
Write error log to application Server
FORM f0020_write_application .
IF p_f1 IS NOT INITIAL.
CONCATENATE p_direct p_obj sy-datum text-037 INTO p_f2.
ELSEIF p_f2 IS NOT INITIAL.
REPLACE text-036 IN p_f2 WITH text-037.
ENDIF.
OPEN DATASET p_f2 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc 0.
EXIT.
ENDIF.
LOOP AT i_error INTO wa_error.
TRANSFER wa_error TO p_f2.
IF sy-subrc 0.
EXIT.
ENDIF.
CLEAR wa_error.
ENDLOOP.
CLOSE DATASET p_f2.
ENDFORM. " f0020_write_application
HTH,
Regards,
Dhruv Shah -
Downloading two different text files using gui_download
Hi Folks,
I have two internal tables.itab1 and itab2.Generally in most cases I have to download only the data in itab1 as a text file using Gui_download.In some cases if a particular condition is satisfied I need to download both itab1 and itab2 data as two different text files using gui_download.To achieve this I had called the gui_download twice as I have to pass two different internal tables.
But I am getting only itab1 textfile and not itab2 textfile.
In the selection screen I am giving the path as c:\..
Kindly let me know where I am going wrong.
K.Kiran.Hi
You keep the both files in a ITAB and in the loop of that Itab use GUI_DOWNLOAD to download the two files
data: begin of itab,
file like rlgrap-filename,
end of itab.
In initialization event
put the two files into this ITAB.
loop at itab
call function gui_download.
endloop.
check like this
Regards
Anji -
Download Text file to Local drive from BSP Application
Hi Guys,
I am new to BSP, and I am doing a BSP application in which i want to download a text file to local drive C: on click of button. For that I am having a data in Internal table and Onclick event, in model class method DO_HANDLE_EVENT i want to download text file to local machine drive.
Can anybody provide me full code with all data declaration and all?
Your help would be appriciable. Thanks in Advance.Hi Jessy ,
You can download the file from BSP pages using the method
CL_BSP_UTILITY=>download.
Please follow the below mentioned steps.
1.Convert the text to a text table ie Internal table with a line type char255 or some others.
2.Convert the text table into a string.
3.Convert the string to XSTRING.
4.Download that XSTRING as text file using the method
CL_BSP_UTILITY=>download.
Parameters:
OBJECT_S - XSTRING data
CONTENT_TYPE = ' application/download'
CONTENT_DISPOSITION = 'attachment; file=test.txt'
RESPONSE = runtime->server->response
NAVIGATION = navigation
OBJECT_T
I dont have system to give a programatical explanation to u.
If you have any doubt kindly post.
Reward for every useful solutions..
Best Regards
Renga -
Problem while downloading data to text file using GUI_DOWNLOAD FM
Hi,
When we download the data using the GUI_DOWNLOAD FM into the text file tab delimeted(table is built dynamically),
Its coming in this format as shown below
Field1 Fileld2 Field3
1 2 3
However I want it in this way
Field1 Fileld2 Field3
1 2 3
Could someone please let me know how to achieve this?Do something like this:
concatenate field1 field2 field3 into lv_outx "(data of sufficient length, type c)
separated by gc_tab. "Horizontal tab constant created as note above
condense lv_outx no-gaps. "squeeze out extraneous spaces but beware if you have text with spaces...drop the no-gaps.
append lv_outx to my_internal_table. "table with a single field type char, sufficient length
open dataset datasetname...
loop at my_internal_table into ls_internaltabstructure.
transfer internaltabstructure-outx to datasetName [length if needed].
endloop. -
Extract the photo in ArchiveLink and save the file in a path of the server
Hi all,
I need extract the photo file in SAP HCM, object HRIEMPFOTO, and save as a file in a path of the application server, can someone help me how can I do??
thanks!!!
Best Regards,
FélixHi Felix,
You should use archive link to upload employee photos by using OAXX transactions. In transaction PA30, you can use Extract->Dispaly all facsimiles to display the photo. Please find further information in the online help :
http://help.sap.com/saphelp_40b/helpdata/en/e9/81d15d449611d189700000e8322d00/frameset.htm
Hope it helps,
Kind Regards
Christine
Maybe you are looking for
-
Error in Select Statement " Comma Without Preceding Colon"
Helo Gurus. This is my select query : SELECT SINGLE STREET HOUSE_NUM1 CITY2 TEL_NUMBER FAX_NUMBER POST_CODE1 STR_SUPPL1 REGION INTO ( L_STREET, L_HOUSENUM, L_CITY2, L_TELNUMBER , L_FAXNUM
-
Splitting applications between HFM servers/Cluster
We have 12 HFM applications in our HFM cluster. There is one big application out of 12. During busy time of the month the HFM performance gets pretty bad and all the applications are affected. I am thinking to split applications in different HFM serv
-
Updates from HP agent ... always runs at start up and slows down computer
HP Pavilion a1222n, Win XP Home When we first turn on the computer it is slowed down by "Updates from HP agent running" checked through the task manager. I would like to disable the automatic running of this and run it when I want to run HP Updates.
-
Help with tcl script with labview
I am trying to run a program using tcl script via labview. Currently I am using wish80 tcl to run it. And it works fine. I tried using example I found on NI website called Run Tcl Script.vi I will attach the vi and the tcl file. Hope someone will hav
-
Lion Login gives me Beach Ball lock up - Macbook Pro 2010
Ever since i updated my Macbook Pro 2010 15 i7 to lion, when i turn it on and it comes to the log in screen (i need it password protected for turning on), the beach ball just spins and it wont let me type my password in. I ran disk permissions, i mad