Unable to download to presentation server file

i am trying to use ws_download to download the customer master data to a file.when i check in the internal table the data is present but i am unable to download to a file.

WS_download is an obsolete function module.
Try using GUI_DOWNLOAD instead.
Also try to see the Sy-subrc returned by the function module. This will give you an idea as to which exception is being raised by the function module.
Hope this helps
Puneet

Similar Messages

  • How to schedule the background job if report have Presentation server files

    Hi All,
    I have searched the forums and found , the way for the scheduling the background job if report selection screen have the presentation server file input.
    1. Using the Open data set method.
    And my client is not OK with Open dataset way, it there any other way to do this, As we are using the EXCEL file.
    Thanks and Regards,
    Bharani

    Hi,
    As said above it is generally not possible. Since your client most obviously doesn't like graphical background I would recomend storing data as till now, but show it with your own report in more userfriendly way. For example:
    - as ALV Grid
    - in excel with use of OLE either as embedded in SAP or new window (check transaction OLE for example)
    - with use of webdynpro
    BR
    Marcin Cholewczuk

  • Accessing presentation server file in background

    Hi gurus,
    my requirement is to access presentation server file in background mode.
    I got the below documentation regarding this ,but i'm not able to complete the setup as mentioned in this document.
    please help .
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/communication%20to%20presentation%20server%20in%20background%20mode.doc]
    As per documentation i need rfc.car and car.exe file in my system. I cant see any rfcsdk folder in my system. Please help.
    any other solutions ,please suggest.
    sastry.
    Edited by: prssastry on Oct 15, 2008 7:13 AM

    Hi,
    In general practice we don't access a file from presentation server in background because at that point of time i might not logon to SAP server, so it is always preferable to access the file from Application layer incase of background processing.
    Unless it is a client requirement, don't access files from the presentation layer in background./
    thanks,
    Mahesh.

  • [urgent] Upload presentation server files in parts

    Hi,
    I want to read presentation server files.
    I can use FM GUI_UPLOAD. But my problem is i want to read this file in parts.
    Like i have 1 lakh records in file. So i want to red this file in parts of 10000 each.
    In GUI_UPLOAD there is a parameter READ_BY_LINE but its is not solving my problem.
    Is it possibe to do upload file from presentation server?
    Also i have to upload file from application server in parts as above. I am planning to do it using
    DO XXXX times.
    read by index.
    enddo.
    Is this way optimised or any beter way also ?
    Points will be rewarded!!
    Thanks,
    Ashish Gupta

    Hi,
    Presentation server file:
    Using GUI_UPLOAD reading required no. of records is not possible. Better option is read all the data into internal table and use it according to the requirement.
    If the upload file in excel file, then use FM :ALSM_EXCEL_TO_INTERNAL_TABLE. This FM has option of fetching the required records from the file.
    Like, 1st record - 1000th record.. etc
    Application server file:
      Yeah you can fetch the records as you specified.
    Do  xxx times.
       Read dataset zxxxx.....
       If sy-subrc <> 0.
         Exit.
       endif.
    enddo.

  • File download to presentation server in BACKGROUND

    Hello,
    i'm trying to download a simple list to the presentation server, but in a background process (part of an update rule for an infopackage). I´ve tried WS_Download and CALL METHOD o->gui_download etc but the job cancels with them since they seem only to run in frontend. Does anyone know of a more suitable function module?
    Thanks,
    Kev

    Hi,
    Tyr to download file to unix in background.
    PARAMETERS:    p_unix     LIKE rlgrap-filename.
    INITIALIZATION.
      v_uzeit  = sy-uzeit.
      v_date   = sy-datum.
      v_client = sy-mandt.
      v_sys    = sy-sysid.
      CONCATENATE c_str v_sys c_str4 v_client
                  c_str3 v_date c_str5 v_uzeit c_str6 INTO p_unix.
       DATA: v_fnam        LIKE rlgrap-filename,
          v_filepht     LIKE FILENAME-FILEINTERN, "File for p_unix
          v_sys         LIKE sy-sysid,
          v_client      LIKE sy-mandt,
          v_date        LIKE sy-datum,
          v_uzeit       LIKE sy-uzeit
    FORM f3000_save_unix_file.
      SORT i_output.
    * Open the file in application server
      OPEN DATASET p_unix FOR OUTPUT IN TEXT MODE.
      IF sy-subrc <> 0.
        MESSAGE s900 WITH p_unix.           " File opening error
        LEAVE LIST-PROCESSING.
      ENDIF.
      LOOP AT i_output INTO w_output.
        TRANSFER w_output TO p_unix.
        CLEAR w_output.
      ENDLOOP.
      IF sy-subrc = 0.
        WRITE:/ text-075, p_unix, text-076. " File successfully created
      ELSE.
        WRITE:/ text-074, p_unix.           " Error creating file
      ENDIF.
    * Closing the file
      CLOSE DATASET p_unix.
    ENDFORM.                    " f3000_save_unix_file
    Also refer this link
    http://www.sapdevelopment.co.uk/file/file_updown.htm
    Try this might help u.

  • XML file download to presentation server.

    Hi Experts,
    Here I have a question regarding file download to desktop.
    I have a report which will generate xml file. Once it is generated i would like to download to desktop.
    I tried with 'GUI_DOWNLOAD', but it is not working. It means the file is downlaoded to presentation server but when i opened it 'Page can't be displayed' message is comming.
    Could you pleas help me to solve this issue.
    Thanks in advance.
    Regards,
    Anil.G

    Hello,
    For processing XMLs always try to make use of the class CL_XML_DOCUMENT.
    You can download the XML stream to a local file using the method of EXPORT_TO_FILE class CL_XML_DOCUMENT.
    Further reading: [/people/uwe.schieferstein/blog/2010/10/17/visualizing-any-kind-of-xml-data-using-class-clxmldocument]
    BR,
    Suhas

  • File Upload and Download From Presentation server

    I have a requirement to provide a selection option to user to upload a big file from presentation server.
    Not sure whther we can a upload the entire file at one short from presentation server. PLease provide some sample code to upload a huge file from presentation server and downlaod a file to presentation server.

    Hi,
    Try this code for download----
    TABLES:
      kna1.                                " General Data in Customer Master
    TYPES:
      BEGIN OF type_s_kna1,
        kunnr TYPE kna1-kunnr,             " Customer Number
        adrnr TYPE kna1-adrnr,             " Address
        anred TYPE kna1-anred,             " Title
        erdat TYPE kna1-erdat,             " Date on which record created
        ernam TYPE kna1-ernam,             " Name of Person who Created the
                                           " Object
    END OF type_s_kna1.
    DATA:
      fs_kna1 TYPE type_s_kna1.
    DATA:
        t_kna1 LIKE
      STANDARD TABLE
            OF fs_kna1.
    " Select-options----
    SELECT-OPTIONS:
      s_kunnr FOR kna1-kunnr.              " Customer Number
    AT SELECTION-SCREEN ON s_kunnr.
      SELECT kunnr                         " Customer number
        FROM kna1
        INTO s_kunnr UP TO 1 ROWS.
      ENDSELECT.
      IF sy-subrc NE 0.
        MESSAGE 'No such customer exists' TYPE 'S'.
      ENDIF.                               " IF SY-SUBRC NE 0
    START-OF-SELECTION.
      PERFORM customer_selection.
    FORM customer_selection .
      SELECT kunnr                         " Customer Number
             adrnr                         " Address
             anred                         " Title
             erdat                         " Date of record creation
             ernam                         " Person who created object
        FROM kna1
        INTO TABLE t_kna1
       WHERE kunnr IN s_kunnr.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
        BIN_FILESIZE                  =
          filename                      = 'C:\TEMP\CUSTOMER.TXT'
        FILETYPE                      = 'ASC'
         write_field_separator         = 'X'
        HEADER                        = '00'
        WRITE_LF                      = 'X'
         col_select                    = 'X'
         col_select_mask               = 'XXXXX'
        IGNORE_CERR                   = ABAP_TRUE
        REPLACEMENT                   = '#'
      IMPORTING
        FILELENGTH                    =
        TABLES
          data_tab                      = t_kna1
       EXCEPTIONS
               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.                               " IF SY-SUBRC NE 0
    ENDFORM.                               " FORM CUSTOMER_SELECTION.
    for upload----
    " Table declarations----
    TABLES:
      bkpf.                                " Accounting Document Header
    TYPES:
      BEGIN OF type_s_bkpf,
        bukrs TYPE bkpf-bukrs,             " Company code
        belnr TYPE bkpf-belnr,             " Accounting Document Number
        gjahr TYPE bkpf-gjahr,             " Fiscal Year
        blart TYPE bkpf-blart,             " Document type
        bldat TYPE bkpf-bldat,             " Document Date in Document
      END OF type_s_bkpf.
    DATA:
      fs_bkpf TYPE type_s_bkpf.
    DATA:
      fname(10) TYPE c VALUE 'ACCOUNTING'  .
    DATA:
        t_bkpf LIKE
      STANDARD TABLE
            OF fs_bkpf.
    *" Select-options----
    SELECT-OPTIONS:
      s_bukrs FOR bkpf-bukrs,              " Company code
      s_gjahr FOR bkpf-gjahr.              " Fiscal year
    OPEN DATASET fname FOR OUTPUT IN BINARY MODE .
    PERFORM account_selection.
    LOOP AT t_bkpf INTO fs_bkpf.
      TRANSFER fs_bkpf TO fname.
    ENDLOOP.                               " LOOP T_BKPF
    CLOSE DATASET fname.
    FORM account_selection .
      SELECT bukrs                         " Company code
             belnr                         " Accounting document number
             gjahr                         " Fiscal year
             blart                         " Document year
             bldat                         " Document date
        FROM bkpf
        INTO TABLE t_bkpf
       WHERE bukrs IN s_bukrs
         AND gjahr IN s_gjahr.
    ENDFORM.                               " FORM ACCOUNT_SELECTION
    also try
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = 'C:\TEMP\CUSTOMER.TXT'
      FILETYPE                      = 'ASC'
       has_field_separator           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        data_tab                      = t_kna1
    EXCEPTIONS
          disk_full                     = 15
       dp_timeout                    = 16
       OTHERS                        = 17
    IF sy-subrc EQ 0.
      PERFORM customer_display.
    ELSE.
      MESSAGE 'No customer file exists'(006) TYPE 'S'.
    ENDIF.                                 " IF SU-SUBRC EQ 0
    Regards,
    jaya
    Edited by: Jayapradha Neeli on May 28, 2009 11:38 AM

  • Download to application server File tcode relavance

    Hi
    i need to know the process for application server download and defining the same in file transaction
    also the process further to move the logical path to the TQA etc system
    also pls send me working example of the downloading to application server to refer for ECC 7.0 as there are some issues to be taken care in new version
    regards
    Nishant

    no replies new quesion raised

  • Unable to download itunessetup.exe server reset

    I recieve the following error when trying to download Itunes64setup.exe
    Unable to download iTunes64Setup.exe from appdln.apple.com.
    The connection with the server was reset.

    As an addendum, you can try running OpenDS which only requires Java 1.5 or higher to run. So it should work on XP. Any questions about OpenDS can be directed to this forum: https://opends.dev.java.net/servlets/ForumMessageList?forumID=3292

  • 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.
    Dibloc

    Thank 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?

  • Unable to download os x server

    I try to download os x server, but when i´m hitting purchase the loading icon in the upper left keeps spinning and spinning and i don´t get an error message.
    Other apps just work fine.
    I´m running an 2014 MacMini on Yosemite.
    What can i do?

    What can i do?
    Wait for the current outage in the App Store to clear.

  • Problem in download to application server- file column is getting truncated

    We have a program for which there are 2 options a list output or file to be placed on the application server. The TXT file is of length 525 characters.
    My problem is while the list output is generated the whole list is getting outputted, but when we take a output on the application server last 10 columns are getting truncated.
    Can somebody give a help on this.
    Thanks in advance.
    Jilly

    Use the function module
    ARCHIVFILE_SERVER_TO_CLIENT
    Pass the values: as download file and destination in the respective fields.
    File to be downloaded in :(Pass the exact file name)
    PATH :                          
    SDEC01\SAPMNT\INT\HR\OUT\FMLA-20080205-0728
    and
    Destination to download the file in:
    TARGETPATH                      C:\DOCUMENTS AND SETTINGS\JILFEM\MY DOCUMENTS\FMLA-20080205-0728
    Regards,
    Jilly

  • Unable to download Oracle Essbase Server Release 11.1.1.4.0

    Hello,
    I am trying to download the file below (second from the top) and it is resulting in a broken link. I have tried multiple browsers and different times. This is for a customer who is extremely infuriated. Please help. They need to download Essbase Server 11.1.1.4
    http://www.oracle.com/technetwork/middleware/bi-foundation/downloads/essbase-11114-488321.html
    Oracle Essbase Server Release 11.1.1.4.0
    - for Windows (x86, x64, Itanium), Linux (x86, x86-64), HPUX (PA-Risc 64-bit, Itanium), AIX PowerPC (64-bit), and Solaris SPARC (64-bit)
    File1

    Essbase Server 11.1.1.4.0 is no longer available for download from OTN. Current releases are linked here:
    http://www.oracle.com/technetwork/middleware/essbase/downloads/index.html

  • Unable to download - The product distribution file could not be verified

    Hi
    I have been trying for 3 days to download Mountain Lion and have used a couple of different IDs but get the same message
    "The product distribution file could not be verified. It may be damaged or was not signed"
    Has anyone faced this issue? Any solutions?

    Several causes for this problem have been reported. Please take each of the following steps that you haven't already tried. Stop when it's resolved.
    Step 1
    Back up all data.
    From the menu bar, select
     ▹ System Preferences... ▹ Network
    If the preference pane is locked, click the lock icon in the lower left corner and enter your password to unlock it. Then click the Advanced button and select the Proxies tab. If any proxy options are selected, make a note of them and then deselect them. You don’t need to change the bypass or FTP settings. Click OK and then Apply. Test. The result may be that you can't connect to any web server. Restore the previous settings if that happens.
    Step 2
    Rebuild the Spotlight index. If you try to search now from the magnifying-glass icon in the top right corner of the display, there will be an indication that indexing is in progress.
    Step 3
    Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • I am unable to download powerpoint presentations from online site?

    Rather than downloading file as .ppt it downloads it as an octet stream file. I am forced to use the "open with" and of course powerpoint is not listed so I am forced to browse through my c drive to find the program. It will then open the ppt file and I can manually save it. Is there a patch for this or can I just download the previous version of Firefox.

    a .pps file isn't a video, it's a powerpoint presentation. That requires an app that understands such files to open it - like Powerpoint or Keynote. Are you using such an app?
    Regards
    TD

Maybe you are looking for

  • Crystal Report Missing SAP InfoSet, SAP BW Query Connector

    Hi, I have installed SAP GUI  for Windows 7.2 (Compilation 2) and Crystal Report 2008 SP2 then following by installed SAP Integration Kits 3.1 SP3 on my workstation. However, when i launch my Crystal Report designer, it do shows SAP toolbar however w

  • Pricing Condition during upgrade

    Hi, During our SAP upgrade we are experiencing an issue related to PO pricing conditions. How can we bring over PO pricing conditions in open POs from 4.7 system to 6.0. We are using several custom condition types. If anybody have an experience like

  • How to get agreement from promotion number ( using BAPI_AGREEMENTS)

    Hi experts, I have a requirement where  I need to  generate agreement from promotion number( As in transaction WAK2) programatically,  I have tried using 'BAPI_AGREEMENTS' but could not pass promotion number in it , would appreciate any help on this.

  • Problem helped me

    Face Time is not working  Could not log Please check your network connection and try again  Knowing that the device is connected to  Net

  • Airport express causes router crash

    My air port crashes my wifi network. I am trying to connect the airport wirelessly to my Mac solely for AirPlay. Also, my Mac does not "see" my airport express?  Help, please!,