Uploading Excel Documents

Hello! :)
I'm working on a dashboard that requires me to "upload" or "attach" an excel document that users may choose to open or save. I've tried using a link and so far it worked well with .doc, .txt, and .pdf documents. When the link is clicked, the download dialog box opens and the document can be viewed without problem. Unfortunately, this did not work with an excel document.
Does BIEE have a restriction to excel documents? Is there a specific way for me to do this? This may just be a simple problem. Hope someone could help.
Thank you! :)

Hello Kum,
One approach is that immediately after uploading the initial file, put the loop at 'data_tab' and pass the last field which contains the file path and name and type of the file.
For this purpose you've to use:
1.) Variables for passing the vaule to FM (file name and type)
2.) You need to use the string handing in order to get the type of file format from the file path from the 'data_tab' from 1st call
Once you get the field containint the filename and path using string handling you can 1st measure the lenght of the full string using 'strlen' command and then check the string and check for the '.' and last 3 characters which is the format in general
example:
filename = 'C:\UPLOAD\UPLOAD1.TXT'.
STRING = STRLEN( filename ).
CAL2 = STRING - 4.
TYPE1 = FILENAME+CAL2(STRING).
IF FILENAME+CAL2(1) EQ '.'.
CAL2 = CAL2 + 1.
TYPE3 = FILENAME+CAL2(STRING).
ENDIF.
Pass the Filename and TYPE2 as filepath and type.
One thing to remember there might be a performance problem since you said there are thousands of file for upload during one session.
/Manik

