Excel Upload/Download

Hi
I have had a look through some of the posts in this forum on Excel and as I am new to ABAP I may be misunderstanding a few things.
Anyway, I am in a dilemma. We have a custom application written in ABAP, which at a given stage, we would like to write out a given set of values from a whole multitude of tables. I know where the data is. We need to map this to a formatted Excel document. The mappings are created. The second part of the dilemma is the Excel file will need to be picked up from the network (Windows file server) and the App Server is Unix.
Now, as far as I see it there are 2 ways of doing this, first is to write some ABAP code to upload the file, open it using OPEN DATASET (I think using the right unicode format), then push the data out using a mapping table.
The second way is to use Excel VBA to pull the data from SAP. Tricky bit still remains in how to initiate the macro.
If anyone can at least point me in the right direction, I would be most appreciated. Which would you recommend? Are there any potential pitfalls I need to be aware of?
Many thanks
Nick

Hi,
Look at these links
http://www.sapdevelopment.co.uk/file/file_updown.htm
http://www.sapdevelopment.co.uk/file/file_disall.htm
Hope this would be helpful.
Thanks & Regards,
Judith.

Similar Messages

  • Preceeding zeroes while excel upload and download

    Hi,
    I am uploading some data from excel into an internal table,processing it and then downloading it again in excel.
    For Excel Upload I am using CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    For Excel Download I am using GUI_DOWNLOAD.
    But the problems is when the data is like 01 it is downloading it as 1 in the excel.The user don't want to do any changes after downloading it to the excel and want the data 01 to be dowloaded as 01 itself and not as 1.
    We can format it in excel but the user is not willing for that.Any possibility that we can handle it in the program.
    Thanks,
    K.Kiran.

    You have to use OLE technique for the same....that will solve your case.
    supposae i want to make the 5th , 6th and 7th coloumn , as character format.
    The below scenario will help.
    collect the contents of the excel in  it[] ,
      DESCRIBE TABLE it[] LINES wf_it_line.
      wf_it_line = wf_it_line + 8.
      CLEAR : wf_cellx, wf_celly, wf_cellr.
      CALL METHOD OF wf_excel 'Cells' = wf_cellx
      EXPORTING
       #1 = 8
       #2 = 5.
      CALL METHOD OF wf_excel 'Cells' = wf_celly
      EXPORTING
       #1 = wf_it_line
       #2 = 7.
      CALL METHOD OF wf_excel 'Range' = wf_cellr
       EXPORTING
    #1 = wf_cellx
    #2 = wf_celly.
      SET PROPERTY OF wf_cellr 'NumberFormat' = '@' .
    this will change the format of the excel.
    then call the below method
      CALL METHOD cl_gui_frontend_services=>clipboard_export
          IMPORTING
            data                 = it[]
          CHANGING
            rc                   = l_rc
          EXCEPTIONS
            cntl_error           = 1
            error_no_gui         = 2
         not_supported_by_gui = 3
            OTHERS               = 4.
      CALL METHOD OF wf_excel 'Cells' = wf_cell1
        EXPORTING
         #1 = 1
         #2 = 1.
      CALL METHOD OF wf_excel 'Cells' = wf_cell2
        EXPORTING
         #1 = 1
         #2 = 1.
      CALL METHOD OF wf_excel 'Range' = wf_range
        EXPORTING
         #1 = wf_cell1
         #2 = wf_cell2.
      CALL METHOD OF wf_range 'Select'.
      CALL METHOD OF wf_worksheet 'Paste'.
    then call the method 'SAVEAS' to save the excel.
    Edited by: Rudra Prasanna Mohapatra on Jan 22, 2009 5:47 AM

  • Upload / download BDS document buttons missing from MS Excel View dialogue

    Upload / download BDS document buttons are missing from MS Excel View dialogue window.
    This means that users cannot upload pre-built MS Excel templates into their own layout variants.
    Test systems have this function, but production box does not.  Is there an ABAP or Basis setting that is missing?

    hi,
    In this link it is mentioned on how to integrate the BDS in the SAP Application,
    http://help.sap.com/saphelp_47x200/helpdata/en/19/b6ba374da7bd4fe10000009b38f842/content.htm
    and also go through the example,
    http://help.sap.com/saphelp_47x200/helpdata/en/71/94a937a7777c38e10000009b38f842/content.htm
    Regards,
    Azaz Ali.

  • Uploading/Downloading word,excel..etc in Oracle8i using Forms6i

    Dear Friends
    I want to insert word,excel or image from client m/cn to server's database(Oracle8i) using Forms6i.
    Can anyone please suggest me the best way of uploading/downloading these kind of file using Forms6i.
    Other than OLE.Bcoz I have acheived this thro' OLE in Forms but I am lookin for some other solution in Forms only.This is not required for any web application...only client/server architecture.
    Please advice asap.

    It's not possible with Forms6i ... The reason being that Forms6i lacks any built-ins to deal with binary data in file access! The only way in C/S is OLE which you already have ... or if you don't mind then you can write a small external utility yourself that can do the upload/download. This you could write for example as an OCX, an external DLL ... or most simple as just a stand alone executeable called by HOST-command.
    Regards,
    Stefan

  • ADFDi Excel upload failed in a new session

    ADFDi Excel upload failed when a change was made in a locally saved ADFDi Excel file.  This should be a very common disconnected scenario.  I must miss something.  Here are high-level steps that I have done.
    1. Open a ADFDi Excel from a ADF page.
    2. Download data to Excel
    3. Modify a row in ADF table component in the Excel, then save the Excel file locally.  (If I clicked the 'Save' button instead of saving the file locally, the change was uploaded to the server correctly).
    4. Open the locally saved Excel, and accept the option to connect to the server and login.  A new session should be created in the ADF web application.
    5. Click 'No' in the popup window of "Do you want to discard the pending change?"
    6. The 'changed' indicator is shown on the changed row in the Excel.  Click 'Save' button, which has two actions - Upsync and ADFTable.upload
    7. On the server, a 'Row not found' exception is thrown from DCJboDataControl.setCurrentRowInRSI().  In this method, it tries to find the row in the ViewObject instance using the uploaded row's key.  The code is rsi.findByKey(key, 1).  I checked the value of key.  It looks correct. But no row is return from findByKey() call.  Then 'No row found' exception is thrown.
    My JDev version 11.1.1.7
    Greatly appreciate any suggestion on what could be wrong?

    HI
    I am facing the same issue. Are you able to resolve this issue or any solution around ?
    Thanks

  • How to import 300 purchase order into SAP using excel upload

    Hi Everyone,
    I am trying to close all the existing purchase orders in the system (about 300) and create similarly 300 new ones under new accounts.
    My questions is can I do that using an excel upload, or it will have to be done manually? If I can, any help in that regard would be highly appreciated.
    Regards,
    Abubakr Asif

    Hi
    Welcome to SDN World!
    You can use LSMW to create 300 Purchase Orders.
    please check this link for guidance
    http://www.ficoexpertonline.com/downloads/0703.doc
    To close existig POs, you can use Mass update (Tr code MEMASSPO).
    hope it helps.
    regards
    Srinivas
    Reward if it helps

  • File upload, download using ADF UIX and not JSP

    I have examples for the file upload, download using JSP
    But I want to use ADF UIX. Look and feel in this is impressing and I want to use this. Any one have example for this.
    Users will select a file from their desktop
    This will be stored into the database (Any document. Word, Excel)
    When they query the records then the UIX column need to give a hyperlink. Clicking on the link should prompt to download the file to the local system

    Sure, I use the Apache Commons File Upload package, so that is what I will discuss here ( [Commons File Upload|http://commons.apache.org/fileupload/] ).
    The Commons File Upload uses instances of ProgressListener to receive upload progress status. So first create a simple class that implements ProgressListener:
    public class ProgressListenerImpl implements ProgressListener {
        private int percent = 0;
        public int getPercentComplete() {
            return percent;
        public void update(long pBytesRead, long pContentLength, int pItems) {
            if (pContentLength > -1) { //content length is known;
                percent = (new Long((pBytesRead / pContentLength) * 100)).intValue();
    }So in your Servlet that handles file upload you will need to create an instance of this ProgressListenerImpl, register it as a listener and store it in the session:
    ServletFileUpload upload = new ServletFileUpload();
    ProgressListenerImpl listener = new ProgressListenerImpl();
    upload.setProgressListener(listener);
    request.getSession().setAttribute("ProgressListener", listener);
    ...Now create another servlet that will retrieve the ProgressListenerImpl, get the percent complete and write it back (how you actually write it back is up to you, could be text, an XML file, a JSON object, up to you):
    ProgressListenerImpl listener = (ProgressListenerImpl) request.getSession().getAttribute("ProgressListener");
    response.getWriter().println("" + listener.getPercentComplete());
    ...Then your XMLHttpRequest object will call this second servlet and read the string returned as the percent complete.
    HTH

  • File Upload/Download storing in ECC

    hi Guys,
    Using webdynpro abap application I am uploading a file.I want to store this file in the backend database(R/3). I am not able to stroe the Xstring value to the table.
    So I have made my table with field with  data type as string.
    Is there an standard function module to convert Xstring to String.
    Because in another webdynpro application I want to download the file which was uploaded so we require a function module to convert string to xstring again.
    Tell me how to store the Xstring data of the file to database tabel and agian download it.
    Regards,
    Shamila.

    Hi,
    Chek this standard document
    http://help.sap.com/saphelp_nw70/helpdata/EN/b3/be7941601b1d09e10000000a155106/frameset.htm
    Also check these forum threads
    Re: download a file
    File Upload/Download
    File download in Local PC
    Re: File Download to Excel
    for file upload control you can look at WDR_TEST_EVENTS component

  • Error in creating upload/download application

    Hi,
    I am trying to create the Howto:Upload/download application and got this error when I browse the file and select submit. Can you please help me to find out why I got this error?
    Thanks,
    Mon, 12 Apr 2004 18:15:58 GMT
    ORA-00942: table or view does not exist
    DAD name: demo
    PROCEDURE : wwv_flow.accept
    URL : http://testserver:80/pls/demo/wwv_flow.accept
    PARAMETERS :
    ===========
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Apache/1.3.12 (Win32) ApacheJServ/1.1 mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.22
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=80
    SERVER_NAME=testserver
    REQUEST_METHOD=POST
    QUERY_STRING=
    PATH_INFO=/pls/demo/wwv_flow.accept
    SCRIPT_NAME=/pls
    REMOTE_HOST=
    REMOTE_ADDR=10.10.2.217
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=
    HTTP_CONTENT_LENGTH=24043
    HTTP_CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d45b3a4013c
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
    HTTP_HOST=testserver
    HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, */*
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_ACCEPT_LANGUAGE=en-us
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=LOGIN_USERNAME_COOKIE=james; ORACLE_PLATFORM_REMEMBER_UN=janes:james; WWV_FLOW_USER2=4D86B80558A076CE; WWV_CUSTOM-F_604016577451304_100=-1; WWV_CUSTOM-F_604016577451304_104=4D86B80558A076CE
    Authorization=
    HTTP_IF_MODIFIED_SINCE=

    it sounds as if your DAD is referencing a table for its DocumentTablename that doesn't exist. the correct doc table for a supported installation of htmldb is "wwv_flow_file_objects$". my default install of htmldb created a dad like this...
    <Location /pls/htmldb>
    SetHandler pls_handler
    Order deny,allow
    Allow from all
    AllowOverride None
    PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
    PlsqlDatabasePassword %html_db_public_user_pwd%
    PlsqlDatabaseConnectString ap6002wgs.us.oracle.com:1521:apwgs ServiceNameFormat
    PlsqlDefaultPage htmldb
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDocumentPath docs
    PlsqlDocumentProcedure wwv_flow_file_manager.process_download
    PlsqlAuthenticationMode Basic
    PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
    </Location>
    ...and, again, it sounds as if your "demo" DAD is pointing to something other than wwv_flow_file_objects$. can you check your DAD, please, and let us know if correcting that doesn't fix things for you? also, so you know, that how-to doc assumes that you're using a supported configuration of htmldb. aside from what installs from the 10g companion CD, the only other two supported configurations are mapped out at...
    http://otn.oracle.com/products/database/htmldb/howtos/howto_useoas10g.html
    ...and...
    http://otn.oracle.com/products/database/htmldb/howtos/howto_use9ir2ohs.html
    ...so your "demo" dad should match what's in there.
    thanks,
    raj

  • Function Group : Upload/ download

    Hi Experts,
    is there any Function group which will help me upload/download excel file?Kindly advise.
    thanks & regards,
    M.S

    Yes you can but you must save data in text mode (tabulation or delimited) . 
    It's not possible to upload directly a excel file with GUI_UPLOAD
    But it's possible with ALSM_EXCEL_TO_INTERNAL_TABLE.
    Rgds

  • DP- Excel Upload Issue

    Hi All,
    I am using SCM 5.0 DP module.
    I am facing some problem while uploading Historical Sales data from excel file  to Planning book.
    Steps
    1. I download the planning book data by clicking on "Save Locally" at that time I select "Prepare file for upload at later time" and select "Save Additionla information in file"
    Use comma as separator.
    file saved in desktop as csv file.
    2. I opend the saved file in notepad and modify the data.
    3. Go to Planning Book, click on "Upload data"
    Select file name and check it and then click on "Upload File".
    Upload is successful..but interestingly : System doesn't show modified data or even old data.
    All data are deleted and Planning book is blank.
    Any thought on this issue?
    Thanks,
    Vipul Shah

    Hi
    There is the same problem in SCM 5.1 and there is a note fix for it:
    [1131260 - Excel Upload not Working Properly|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1131260&nlang=EN&smpsrv=https%3a%2f%2fwebsmp103%2esap-ag%2ede]
    However this is down as relevant only for 5.1 but I am sure it will fix 5.0 as well. It may be worth opening an OSS Message on this point.
    Regards
    Ian

  • How can I Upload & Download  Bid invitation & LAC in SRM6.0?

    Hi,everybody:
        I want to konw how can I Upload & Download  Bid invitation & LAC to Excel in SRM6.0?
    TKS & B.G.

    Hi,
    Pls see the foll thread:
    Re: Upload + Download in Bid invitation
    BR,
    Disha.
    Pls reward points for useful answers.

  • Excel upload with listener

    Hi,
    I have enabled excel upload with the listener, and it actually works fine. I get the data into a collection.
    Now what if I want to store the file in the database? It seems that the file is NOT inserted into wwv_flow_files. Also the item that contains the file has no value when the page is submitted with the XLS2COLLECTION button. (If I create another button that also submits the filename is there)..
    So it seems that when this feature is enabled the file is deleted from www_flow_files when page processing starts.

    Hi Martin,
    the feature is undocumented and not officially supported for 1.1, but known to work for Excel files up to the 2003 format. XLSX (2007 onwards) is not implemented.
    Perhaps going through the discussion and examples in {thread:id=2342792} helps you solve your issue.
    -Udo

  • File Upload/Download Problem

    Hi,
    I have a fileupload button. The attributes type is XSTRING, which i bound it with "data" property of download.
    When i download this file with "download" element, it comes in a zip file and as XML files. Only the jpg files are downloaded correctly.
    How can i solve this?
    Thanks.

    Hi,
    I am so sory for my very late answer.
    If you want to upload/download files, you should have a node which includes attributes
    (attribute names are just example ):
    1) filename(type: for example afilename),
    2)mimetype (type : string),
    3) file(type : a data element with type 'RAWSTRING').
    You must match your fileupload element's attributes with them:
    "DATA" attribute --> file ,
    "fileNAME" attribute--> filename,
    "mimeTYPE" attritube -->mimetype.
    When you want to download this file, you should put a filedownload element and match this element's attributes with the node's attributes which i described above.

  • Is there a way to upload/download photos anonymously?

    Is there a way to anonymously upload/download photos to the web without any sort of identification?
    For example, if I'm using something like TOR to browse, and I find an icon on a site or Google Images that I want to use as my avatar for a social networking site, can I "Save As" from my TOR browser and download that image anonymously to my computer's desktop? Or does my information leak when I save to my computer?
    ...and then, in turn and perhaps more importantly, how do I upload that photo as my social network photo/avatar without any sort of identifying source tag or whatever from my computer?
    When I attempt to upload a photo to the site, it keeps showing something like /Users/[iMacUserName]/Desktop
    Is there any way to do this anonymously?
    Would having something like a VPN be more useful than TOR in this situation?
    I'm new to all this, so I'd really appreciate any information possible. If it makes more sense to send an IM or private email, please feel free to contact me that way as well.
    Any recommendations for a great VPN to use with mac would be great too.
    Thanks so much in advance for your time.

    The image isn't anything dirty, nor is it necessarily copyrighted... I mean, it's a photo still from a movie I like that I wanted to use as my avatar photo. So I suppose technically it's copyrighted, but I'm not trying to pass it off as really being me, or mine. I see people using that kind of thing for avs all the time.
    I guess what I'm trying to say is that I'm not worried about the image I'm using, I'm worried about other users on the site being able to somehow find out that the image was uploaded from my computer (IP address, location, etc)
    Like, could the admins at a social networking site see that the image was uploaded from my computer?
    When I prompt the "upload" it only gives me the option to directly upload it from my computer, and as I said in my OP, it comes up with my iMac computer ID or whatever as the source of the file. (In the upload bar). Once I upload it, I think this information disappears, as I've tried to inspect other users avatars and it says owner info is private... but can the admins see WHERE the photo was uploaded from?
    Does something like TOR block this? Or do I need something else? I tried to do some research on it and found another user asking a similar question and someone responded saying they needed to tunnel it or something?
    Again, I'm not asking this b/c I'm trying to upload some inapropriate photo, but because this site is very strict about multiple accounts, and I have another account there that I'm not ready to delete yet. I just want to have a second, 100% anonymous account. (and feel I should also put it out there that it's not to do anything illegal or harmful to anyone either) just for me.
    Thanks again for any more answers on this.

Maybe you are looking for

  • ITunes file in Preftech Folder Question

    Hi, there. I hope someone can answer this. Saturday morning, my virus software blocked a Trojan. I've run numerous scans with different recommended software and am assured by them all my system is clean. But, of course, in any situation where my syst

  • SQL Developer Cart Deployment Losing Time on Date Columns

    I tried using the SQL Developer cart feature to migrate from AWS to Oracle Cloud and I found that the time element of any date attributes is not migrated. I checked the deployment file contents and found that both the SQL*Loader control file and the

  • FM and events

    what are the function module nad events are generally used in reports

  • The Software Update Server (mon001-nsd-s006.monte.corp) is not responding.

    Hi community : ) This must be a concern as there are at least two others with same problem? See Dan and Paula None have been answered and I can vouch that Tech Support are no help! Hari Om Ed

  • Balance sheet setup OB58 ??

    Hi all, I am trying to set up a balance sheet. I tried copying the existing ones and then changing them or creating a brand new one and configuring it from scratch but I have problems. The fields that are "marked" with red descritpions are there "for