Downloading Document Files in the Background

Hello,
I have two questions regarding downloading document files to a Windows server in the background.
<u>First Question:</u>
My company is currently on SAP R/3 4.6B. We have several programs that use function module WS_DOWNLOAD to download documents to a Windows directory (C drive, network server, etc.). However, WS_DOWNLOAD will only work when run in the foreground, since there is no connection to the presentation server when run in the background. Our work around for this has been to create a UNIX file and then FTP it to the Windows server, which can all be done in the background. Is there another way to download directly from SAP to a Windows server in the background with 4.6B.
<u>Second Question:</u>
We have an upgrade to mySAP ERP 2004 scheduled in the near future. Is it possible to do what I've asked above in mySAP ERP 2004?
Thanks,
Jamey

for your first question
Well you can do it in two ways.
1: instead of using FTP from unix, you can use it from within SAP using ftp function modules. for durther details and examples you can check development class SFTP in se80 for function modules and demo programs.
The advantage of this technique is that if FTP fails for some reason, you abap code can generate a proper error message or log so that user can see that file is not transfered.
2: you can run sap supplied program RFCEXEC.exe on your windows server thus making it as an RFC server, that create an RFC destination pointing to this server in SAP (Transaction code SM59) and use this destination to call RFC function modules to create a file on destination from an internal table. you can use the RFC function RFC_REMOTE_FILE
example: your data is in table outtab
  CALL FUNCTION 'RFC_REMOTE_FILE'
     DESTINATION p_dest
     EXPORTING
         file = file
         write = write
     TABLES
         filedata = outtab
     EXCEPTIONS
       communication_failure = 1 MESSAGE msg_text
       system_failure        = 2 MESSAGE msg_text.
cheers

