Download from server to local?

Hi,
Is there an FM to download file from server(AL11) to local using SAVE DIALOG?
tnx, Adibo.

Tnx !!
REPORT  z_upload_doc.
DATA: lv_pad TYPE dxfields-longpath,
      lv_pad_doc TYPE dxfields-longpath.
DATA: lv_filename TYPE  sdbah-actid,
      lv_extension TYPE  sdbad-funct.
SELECTION-SCREEN BEGIN OF BLOCK selectie WITH FRAME TITLE text-024.
PARAMETERS:     pa_pdf RADIOBUTTON GROUP con,
                pa_txt RADIOBUTTON GROUP con.
SELECTION-SCREEN END OF BLOCK selectie.
START-OF-SELECTION.
  IF pa_pdf = 'X'.
    PERFORM get_path USING 'ORDERCONFIRMATION_PDF'.
  ELSE.
    PERFORM get_path USING 'ORDERCONFIRMATION_ACII'.
  ENDIF.
END-OF-SELECTION.
FORM get_path USING path.
  SELECT SINGLE low
    FROM tvarvc
    INTO lv_pad WHERE name = path.
  IF lv_pad IS NOT INITIAL.
    CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
      EXPORTING
        i_path         = lv_pad
      IMPORTING
        o_path         = lv_pad_doc
      EXCEPTIONS
        rfc_error      = 1
        error_with_gui = 2
        OTHERS         = 3.
    IF sy-subrc <> 0.
    ELSE.
      CALL FUNCTION 'SPLIT_FILENAME'
        EXPORTING
          long_filename  = lv_pad_doc
        IMPORTING
          pure_filename  = lv_filename
          pure_extension = lv_extension.
      CALL FUNCTION 'TH_DOWNLOAD_BINFILE'
        EXPORTING
         filename                   = lv_filename
         directory                  = v_extension
         with_dialog                = 'X'
         buflines                   = 100
         start_position             = 0
         end_position               = 0
     EXCEPTIONS
         file_open_error            = 1
         user_canceled              = 2
         file_write_error           = 3
         no_authority               = 4
         error_no_gui               = 5
         cntl_error                 = 6
         not_supported_by_gui       = 7
         disk_full                  = 8
         position_error             = 9
         misc_error                 = 10
         access_denied              = 11
         OTHERS                     = 12
      IF sy-subrc <> 0.
      ENDIF.
    ENDIF.
  ENDIF.
ENDFORM.                    "get_path