Similar Messages

  • Editing an uploaded excel document

    I'm just starting to research this program and need to share an excel file with multiple authors. Is there a way to upload the excel file and be able to edit it? Or is using the Acrobat Table the only way to share a spreadsheet?

    Not exactly. But I have a service (from automator) which is in my finder contextual menus which puts the selected file into an email message. Makes it very easy to email. With this you could just edit the attachment, select the service, and you're all set.

  • How to upload a Excel document in background mode

    Hello there, how are you?
    I am doing an interface program that needs to upload an excel document into an internal table, to do this I used the FM ALSM_EXCEL_TO_INTERNAL_TABLE. The problem with this FM is that only works in foregroung mode, If I run the programin bcakground the FM does not work.
    I would like to know if exist a way to upload an excel document into an internal table, for a program that have to be execute in background mode.
    Thanks in advance
    Best Regards
    Alexis Ramirez

    *& Form application_server
    * text
    * --> p1 text
    * <-- p2 text
    *----------------------------------------------------------------------*FORM APPLICATION_SERVER .
    TYPE-POOLS: KCDE.
    DATA : lt_intern TYPE kcde_cells OCCURS 0 WITH HEADER LINE.*DATA : INTERN1 TYPE KCDE_INTERN.FILE = PATH.
    OPEN DATASET FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.**--- Display error messages if any.IF SY-SUBRC NE 0.
    MESSAGE E001(ZSD_MES).
    EXIT.* ENDIF.ELSE.
    DO.
    READ DATASET FILE INTO Wa_TAB.
    append wa_tab to IT_TAB.
    IF SY-SUBRC <> 0.
    EXIT.
    ENDIF.
    ENDDO.
    clear wa_TAB.
    LOOP AT IT_TAB into wa_tab.
    CASE wa_tab-COL.
    WHEN '0001'.
    WA_TAB2-PLANT = wa_tab-VALUE.
    WHEN '0002'.
    WA_TAB2-STGE_LOC = wa_tab-VALUE.
    WHEN '0003'.
    WA_TAB2-MATERIAL = wa_tab-VALUE.
    WHEN '0004'.
    WA_TAB2-QUANTITY = wa_tab-VALUE.
    WHEN '0005'.
    WA_TAB2-BASE_UOM = wa_tab-VALUE.
    WHEN '0006'.
    WA_TAB2-COSTCENTER = wa_tab-VALUE.
    ENDCASE.
    AT END OF ROW.
    APPEND WA_TAB2 TO IT_TAB2.
    CLEAR WA_TAB2.
    ENDAT.
    clear wa_tab.
    ENDLOOP.
    ENDIF.
    CLOSE DATASET FILE.
    ENDFORM. " application_server
    Refer here:[How to Read Excel file from Application or Presentation Server and Download into Internal Table. |https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/how%252bto%252bread%252bexcel%252bfile%252bfrom%252bapplication%252bor%252bpresentation%252bserver%252band%252bdownload%252binto%252binternal%252btable.]

  • Prevent Excel document from upload

    Hi all,
    How to Prevent Users uploading from excel document in a custom document library. I shouldn't use Central admin for this.

    1. Create a Event receiver as below:
    http://www.sharepointdiary.com/2012/07/restrict-file-types-in-document-library-event-receiver.html
    2. Or try Javascript:
    http://stackoverflow.com/questions/254184/filter-extensions-in-html-form-upload
    http://stackoverflow.com/questions/8938124/how-to-filter-input-type-file-dialog-by-specific-file-type
    http://stackoverflow.com/questions/4234589/validation-of-file-extension-before-uploading-file

  • How to upload the documents like PDF, EXCEL and WORD

    Hi,
    I am working on UI, I am tracking the COREMODS data using this UI. My requirement is need to maintain the related documents also in database using this UI. I think SLM system have that functionality. If any one know about this functionality, explain about
    How to upload the documents into database.
    How to maintain this documents in database.
    Is there any standard methods/function modules to upload this documents ( I am not asking about content of document, I am expecting about total file).
    i.e. I want to maintain the all core mod related test cases and other documents in SAP database.
    How to handle this functionality?        
    Rayudu

    Hi Rayudu,
    For office documents we can use [Business Document Service|http://help.sap.com/saphelp_nw70/helpdata/EN/3d/90a9371c726343e10000009b38f842/frameset.htm]
    Cheers,
    Jose.

  • Upload Excel data to Sharepoint list VIA infopath form

    Hi,
    I'll try to explain the process of what I want to do first.
    1. In Excel
    I have an exceldocument (XLS, XLSX or XLSM) with 4 named columns and a named worksheet saved locally on my computer.
    I want to upload this data into preferably a custom list in sharepoint but it needs to run via a infopath template first.
    2. In Infopath
    The Infopath template will prompt the user to specify values in 2 additional fields.
    After giving input to these fields user may browse for the locally stored excel document and upload the document.
    In the same infopath template a dynamic array should be visible containing 6 columns (4 from excel + 2 from headerlevel of template) and the amount of rows based on the number of rows from excelsheet.
    At the end of template a submit button is found for uploading the entire array into sharepoint custom list.
    Is this possible to do at all?
    NOTE! End user should not have to save the excelsheet as XML file nor do a XML mapping.
    Infopath should, perhaps with help of VBA read excelsheet and transfer data to correct destination in sharepoint on it self.
    Looking forward to your reply

    Hi Jonas,
    You can attach your Excel doucment into InfoPath form and send InfoPath form to a custom web service. Then you can parse the Excel data and combine the Excel data and additional fields into SharePoint list in the customized  web service.
    For more information, you can have a look at the thread:
    http://dandeng.blogspot.com/2012/03/submit-infopath-form-data-to-web.html
    http://www.codeproject.com/Articles/88547/Submit-entire-InfoPath-form-to-web-service
    https://social.msdn.microsoft.com/Forums/office/en-US/590f1e78-5c08-47bd-8af4-9709102b568d/webservice-to-send-attachments-in-infopath-form-to-different-location?forum=sharepointcustomization
    https://msdn.microsoft.com/en-us/library/office/gg575571.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Upload excel sheet data through sqlloader into oracle tables

    hi everyone,
    i am working with excel sheet with following records
    8501      Jacob Marshall      15000      21/10/2009      Finance
    8502      Chris Campell      50000      13/06/2008      R&D
    8503      Simon Dough      50000      3/07/2008      Engineering
    8504      Mark Haggai      75000      9/3/2006      Product Management
    8505      Verica Beverley      45000      7/2/2008      HR
    and i saved it in emp_details.csv
    after that when i write following code to make control file
    load data
    infile 'C:\Documents and Settings\prashant_dabral\Desktop\a.txt'
    into table tmp
    field terminated by','optionally enclosed by" "
    (emp_no,emp_name,salary,doj,dept_name)
    after this pl\sqldev returning me error message that ORA-00900:invalid sql statement
    can anybody tell me how to resolve issue
    or
    another method to Upload excel sheet data through sqlloader into oracle tables

    A control file is a file located on the operating system, not some SQL or PL/SQL code you try and execute.
    Create the control file as a file and then use that to load your data with SQL*Loader from the command line.
    http://www.morganslibrary.org/reference/sqlloader.html
    Or better still, create it as an external table and then you don't need a seperate control file or need to use sql loader from the command line...
    http://www.morganslibrary.org/reference/externaltab.html

  • How do i upload a document from my MacBook Pro to iCloud?

    How do i upload a document from my MacBook Pro to iCloud?

    To get Pages Documents (and Word) to iCloud from your computer, log into iCloud.com and go to the iWork tab. Then copy that file to the page. Works with Numbers and, I think, Excel files too. But you can't copy any type of file you want to iCloud, it has to be one of the supported formats. Also, you need to have Pages/Numbers app on a device to allow syncing from iCloud to the device and to copy from Mac to iCloud.

  • EBS 12.1.3: Unable to throw custom error messages back to Excel document

    Hi Gurus,
    We are on 12.1.3 using Desktop Integration Framework.
    I created a API Procedure based custom Integrator.
    In the PLSQL procedure, I have raise_application_error(-20009, ‘Custom Error’) but this message never comes through.
    It always shows a ‘SQL exception occurred during PL/SQL upload’.
    When it is a success, it shows a green smiley which is fine.
    But when there is a explicit raise_application_error in plsql proc, I would like the error message to flow all the way back to Excel document.
    1.) What should I be using 'API Procedure or API Function' in the Custom Integrator,
    2.) Should it return Error Message or FND Message?
    Has it worked for anyone in 12.1.3?
    Please let me know.
    Thanks
    Vinod

    hi ,Vinod
    Please check the 'API Returns' is setted with 'FND Message Code' in Interfaces define(Step 2 of 5).
    Regards,
    leno

  • Uploading External Documents (*.doc, *.pdf, *.html) using JSP, Servlets, JDBC

    I would like to upload external documents to an Oracle 8.16 db without using agents or interMedia.
    Documents can range from *.doc, *.pdf, *.html and so forth. Ive been all over OTN and all I keep finding are examples on uploading Audio, Video or Image data - which is fine.. but damn, can we get a couple "Real World" examples in there?
    Im even looking at iWorkplace which is excellent.. but a little out of my league when it comes to uploading external documents. But that's exactly what Id like to do. The documentation on this issue is very scarce - Please help.
    Any help in this matter would be greatly appreciated.
    Many Thanks in Advance.

    Is anyone having problems loading text files using this routine? I can load a file with this, but even though the table contains a CLOB, the file is uploaded as binary and one only sees a series of question marks when looking at the CLOB. So, basically, the file appears to be converted somehow from text to binary. Any thoughts? I'm using 8.1.6.0.0 on Sun Solaris 2.7. character set in the database is UTF8.
    Thanks.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Rick Post:
    Steps you need to follow are:
    1. Create a table to hold the documents
    CREATE TABLE XML_DOCUMENTS (
    DOCNAME VARCHAR2(200) NOT NULL,
    XMLDOC CLOB,
    TIMESTAMP DATE
    2. Create a directory
    CREATE OR REPLACE DIRECTORY bfile_dir AS /private1/LOB/files;
    3. Grant READ privileges on the directory to the appropriate user
    GRANT READ on bfile_dir to SCOTT;
    4. Create a procedure
    CREATE PROCEDURE insertXmlFile( dir VARCHAR2,
    file VARCHAR2,
    name VARCHAR2 := NULL) IS
    theBFile BFILE;
    theCLob CLOB;
    theDocName VARCHAR2(200) := NVL(name,file);
    BEGIN
    -- (1) Insert a new row into xml_documents with an empty CLOB, and
    -- (2) Retrieve the empty CLOB into a variable with RETURNING..INTO
    INSERT INTO xml_documents(docname,xmldoc) VALUES(theDocName,empty_clob())
    RETURNING xmldoc INTO theCLob;
    -- (3) Get a BFile handle to the external file
    theBFile := BFileName(dir,file);
    -- (4) Open the file
    dbms_lob.fileOpen(theBFile);
    -- (5) Copy the contents of the BFile into the empty CLOB
    dbms_lob.loadFromFile(dest_lob => theCLob,
    src_lob => theBFile,
    amount => dbms_lob.getLength(theBFile));
    -- (6) Close the file and commit
    dbms_lob.fileClose(theBFile);
    COMMIT;
    END;
    5. Execute the procedure
    INSERTXMLFILE('bfile_dir', filename, 'description');
    Good Luck!
    <HR></BLOCKQUOTE>
    null

  • Upload excel by LSMW for FV60 ?

    Hi,
    Can anyone help ?
    Want to upload AP document from excel by using LSMW with transaction FV60. (Park only) Is it workable as FV60 is an enjoyable screen ? Or there's another tcode for same purpose ?
    thanks a lot,

    Hi,
    IT is possible,
    Go to SHDB
    Give FV60
    And Record.
    Use ALSM_EXCEL_TO_INTERNAL_TABLE to take it from EXCEL.
    Reward if useful!

  • Attach Excel Document

    Dear all,
    I got an issue in SOLAR01, I cannot upload or created excel document. Word, ppt, text, all works fine. Is there any preconfiguration that I need to do so the excel format recognized by document repository of solman? Thanks for any kind of help
    Best regards

    Hi,
    Refer [Office 2007 Document Attaching in Solution Manager;
    Reproducing some details below
    -spro->SAP Customizing Implementation Guide
    ->SAP NetWeaver->Knowledge Management
    ->Settings in the Knowledge Warehouse System
    ->Document Management Service
    ->Define MIME Type for File Name Extension
    -add an entry like
    File name extension = docx
    MIME type of a Web object = application/vnd.openxmlformats
    Regards,
    Rajesh Kumar

  • Create RFQ based on data supplied by excel document and then create PO

    Hello Experts,
    I have an requirement to create following scenario.
    1. User will upload "Requirement Endorsement Sheet "  which contains items and qty in an excel format and this has to be sent to workflow user.
    2. Workflow user must able to create RFQ based on the excel document sent in the first step by auto populating item and item qty fields in RFQ.
    3.  Last step is to create PO based on RFQ created in step 2.
    I would like to know whether any SAP standard BAPIs can help to create RFQ adn then using RFQ data create PO.
    Appreciate if you can provide some tips for building the above solution.
    Regards
    Krishna

    In your 2nd step the User will manually enter and or it needs to be auto populated. If it requires auto population of RFQ I think you can use standard method. Just search for Business object of RFQ by doing a F4 in SWO1.
    Thanks
    Arghadip

  • Can not upload Excel file

    We developed a web site,There are file upload function.
    Web site running on the NetWeaver
    Can upload .rar .pdf .bin   files. But when upload Excel file ,It Often failed,Occasionally, the success of.
    I have imp notes for update sevletinputstreamreadtimeout parameter, now it is 180000.
    Pls help me

    Hi,
    I have had issues with sporadic document upload problems. There are several SAP notes. Primarily there is an issue with Internet Explorer and keepalive timouts. Try each/all of these three options.
    1) Examine the keepalivetimeout settings (see SAP note 900804)
    2) Examine MaxRequestContentLenght setting (see SAP note 898637)
    3) Ensure that your Temporary directories for the J2EE server are set correctly use the Config Tool to add new parameters
    -Djava.io.tmpdir=[a suitable temp directory ([SID]ADM user needs read write acces)]
    -Dcm.tmpdir=e:\EP_TEMP (example) (see SAP Note 898637)
    Hope this helps
    Regards
    Alex

  • Create BDC group per uploading excel file to fill data in Tcode FB01l

    hi experts,
    i'm using BDC to run T-code FB01L . for this i'm uploading excel file for input data. my requiremenr=t is as follows : "
    only one BDC group should be created per uploading file."  But  At this moment BDC group is created per document. For user it is not possible to handle, say 1000 BDC groups.
    please suggest.
    Thanks
    Deepika

    The answer is simple and you should be able to work it out yourself but I am feeling generous today.
    I am assuming that each line in your excel spreadsheet is a document. The easiest way to do this is simply build up youd BDC table first then create the group.
        <- build your bdc table before opening the group ->
        call function 'BDC_OPEN_GROUP'
          exporting
            group = p_group
            keep  = p_keep
            user  = p_uname.
        call function 'BDC_INSERT'
          exporting
            tcode            = 'FB01'
          tables
            dynprotab        = gt_bdcdata
          exceptions
            internal_error   = 1
            not_open         = 2
            queue_error      = 3
            tcode_invalid    = 4
            printing_invalid = 5
            posting_invalid  = 6
            others           = 7.
    call function 'BDC_CLOSE_GROUP'
    In the future please do a search on SDN. I have also moved this thread to the ABAP General forum as this is not related to ABAP OO.

Maybe you are looking for