Similar Messages

  • Reg RFCSDK files download for reading file in the background.

    Hi All,
    I am trying to read a file in the background for which I need the RFCSDK. i am using R/3 Version 4.6C...
    I searched every where in the service market place but with no luck. Can any one tell me if there is any other location to find the same.
    <removed by moderator>
    Any help would be highly appreciated.
    BR,
    Krishna.
    Edited by: Thomas Zloch on Oct 25, 2010 9:58 AM

    Hi Krishna,
    Try at below link,
    [http://blogs.msdn.com/b/adapters/archive/2007/10/07/obtaining-the-rfc-sdk-unicode-libraries-from-sap-service-marketplace.aspx]

  • If I am using a website which opens a pop up window or am downloading a file and the popup downloads window appears, it will minimize itself to the taskbar after a few seconds or if I move the mouse pointer out of the pop up window.

    Occurs every time I use the squeezenetwork.com website to control my squeezebox boom internet radio player. (logitech) Also occurs every time I download a file and the downloads window pops up. The pop up window minimizes to the taskbar, or the browser window is on top of the pop up window.

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Download to Excel In the Background

    Hi,
    Our SAP server is in Windows operating system. Is it possible to download data in Excel file in the background mode?
    Thanks
    Lokman

    1) One way is, using GUI_DOWNLOAD from your program and haedcoding the path to which it should be downloaded.
    2) Check the link below for downloading excel in background... A demo program is also available.
    http://www.sap-img.com/abap/download-in-background-in-excel-format.htm
    Cheers,
    Thomas.
    Please mark points if you got solution.

  • How do I download documents/files from a memory stick onto my MacBook Pro into organised folders

    How do I download documents/files from a memory stick on to my MacBook Pro and organise in to Folders?

    Hi RockingRon,
    Welcome to the Support Communities!
    The Finder application on your Mac is what you need to organize and manage files.  The link below will explain how to use it.  See item #8 - your memory stick will appear in the Devices section of the Sidebar on the left.
    Mac Basics: The Finder
    http://support.apple.com/kb/ht2470
    Mac Basics: Applications, files, and folders (OS X Lion)
    http://support.apple.com/kb/ht2476
    Organizing files and folders
    If you want to add more folders to set up an organizational scheme, here's how to create a new folder:
    Make the Finder active (click the desktop, click inside any Finder window, or click the Finder icon in the Dock).
    From the File menu, choose New Folder; a new "untitled folder" icon appears in the active Finder window.
    Name your folder by simply typing a name in the highlighted text box next to the folder icon.
    Or, you can simply press the Shift-Command-N key combination.
    To organize your files and folders, drag any file, folder, or application that you want into your new folder, or drag the folder into any other folder to establish an organized hierarchy.
    Cheers,
    - Judy

  • How to download a file from the net and save it into .txt format in a datab

    Can some one show me a tutorial on how to download a file from the net and save it into .txt format in a database?
    Thank you,

    http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html

  • How to download a file from the internet using terminal

    how to download a file from the internet using terminal
    does any one know how to download afile from the internet using the Terminal application?

    Use curl. Something like this:
    curl -O http://www.example.com/filename.zip
    For more info, type +man curl+.

  • When i try download a file from the internet it looks like its downloading then when i go to open this file it opens up in the app text edit and says it cannot open i DOS mode? Can anyne help?

    when i try to download a file from the internet it starts to download but when its finished it opens up in the app "text edit" and it says this file cannot open in DOS mode.
    Can anyone help?

    It sounds like perhaps the file doesn't have an extension that the system recognizes. Is this all files, or just one specific one, and if so, which? What is the name (and extension, if it has one) of the downloaded file? What kind of file do you *expect* it to be? (PDF, or whatever). Renaming a file with the appropriate extension can often fix that kind of problem.
    Matt

  • I download a file in the torrent site which is MP4 but unfortunately i tried to delete it but i can not. but all the files that i have is easily to delete only MP4 files i can't delete in the download foldeer please try to help dont know what to do please

    i download a file in the torrent site which is MP4 but unfortunately i tried to delete it but i can not. but all the files that i have is easily to delete only MP4 files i can't delete in the download foldeer please try to help dont know what to do please

    Well you can sync your iPod/iPhone to yur computer or laptop then take the photos off of your iPod like taking photos of of a SD card (from a normal camera) or off of a USB..! Good Luck. plz tick this saying This solved my question if it helps you.

  • How can I download a file over the internet from a WebDAV server?

    I am trying to download a file over the internet from a WebDAV server. I've tried doing it with Datasocket as suggested in these articles,
    <a href="http://digital.ni.com/public.nsf/websearch/f3cc5f7e60a75cb2862567e700696abf?opendocument">Retrieving an Unformatted Text File via FTP or HTTP Using DataSocket</a>
    <a href="http://digital.ni.com/public.nsf/websearch/4FA09E7B3674DA34C1256BD400555C41?OpenDocument">Download a Text File from a Password Protected URL Using DataSocket</a>
    but all I get is error 1181 (protocol unrecognized by Datasocket).
    I know I have the URL correct, because I can put it into a web browser and it works fine - I can download the file manually.
    But I want to have a LabVIEW program do the download automatically.
    I have the internet toolkit, but don't have the foggiest clue how to use it, and am using LabVIEW 7.1
    I am a bit out of my depth here, so any advice welcome.
    Regards,
    Mark.

    MIG,
    What is the URL to the website? Is it an FTP site? The articles you referenced are for specific transfer protocols. If the stie you're trying to get to doesn't follow these protocols, then you'll get the error you're seeing. You may have to use ActiveX to control IE and download the files programmatically.
    Chris C
    Chris Cilino
    National Instruments
    LabVIEW Product Marketing Manager
    Certified LabVIEW Architect

  • Launching Microsoft Access from Internet Explorer to view a downloaded MDB file opens the wrong file (not a problem if I use Firefox)

    When clicking on a link (in Internet Explorer 9) to download an Access MDB file and then choosing to open the file directly in Microsoft Access (2007) instead of saving it, the file is copied to Temporary Internet Files but Microsoft Access tries to open
    a different file and displays an (Unrecognized database format) error.
    When I click on the option to open the file, the MDB file is copied to Temporary Internet Files\Content.IE5 but instead of that file, Access tries to open a different (incorrect) file located in Temporary Internet Files\Content.MSO (e.g. in the above error
    message, NativeView.do is an XML file containing an error message).
    I don't see this problem with Word, Excel or PowerPoint files. When opening a Word file (without saving) the Word file is copied to Content.IE5 but an identical .tmp file is created in Content.MSO which when opened in Microsoft Word displayed the required file
    correctly. The same happens for Excel files. PowerPoint appears to be handled a little differently (no .tmp file created in Content.MSO but the required file is still copied to Content.IE5) but the PPT file is still opened correctly in Microsoft PowerPoint.
    I think the Content-Type "application/msaccess" is fine because Internet Explorer does launch Microsoft Access. It just tries to open the wrong file (or so I think). However, it looks like the file type is not being determined. Here is what I noticed
    when trying to open different Microsoft Office files using Internet Explorer:
    The last one is the MDB file. As you can see, only for this type of file, the "Type" (Microsoft Office Access 2007?) is not displayed in this Open/Save dialog box.
    On Firefox, I don't see this problem. When I tried clicking on the link to the MDB file in Firefox, Microsoft Access was launched and the file was opened correctly. Is there something I can do so the MDB file is opened properly using IE? I can add/change headers
    in the HTTP response that writes this file to the output stream (on disk) if that helps.
    Thanks for your time!

    Sounds like a problem symptom to be discussed in either an IE forum or an Access forum, not here.  How did you come to post here?  ForumsRedesign.  That might be an on-topic issue for this forum.  <eg>
    Can you find your way to either of those other forums easily from here?  Another on-topic question for here I think.   ; )
    Robert Aldwinckle
    Oops, my bad. Thanks for letting me know! :)
    I've re-posted it here: http://social.technet.microsoft.com/Forums/ie/en-US/1a818501-296c-42fb-8abb-ba914629c962/launching-microsoft-access-from-internet-explorer-to-view-a-downloaded-mdb-file-opens-the-wrong-file?forum=ieitprocurrentver
    Hopefully that's the right place for this.
    Cheers!

  • Download a file from the web

    Helo,
    I have to download a file from the web and copy it to the file system (ex: download from http://172.26.20.22/test.csv to \\server01\teste.csv).
    I must do this using only pl/sql and java sources, I have to do this calling a procedure from pl/sql and the server doesn't have any component installed.
    I've built a java procedure using java to download the file, but it give-me AccessControlException when trying to download.
    Can anyone tel me what permissions I should have to accomplish this? Is there any other easier way?
    Thanks.

    Thanks a lot! Your post was very helpfull.
    I create a procedure do download the file from the web and record in a network share.
    But I'm still having a problem while writing that each line in my source file generate a duplicate line in my destination one.
    Can you help me with that problem to?
    Thanks
    My procedure is below:
    create or replace procedure SP_DOWNLOAD(astr_url_orig varchar2, astr_cam_dest varchar2, astr_nome_arq_dest varchar2) is
    l_pagina utl_http.html_pieces;
    l_arquivo utl_file.file_type;
    begin
    l_pagina := utl_http.request_pieces(astr_url_orig);
    l_arquivo := utl_file.fopen(astr_cam_dest, astr_nome_arq_dest, 'W');
    for i in 1 .. l_pagina.count
    loop
    utl_file.put_nchar(l_arquivo, l_pagina(i));
    dbms_output.put_line(l_pagina(i));
    end loop;
    utl_file.fclose(l_arquivo);
    end SP_DOWNLOAD;

  • When i download a file from the web i get "Anti-Virus Program not found " message. This has been happening since I change anti-virus programs for CA etrust to Sophos. How do I get Firefox to recognise my new Anti-virus program?

    every time i download a file from the web (ie. a PDF file) i get "Anti-Virus Program not found " message. This has been happening since I changed anti-virus programs for CA etrust to Sophos. How do I get Firefox to recognise my new Anti-virus program?

    That is a very good warning provided by the Download Statusbar extension. Something like that should been built into Firefox. I filed this Bug report a couple of years ago, about the lack of a warning like that. <br />
    https://bugzilla.mozilla.org/show_bug.cgi?id=480855 <br />
    I have looked everywhere that I can think of to find a list of '''IOfficeAntiVirus providers''' ''(as mentioned in the Bug report)'' that will work with Firefox, so I can't answer that for you.
    You might want to ask the developer of the Download Statusbar extension about it. He might know which AV programs are compatible with the Windows API that Firefox uses for the download scan. <br />
    http://dlstatusbar.proboards.com/index.cgi? <br />

  • My i pod touch was erased in the find my ipod app this has set my i pod where i cant do a thing but see a black screen with a rotating circle in the middle of the screen. i tryed to restore and itdosent download actual file to the i touch

    my i pod touch was erased in the find my ipod app this has set my i pod where i cant do a thing but see a black screen with a rotating circle in the middle of the screen. i tryed to restore and itdosent download actual file to the i touch and i cant do a thing with it please help me fix this and if thereis a way with out lossing my data would be great but however it can be done please let me know asap thank u.

    Take it to an Apple Store and they may take care of it for you.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • I just downloaded a file.  The computer says it is not pdf file.  What is wrong?

    I just downloaded a file.  The computer says it is not pdf file.  What is wrong?

    HI krishbiliyar,
    Where did you download the file from? Does the file have PDF filename extension? And where are you getting the message that it's not a PDF file? In Reader or Acrobat?
    I look forward to hearing back from you.
    Best,
    Sara

Maybe you are looking for

  • Photo won't show on cover of Iphoto Calendar after dragging and dropping

    Every year I create a calendar on Iphoto and I have always been able to troubleshoot everything myself. This time, I am stumped. The whole calendar is ready to go but for some reason, the photo I added to the cover will not show up. I am using the sa

  • Mail 3.6 Checking Yahoo Mail - Can I Add Junk E-Mail To My Yahoo Spam List?

    Evening all. I use Mail 3.6 to check all my e-mail accounts, including Yahoo mail. When I receive spam e-mail to my Yahoo account, I can add it to my spam list, but only for Mac mail and not my Yahoo spam list. Obviously the beauty of the Yahoo list

  • Automatic Cost Element Creation

    I understand how to set the ranges OKB2 and run the batch job based on OKB3 to generate the cost elements based on the ranges but does having OKB2 configuration in place automatically setup cost elements for any new individual GL accounts that are cr

  • Organising music on my itouch

    I'm having problems organising my music on my itouch. When I put an album into itunes & transfer the album to my itouch, that works grand, the album appears in my albums directory on the itouch. When i create a playlist of single songs in itunes, and

  • OOffice crashes after startup

    For some reason Openoffice.org will crash if I try to do something with it. Starting it with command 'soffice' from terminal window will display empty window (as expected, some menus, some buttons), but I can't push any button or open any menu - it w