Similar Messages

  • File download from server

    Hi All,
    I have written a code that downloads a file from server using the following link given by Frank,
    File download from server
    I am able to get a open/save/cancel dialog with help of this. But issue is that applications of kind .doc/.xls/.ppt gets opened (If user clicks open) right in the internet explorer window instead of getting opened in a new office application....
    However .pdf runs fine.
    Can any thing be done for this???
    Any help....
    Regards,
    Amitt

    Hi,
    what do you have for the content disposition header?
    Try this:
             response.setHeader("Cache-Control", "max-age=0");
             response.setHeader("Content-Disposition", "attachment; filename=\"" + fname + "\"");
             response.setContentType("application/x-download");Brenden

  • How to fix message not downloaded from server

    Hello everyone,
    My name is Joshua Kahley, and I am an IT technician in charge of handeling email related issues in my company.  We host our own web and email server and since the I-OS 7 update we have had a problem where many messages cannot be retrieved from our email server.  I confirmed with my own phone that this issue did not exist prior to I-OS 7, messages that displayed fine before were no longer be readable on I-OS 7 when i upgraded.
    The error message I recieve is "This message has not been downloaded from the server"
    I'm not sure if this is a problem that can be solved on the phone itself as I have tried changing numerous settings.  Has anything changed with the way I-OS 7 handles IMAP messages that my require us to change settings on our server?  No other email provider has this issue as far as I can tell; in addition, all of our customers have the same issue (they all have their email through our servers)
    If anyone has any insight into this I would greatly appriciate it.
    ~Joshua Kahley

    No fix, but I found a work-around for a single message that iOS email refuses to download at http://www.bitcraft.com.au/iphone-mail-app-says-this-message-has-not-been-downlo aded-from-server/
    that reads:
    ...here’s a quick fix… Forward the message. Just click Forward and it will ask you “Download rest of message first?”. Say yes and then you will see the old message quoted in the forward. Now if only Apple would make than an option without having to ‘fake’ forward it…
    The above worked for me when I encountered "This message has not been downloaded from server” on my iPad 3 running iOS 7.1.1.

  • Email message won't download from server since installing IOS7

    Some of my emails both on my iPad and iPhone won't download from server since installing IOS7!

    I'm having the same problem with both my iPhone and iPad after installing iOS7.  Checked all the settings and spoke to my email  provider and everything is set up properly.  It's hit or miss which messages don't download from the server too.  And occasionally, a message that does download to my iPad, won't download on my iPhone.  Everything on my PC downloads properly, it just seems to be an ios7 issue as this wasn't a problem before.  My wife uses the same email provider and is still on iOS6.x with no issues.  Any help or suggestions would be great.

  • Message "not downloaded from server. You need to take this account online

    After upgrading to 10.4.9, when I click on any of the old emails in my inbox I get the message "this message not downloaded from server. You need to take this account online in order to download it."
    I can still read all email in any other mailbox.
    I can read all email received after upgrading.
    I appreciate any help.
    G4 17 inch   Mac OS X (10.4.9)   1 gb ram

    You upgraded to 10.4.9 from what?
    If you upgraded from Mac OS X 10.3 or earlier, the problem is that the conversion from Mail 1.x to Mail 2.x is broken. Take a look at the following thread to better understand the problem:
    Help! "You need to take this account online in order to download it."
    More specifically, if this is a POP account, the following procedure should allow you to fix the Inbox problem. A similar procedure should allow you to fix other mailboxes that might also be affected:
    1. Quit Mail if it’s running.
    2. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to fix the problem. You can do this in the Finder by dragging the folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is stored.
    3. Create a new folder on the Desktop and name it however you wish (e.g. Inbox Old). It doesn’t need to have an .mbox extension.
    4. In the Finder, go to ~/Library/Mail/POP-username@mailserver/INBOX.mbox/.
    5. Move the files mbox and Incoming_Mail out of INBOX.mbox, into the Inbox Old folder just created on the Desktop. These files contain all the messages that were in the mailbox before the upgrade to Tiger, and maybe even some messages that had been deleted. mbox is the most important. Incoming_Mail may or may not be present.
    6. Move any strangely-named Messages-T0x... folders to the Desktop (not into the Inbox Old folder). These folders are to be deleted after fixing the problem. They are temporary folders created during an import or an indexing process, and Mail should have deleted them when done. Their presence is a clear indication that something didn’t work as expected. If you’ve been using Mail after the conversion and have already tried to fix the problem by rebuilding the mailbox or something like that, they might contain messages that are neither in Messages proper nor in the mbox file, so keep them around until the problem is fixed.
    7. Move everything else within INBOX.mbox, except the Messages folder, to the Trash.
    The result of the above should be that INBOX.mbox contains the proper Messages folder only, and the Inbox Old folder on the Desktop contains the mbox and Incoming_Mail (if it exists) files only. Now, proceed as follows:
    8. Open Mail.
    9. The account’s Inbox should properly display in Mail as many messages as *.emlx files are in ~/Library/Mail/POP-username@mailserver/INBOX.mbox/Messages/. If that’s not the case, select the mailbox in Mail and do Mailbox > Rebuild.
    10. In Mail, do File > Import Mailboxes, choose Other as the data format, and follow the instructions to import the Inbox Old folder that’s on the Desktop.
    As a result of doing the above, some messages may be duplicated now. Andreas Amann’s Mail Scripts has a Remove Duplicates script that you may find useful.
    Do with the imported mail whatever you wish. You may move the messages anywhere you want and get rid of the imported mailboxes afterwards.
    If all is well and you don’t miss anything, the files on the Desktop can be deleted, although you may want to keep them for a while, just in case.
    Take a look at the following article (also referenced in the thread I mentioned at the beginning of this post) to learn what you might have done before upgrading to minimize the risk of this happening, and what you may do after fixing the problem to avoid similar issues from happening in the future. DON’T do now what the article suggests, though, as that would make things worse in the current situation:
    Overstuffed mailbox is unexpectedly empty
    Ask for any clarifications or if you need further assistance.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • Mail not being downloaded from server?

    Hi I've been having an issue with my iPhone 4S (iOS8), where the mail pops up and you can see the preview, but when you go to open it it says "this message has not been downloaded from server" Any help would be greatly appreciated thanks

    Hi there Ella,
    If your mail have yet to view your email on your phone, I wld start by quitting the mail app, and trying again:
    iOS: Force an app to close
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    Then use the troubleshooting in this article to help resolve the issue if it persists:
    Get help with Mail on iPhone, iPad, and iPod touch
    To make sure that you're connected to the Internet, open Safari and go to www.apple.com.
    Log in to your email provider's website to make sure that the account is active and the password is correct.
    Make sure your settings are correct using Mail Settings Lookup.
    Restart your iOS device.
    Delete the affected email account from your device.
    Tap Settings > Mail, Contacts, Calendars.
    Tap the affected email account.
    Tap Delete Account.
    Add your account again.
    Follow these steps for specific alerts.
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • FOUND SOLUTION TO EMAIL ISSUE - "message not downloaded from server"

    It took me 4 days to figure it out but there is a solution to the problem "the messsage has not been downloaded from server" and "the message has no content".
    I do not have to set up "push" accounts from yahoo or gmail and it works with my corporate email.
    Apple can reach me at <Message was edited by: Host> to discuss this issue.

    I'm not a computer technician, and if you were to give me a few days looking at the problem, i'm sure I or anyone else could provide a solution. I'm not too bothered about the message appearing 50% of the time as i'm usually within easy reach of a Laptop or PC or can find another method to get access to my email.
    So i'm not pi**ed off that you have found a solution. I'm just trying to obtain information for a post that says "FOUND SOLUTION TO EMAIL ISSUE - "message not downloaded from server" in the Apple HELP FORUMS...

  • Mail app crashes-doesn't finish downloads from server

    Mail app just started crashing this morning. It will start downloading from the server, then crashes. Ran fine yesterday.
    Things I tried. Restarted computer, Ran Applejack no issues. Created a new user. Mail works there. I'm guessing one of the preferences is corrupt. But which one?
    everything up-to-date

    You’re welcome, but disabling the junk filter was meant just to identify the problem; it’s clearly not an acceptable solution. If the junk filter is crashing on you, try resetting the junk filter database (Preferences > Junk Mail > Reset) and re-enabling the junk filter. If Mail starts crashing again, proceed as follows to thoroughly get rid of all the files used by the junk filter, so that Mail creates them anew:
    1. If you have a .Mac account and .Mac synchronization of Mail data is enabled either in Mail > Preferences > General or in System Preferences > .Mac, disable it before proceeding.
    2. Quit Mail if it’s running.
    3. In the Finder, go to ~/Library/Mail/.
    4. Locate LSMMap2 and move it to the Trash. This file stores information about what does and doesn’t constitute junk, and allows the junk filter to learn. Deleting this file is what Preferences > Junk Mail > Reset does. The file was called LSMMap in early versions of Mail; delete that as well if you see it.
    5. Locate any MessageRules.plist (Mail 2.x) and/or MessageSorting.plist (Mail 1.x) files and move them to the Desktop. This is where Mail stores all the rules, including the rule that governs what the junk filter does.
    6. Locate DefaultCounts and move it to the Trash. This file keeps statistics about the number of messages that have been marked as junk, either automatically by the junk filter or manually by the user.
    7. Look for the account folders. The name of each account folder starts with the account type (POP, IMAP, Mac), followed by the account username and the incoming mail server. Open each of the account folders, locate the Junk.mbox or Junk.imapmbox folder within it, and move it to the Trash if present.
    8. Go to ~/Library/Mail/Mailboxes/. Locate any Junk.mbox mailboxes there (their name may include the account name in parenthesis), and move them to the Trash.
    Note: Steps 7 and 8 may be unnecessary. Also, messages in Junk mailboxes with an .mbox suffix are stored locally and will be lost forever as a result of doing steps 7 and 8. If there is a chance that you have legit messages there that you want to preserve, either try skipping those steps, or move the messages to another mailbox in Mail first, or move Junk.mbox to the Desktop (to be imported back later) instead of to the Trash. Junk mailboxes with an .imapmbox suffix aren’t a concern because they are stored on the server and Mail would rebuild them automatically.
    9. Open Mail. As a result of removing the rules file, the junk filter will be disabled now. You may want to either shut down the Internet connection before opening Mail or take Mail offline immediately after opening it, to prevent Mail from downloading anything until the junk mail filter has been enabled again.
    10. Go to Mail > Preferences > Junk Mail and enable the junk filter.
    11. Go online again if you went offline in step 9.
    12. If the problem is fixed now and .Mac synchronization of Mail data was enabled at the beginning, enable it again, go to System Preferences > .Mac > Advanced, click Reset Sync Data, and choose the appropriate options to reset the Mail data stored on the .Mac server with the data locally stored on the computer, i.e. sync data must flow from the computer to the .Mac server.
    If the above solves the problem and you don’t have any rules you’d like to preserve or recreating them is not a daunting task, the files moved to the Desktop in step 5 can be deleted.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. That is, ~/Library is the Library folder within the user’s home folder, i.e. /Users/username/Library.

  • Reg: Html file download from server

    My requirement is download file from server. Am using jsp and servlet this. While downloading the file a dialog box with open, save and cancel option. When try to open html file it, open in the same window .
    Req: it should be open in seperate window (ie)
    Please advise me how to open a html file in seperate explorer
    Am using below Code for download a file:
    private void downloadFile( HttpServletResponse response, String strFileType, File file ) throws Exception
    logger.trace(Util_Client.INFO, Util_Client.getInfo(), "File download Started.");
    BufferedInputStream bufferedInputStream = null;
    try {
    String strContentType = fileExtnContentTypeMapping.get(strFileType);
    if(strContentType == null)
    strContentType = fileExtnContentTypeMapping.get(CLConstants.FILE_EXTN_OTHERS);
    response.setContentType(strContentType);
    String strHeader = "Attachment;Filename=" + file.getName();
    response.setHeader("Content-Disposition", strHeader);
    byte data[] = new byte[CLConstants.FILE_DOWNLOAD_STREAM_READ_BUFFER];
    bufferedInputStream = new BufferedInputStream( new FileInputStream( file ), CLConstants.FILE_DOWNLOAD_STREAM_READ_BUFFER );
    int count;
    while((count = bufferedInputStream.read(data, 0, CLConstants.FILE_DOWNLOAD_STREAM_READ_BUFFER)) != -1 ) {
    response.getOutputStream().write( data, 0, count );
    response.getOutputStream().close();
    }catch (ClientAbortException clientAbortException) {
    clientAbortException.printStackTrace();
    }finally{
    try {
    if( bufferedInputStream != null )
    bufferedInputStream.close();
    } catch (Exception exceptionFinally) {
    exceptionFinally.printStackTrace();
    logger.trace(Util_Client.INFO, Util_Client.getInfo(), "File download Ends.");
    Thanks in advance
    Edited by: sunRP on Oct 11, 2009 9:47 AM

    The best you can do is set the correct content type.
    Once the file reaches the client's browser it's up to the client and their browser settings to decide what to do with it.
    You can't control the client's browser from your servlet.

  • Some Email cannot be downloaded from server

    After 5 years, I have recently(over the last two weeks) cannot download some of the emails I receive to my POP account. It's weird. I boot my computer up I see my emails with attachments, photos, etc. and Then when I revisit some of the emails they show this message: THE MESSAGE FROM (EMAIL ADDRESS) CONCERNING "MESSAGE" HAS NOT BEEN DOWNLOADED FROM THE SERVER. YOU NEED TO TAKE THIS ACCOUNT ONLINE IN ORDER TO DOWNLOAD IT. Sometimes all messages default to this and sometimes only a few.
    Does anyone know what this is and how to correct it?
    Thanks,
    Frank Zamacona
    Powerbook G4   Mac OS X (10.3.9)   titanium
    Powerbook G4   Mac OS X (10.3.9)   titanium

    Hello Frank.
    These messages have been downloaded from the server.
    The error message is incorrect which does not indicate what the actual error and problem is.
    This error message indicates an "overstuffed" mailbox issue which means the mailbox has approached or exceeded the recommended mailbox size limit or the mailbox has some corruption.
    All email clients have limits and the recommended mailbox size limit with Jaguar and Panther Mail is 1 GB and for Tiger Mail, 2 GB.
    An "overstuffed" mailbox issue can occur at any mailbox size but is more likely to occur depending on the number and size of message attachments contained in a mailbox and especially when a Jaguar or Panther mailbox approaches or exceeds 1 GB in size.
    This has all but been eliminated with Tiger Mail which uses a different mailbox filing format and structure than is used with previous Mail.app versions.
    In addition, since an account's Inbox mailbox is usually the most active mailbox and more prone to corruption over time, it is not a good idea to use an account's Inbox mailbox as the final storage location for all received messages not deleted that you need or want to save. This is what user created "On My Mac" location mailboxes can and should be used for.
    With the Mail.app quit and using the Finder go to Home > Library > Mail > this POP account named folder (named by the user name and incoming mail server for the account) > INBOX.mbox.
    Move the INBOX.mbox to the Desktop.
    Launch Mail and a new INBOX.mbox will be created automatically by Mail within the account named folder.
    This will allow the Mail.app to function properly again and not risk losing any new messages downloaded/received by this account while working on the old INBOX.mbox moved to the Desktop to try to recover the existing messages.
    Control-click on the old INBOX.mbox moved to the Desktop and at the menu window that appears, select Show Package Contents.
    List the package content file names and size of each.

  • JNLP and jar files are being download from server again.

    I have a swing application deployed with Java Web Start on a server.
    On my client I install the application using JWS JRE 1.6.
    The issue is that without any change in the jars or JNLP the jars are being downloaded from the server again and again
    This is not consistant - it happens only sometimes.
    One important thing to mention: The server is inside a load-balancer cluster (AKAMAI), so the IP address of the actual server may change between different accesses.
    in the log, I can see the error:
    "Cache entry not found"
    and then the jar is being downloaded again.
    sometimes only one or two jars were downloaded again, sometimes the whole package with the JNLP file were dowloaded again.
    Can you suggest what can be the reason for this behavior?
    Thank you,
    Ran

    That does seem slow, but there are many factors that could be involved. More information would be helpful:
    - Are the source and destination filesystems ZFS or UFS? (or some other FS)
    - What does iostat show you?
    - What does vmstat show you?
    - What type of HBAs connect you to the SAN? ('fcinfo hba-port')
    - Anything in /var/adm/messages?

  • How to export XML from server to local machine

    Hi all
    i want to export some XML files from instance to my local machine.right now i m i have Ftpied the files from server to to my local machine but ,but it is not coming with personalization .
    thanx in advance
    Pratap

    Hi Paratap,
    If you want to see source of the page use
    call jdr_utils.printDocument('/oracle/apps/pos/orders/webui/PosVpoMainPG');
    If you want to see the personalization for the source use
    call jdr_utils.printDocument('/oracle/apps/pos/orders/webui/customizations/site/0/PosVpoMainPG');
    I have given these examples for site level personalization, depanding upon the personalization level the path may vary.
    You can also export the files using XMLExporter by giving appropriate path.
    You can FTP all other source files from the server.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • List all printers configured from server and local machine when hosted in server machine and working from Client machine

    Hello Team
    I am developing web application in asp.net. When application run from IIS(hosted in server machine running from client machine using web browser) application should list all the configured printers in local and network.
    can any one please let me know the process, in this i was able to load printers from server, so need to load printers from local machine.
    Thanks in Advance
    Bindu

    Hi Bindu,
    I am developing web application in asp.net. When application run from IIS(hosted in server machine running from client machine using web browser) application should list all the configured printers in local and network.
    From this message, this is a web application in asp.net, and it also related to IIS.
    You should post in the dedicated ASP.Net Forum
    http://forums.asp.net
    For IIS issue, http://forums.iis.net/ IIS forum should post.
    Thanks
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Email not downloaded from server

    HI my iPhone 5 doesn't always let me open my emails. "Email not downloaded from the server" appears on random emails, usually ones with pictures?? help!!

    This happens to me too from time to time.  Seems to be connected to the size of the download attached to the mail and the fact that you are using the mobile data network. Try to use Wi-Fi instead, this works for me.

  • Mail won't download from server

    I downloaded the new software on my iPhone 4 and installed it.  Now my yahoo mail won't download from the server.  I rebooted, deleted the mail account and reinstalled, and restored the software too.  Any ideas?

    Not knowing what’s really going on here, and since re-creating Envelope Index apparently didn’t work, you may try setting up Mail again from scratch, as follows:
    1. Quit Mail if it’s running.
    2. In the Finder, go to ~/Library/. Move (not copy) the entire Mail folder out of there, to the Desktop.
    3. In the Finder, go to ~/Library/Preferences/. Locate com.apple.mail.plist and move it to the Desktop.
    4. Open Mail and set it up again from scratch. If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and check that everything works fine.
    You’ll have to re-configure all your settings in Mail > Preferences. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it’s enabled.
    5. If Mail works fine now, do File > Import Mailboxes, choose Mail for Mac OS X as the data format, and follow the instructions to import your mail from the old Mail folder that’s now on the Desktop. Import the Mailboxes folder first, then each of the POP-username@mailserver account folders.
    As a result of doing the above, some messages may be duplicated now. Andreas Amann’s Mail Scripts has a Remove Duplicates script that may help to fix that.
    Do with the imported mail whatever you wish. You may move the messages anywhere you wish and get rid of the imported mailboxes afterwards.
    If all is well and you don’t miss anything, the files on the Desktop can be deleted, although you may want to keep them for a while, just in case.
    Ask for any clarifications or if you need further assistance.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

Maybe you are looking for