Uploading the EXCEL file  in transaction QM02

Hi SAP  Gurus,
I am uploading the EXCEL file  in transaction QM02 >services for object >Create attachment. But after uploading it I am not able to find where it is stored
Best Regards,
Parag Save.

hi
kindly refer [HERE |http://help.sap.com/erp2005_ehp_04/helpdata/EN/be/3fe63659241157e10000009b38f889/frameset.htm] for more details
regards
thyagarajan

Similar Messages

  • Upload the excel file in oracle db through oracle forms

    Hi all,
    I want to upload the excel file in oracle db through oracle forms...I am new to oracle forms .
    I have searched a lot but not getting exact solution
    Is there anyone who will help me out with this .....
    Any help will be appriciated

    I'm trying to move data from excel into an Oracle forms field. This involves coping 2 columns of data cells in excel and pasting it into an Oracle forms field. I can get the date pasted into the Oracle forms field but there is a invisible character that separates the 2 columns of data coming from Excel. I do not know what this character is but it is causing the error 'Line 1 is invalid. Check forms'.
    Any ideas how to get pass this?
    Thank you

  • FM to upload the Excel file to internal table

    Hi
    Is any FM available to upload the Excel file to internal table.
    Thanks
    Anbu

    Hi
    se this code
    EXCEL to INTERNAL TABLE and then to APPLICATION SERVER
    *& Report  ZSD_EXCEL_INT_APP
    REPORT  ZSD_EXCEL_INT_APP.
    parameter: file_nm type localfile.
    types : begin of it_tab1,
            f1(20),
            f2(40),
            f3(20),
           end of it_tab1.
    data : it_tab type table of ALSMEX_TABLINE with header line,
           file type rlgrap-filename.
    data : it_tab2 type it_tab1 occurs 1,
           wa_tab2 type it_tab1,
           w_message(100)  TYPE c.
    at selection-screen on value-request for file_nm.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      PROGRAM_NAME        = SYST-REPID
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
       STATIC              = 'X'
      MASK                = ' '
      CHANGING
       file_name           = file_nm
    EXCEPTIONS
       MASK_TOO_LONG       = 1
       OTHERS              = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    start-of-selection.
    refresh it_tab2[].clear wa_tab2.
    file = file_nm.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = file
        i_begin_col                   = '1'
        i_begin_row                   =  '1'
        i_end_col                     = '10'
        i_end_row                     = '35'
      tables
        intern                        = it_tab
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at it_tab.
      case it_tab-col.
       when '002'.
        wa_tab2-f1 = it_tab-value.
       when '004'.
        wa_tab2-f2 = it_tab-value.
      when '008'.
        wa_tab2-f3 = it_tab-value.
    endcase.
    at end of row.
      append wa_tab2 to it_tab2.
    clear wa_tab2.
      endat.
    endloop.
    data : p_file TYPE  rlgrap-filename value 'TEST3.txt'.
    OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *--- Display error messages if any.
      IF sy-subrc NE 0.
        MESSAGE e001(zsd_mes).
        EXIT.
      ELSE.
    *---Data is downloaded to the application server file path
        LOOP AT it_tab2 INTO wa_tab2.
          TRANSFER wa_tab2 TO p_file.
        ENDLOOP.
      ENDIF.
    *--Close the Application server file (Mandatory).
      CLOSE DATASET p_file.
    loop at it_tab2 into wa_tab2.
      write : / wa_tab2-f1,wa_tab2-f2,wa_tab2-f3.
    endloop.

  • Need to upload the excel file having extension .XLSX

    Hello,
    I am not able to upload the excel file having extension .XLSX But i can upload the excel file having extension .XLS .
    Please Guide me what are the changes i need to do... for uploading the excel file".XLSX".
    Thanks.

    Hi,
    What issue you are facing? Refer this document:  Upload/Read .xlsx file in SAP Web Dynpro . You need to on Netweaver 712 to use the classes mentioned in this document.
    Regards,
    Kiran

  • Upload the excel file

    HI,
      In my requirement i want to upload excel file and then i have to validate the belnr value present in the excel.How to do it.Can somebody help me with a sample code

    Hi,
    Please use following FM,
    TYPES : BEGIN OF t_text,
             field(255) TYPE c,
            END OF t_text.
    DATA : lt_table TYPE TABLE OF t_text,
                ls_table TYPE t_text,
               p_file1  TYPE string.
    PARAMETERS : p_file LIKE ibipparms-path OBLIGATORY.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
      EXPORTING
        PROGRAM_NAME        = SYST-CPROG
        DYNPRO_NUMBER       = SYST-DYNNR
        FIELD_NAME          = ' '
       IMPORTING
         file_name           = p_file
    START-OF-SELECTION.
      p_file1 = p_file.
      CONDENSE p_file1.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename = p_file1   " File Path Name
        filetype = 'ASC'
      TABLES
        data_tab = lt_table.
    Thanks & Regards,
    ShreeMohan

  • Upload the excel File to the Internal Table

    Hello Friends,
    i wrote the source code like this,
    iam getting the run time error can u tell where iam going wrong.
    data : begin of itab occurs 3,
           a type i,
           b type i,
           end of itab.
           CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
             EXPORTING
               FILENAME  = 'D:\Siemens\asd.xls'
               I_BEGIN_COL                   = 1
               I_BEGIN_ROW                   = 1
               I_END_COL                     = 2
               I_END_ROW                     = 3
             TABLES
               INTERN                        = itab
            EXCEPTIONS
              INCONSISTENT_PARAMETERS       = 1
              UPLOAD_OLE                    = 2
              OTHERS                        = 3
           IF SY-SUBRC <> 0.
    write : / 'this is not executed'.
    exit.
           ENDIF.
           loop at itab.
           write : / itab-a,itab-b.
           endloop.
    and in excel file the data is
    1     2
    3     4
    5     6

    Hi,
    Currently in ur program, FM is returning the value but on getting the value 'EXIT, command is executed. This might be the cause of the problem.
    Try like this:
    data : begin of itab occurs 3,
    a type i,
    b type i,
    end of itab.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
    FILENAME = 'D:\Siemens\asd.xls'
    I_BEGIN_COL = 1
    I_BEGIN_ROW = 1
    I_END_COL = 2
    I_END_ROW = 3
    TABLES
    INTERN = itab
    EXCEPTIONS
    INCONSISTENT_PARAMETERS = 1
    UPLOAD_OLE = 2
    OTHERS = 3
    IF SY-SUBRC 0.
    If sy-subrc ne 0.
    write : / 'this is not executed'.
    else.
    loop at itab.
    write : / itab-a,itab-b.
    endloop.
    ENDIF.
    Thanks,
    Parul.

  • Upload a excel file on the server

    Hi
    I am developing a Software and in that software in one module we have to upload the excel file on the serverand then loading in to the server Database.But i dont know howt to upload it on the server as i dont get any help from the net also...
    Thanks in advance.....
    Thanks
    Sandeep Bhalwal

    hi
    http://forum.java.sun.com/thread.jspa?threadID=518038&messageID=2471953love google
    http://www.oop-reserch.com/index.html
    http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=G2l&q=upload+file+and+store+into+database+in+jsp+with+example&btnG=Search&meta=

  • Hi All , validating the overlapped periods ,Uploading the xml file to sap

    Hi All,
    please provide me the logic for the following requirement: Its an urgent .
    Upload Global exception periods via File:
              A customized transaction will be created for uploading the global exception periods using
              an excel file. User has to maintain the global exception periods in an excel sheet with the 
              below mentioned format and upload the file manually into the system.  The global
              exceptions are maintained at step of half hourly period with a factor value.
              Please find the format followed for maintaining the global exception periods in the
              excel sheet.
    Date From      Period From     Date To     Period To     Factor value
    06.02.2008     12     06.02.2008     14     1.2
    07.02.2008     1     07.02.2008     2     1.4
    07.02.2008     3     07.02.2008     4     1.2
    07.02.2008     5     07.02.2008     6     1.6
    07.02.2008     7     07.02.2008     8     1.1
          Once user uploads the excel file and press execute button, file contents are downloaded
          and the global exception periods are updated into ZLF_GEXCEPTION table. Please refer        
          the necessary table format for details.
                During the upload of global exception periods, the periods are checked if it is overlapping
                 with the previously uploaded periods. For those overlapping periods, below method is
                followed. 
    1.     For e. g,  If a below exception period is already uploaded,
       Date From     Period From        Date To      Period To         Factor value
       06.02.2008       12                     06.02.2008      16               1.4     
    The new file contains the period which gets overlapped with the previous global
    exception period.
       Date From     Period From        Date To      Period To         Factor value
        06.02.2008       14                     06.02.2008      15               1.6     
    The overlapped periods are split accordingly,
    Date From     Period from        Date to      Period To                   Factor value
      06.02.2008       12                   06.02.2008      13               1.4     
      06.02.2008       14                   06.02.2008      15               1.6
      06.02.2008       16                   06.02.2008      16               1.4
    2.For e.g., Already existing period, 
       Date From     Period From        Date To      Period To         Factor value
        06.02.2008       12                     07.02.2008      16          1.3
       New period,
    Date From     Period From        Date To         Period To         Factor value
      07.02.2008       5                     07.02.2008      8          1.7
    The Global exception periods are split into,
       Date From     Period From        Date To      Period To         Factor value
        06.02.2008       12                     07.02.2008      4          1.3
        07.02.2008       5                     07.02.2008      8          1.7
        07.02.2008       9                     07.02.2008      16          1.3
          If any error occurs while updating the global exception periods into ZLF_GEXCEPTION
          table, then display LF-001 message given below the Error messages section. For the
          successful updating of global exception periods to ZLF_GEXCEPTION table, then
          display the message “Successfully completed”.
                 User will be provided an option to download the global exception periods into an excel
                 file. User has to provide the necessary location details where to download the file while
                 downloading.
    Thanks&Regards.
    Bk

    Hi All,
    please provide me the logic for the following requirement: Its an urgent .
    Upload Global exception periods via File:
              A customized transaction will be created for uploading the global exception periods using
              an excel file. User has to maintain the global exception periods in an excel sheet with the 
              below mentioned format and upload the file manually into the system.  The global
              exceptions are maintained at step of half hourly period with a factor value.
              Please find the format followed for maintaining the global exception periods in the
              excel sheet.
    Date From      Period From     Date To     Period To     Factor value
    06.02.2008     12     06.02.2008     14     1.2
    07.02.2008     1     07.02.2008     2     1.4
    07.02.2008     3     07.02.2008     4     1.2
    07.02.2008     5     07.02.2008     6     1.6
    07.02.2008     7     07.02.2008     8     1.1
          Once user uploads the excel file and press execute button, file contents are downloaded
          and the global exception periods are updated into ZLF_GEXCEPTION table. Please refer        
          the necessary table format for details.
                During the upload of global exception periods, the periods are checked if it is overlapping
                 with the previously uploaded periods. For those overlapping periods, below method is
                followed. 
    1.     For e. g,  If a below exception period is already uploaded,
       Date From     Period From        Date To      Period To         Factor value
       06.02.2008       12                     06.02.2008      16               1.4     
    The new file contains the period which gets overlapped with the previous global
    exception period.
       Date From     Period From        Date To      Period To         Factor value
        06.02.2008       14                     06.02.2008      15               1.6     
    The overlapped periods are split accordingly,
    Date From     Period from        Date to      Period To                   Factor value
      06.02.2008       12                   06.02.2008      13               1.4     
      06.02.2008       14                   06.02.2008      15               1.6
      06.02.2008       16                   06.02.2008      16               1.4
    2.For e.g., Already existing period, 
       Date From     Period From        Date To      Period To         Factor value
        06.02.2008       12                     07.02.2008      16          1.3
       New period,
    Date From     Period From        Date To         Period To         Factor value
      07.02.2008       5                     07.02.2008      8          1.7
    The Global exception periods are split into,
       Date From     Period From        Date To      Period To         Factor value
        06.02.2008       12                     07.02.2008      4          1.3
        07.02.2008       5                     07.02.2008      8          1.7
        07.02.2008       9                     07.02.2008      16          1.3
          If any error occurs while updating the global exception periods into ZLF_GEXCEPTION
          table, then display LF-001 message given below the Error messages section. For the
          successful updating of global exception periods to ZLF_GEXCEPTION table, then
          display the message “Successfully completed”.
                 User will be provided an option to download the global exception periods into an excel
                 file. User has to provide the necessary location details where to download the file while
                 downloading.
    Thanks&Regards.
    Bk

  • I would like to upload a excel file using jsp

    Hi,
    I would like to upload the excel file using jsp in my netbeans ide. Please help.
    I don Know what is the error in this jsp file. It is not showing any thing and the file is also not getting uploaded.
    Please gothru the code below.
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ page import="java.io.*" errorPage="err.jsp"%>
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="<html:rewrite page="/design.css" />" rel="stylesheet" type="text/css">
    <title>Upload Page</title>
    </head>
    <body onKeyDown="DisablingBackFunctionality()" onLoad="DisablingBackFunctionality()">
    <html:form action="download" >
    <div style="position:absolute; left:100;top:200;">Select an excel File :<input type="file" name="uploadfile"></div>
    <div style="position:absolute; left:190;top:250;"><input type="submit" name="Submit" value="Read"></div>
    <div style="position:absolute; left:336;top:250;"><input type="reset" name="Reset" value="Clear"></div>
    mainmenu
    </html:form>
    </body>
    </html>
    <%
    String contentType = request.getContentType();
    if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0)) {
    DataInputStream in = new DataInputStream(request.getInputStream());
    int formDataLength = request.getContentLength();
    byte dataBytes[] = new byte[formDataLength];
    int byteRead = 0;
    int totalBytesRead = 0;
    while (totalBytesRead < formDataLength) {
    byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
    totalBytesRead += byteRead;
    String file = new String(dataBytes);
    //out.println("<br> file :"+file);
    String saveFile = file.substring(file.indexOf("filename=\"") + 10);
    //out.println("<br> savefile :"+saveFile);
    saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
    //out.println("<br> now file1 :"+saveFile);
    saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1, saveFile.indexOf("\""));
    //out.println("<br> now file2 :"+saveFile);
    //out.print(dataBytes);
    String ext = "";
    if (saveFile.indexOf(".") != -1) {
    ext = saveFile.substring(saveFile.lastIndexOf("."));
    int lastIndex = contentType.lastIndexOf("=");
    //out.println("<br>lst index of"+lastIndex);
    String boundary = contentType.substring(lastIndex + 1, contentType.length());
    //out.println("<br> boundary"+boundary);
    //out.println("<br> file :"+file);
    int pos;
    pos = file.indexOf("filename=\"");
    //out.println("<br> now 0 :"+pos);
    pos = file.indexOf("\n", pos) + 1;
    //out.println("<br>now 1 :"+pos);
    pos = file.indexOf("\n", pos) + 1;
    //out.println("<br>now 2 :"+pos);
    pos = file.indexOf("\n", pos) + 1;
    //out.println("<br>now 3"+pos);
    int boundaryLocation = file.indexOf(boundary, pos) - 4;
    int startPos = ((file.substring(0, pos)).getBytes()).length;
    int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
    FileOutputStream fileOut = new FileOutputStream("D:\\" + saveFile);
    //FileOutputStream fileOut = new FileOutputStream(saveFile);
    //fileOut.write(dataBytes);
    fileOut.write(dataBytes, startPos, (endPos - startPos));
    fileOut.flush();
    fileOut.close();
    session.setAttribute("fil", saveFile);
    //out.println("File saved as " +saveFile);
    %>
    <script type="text/javascript" >
    function DisablingBackFunctionality()
    var URL;
    var i ;
    var QryStrValue;
    URL=window.location.href ;
    i=URL.indexOf("?");
    QryStrValue=URL.substring(i+1);
    if (QryStrValue!='X')
    window.location=URL + "?X";
    </script>
    Please let me know the result as soon as possible. Its my very urgent.
    Thanking Yu,
    Muthu Kumar.R

    No.
    Mylenium

  • Can anybody help how to upload an excel file into sap-crm urgent

    hi guys,
    i need the right function module to upload the excel file from the presentation server in to sap-crm.
    1) I know we use the function module 'ALSM_EXCEL_TO_INT_TABLE' in sap-r/3 but this function module is not exist in sap-crm.
    2) i tried with the function moduel 'GUI_UPLOAD' but its not uploading correctly i am gettting hases(#).
    Please can any one provide the right function module to upload the excel into sap-crm with an sample code.
    thanks
    viswa guntha

    Hi Visma,
    Please check this link for sample custom FM.
    Re: function mudule for MS excel file to sap crm
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful as away to say thanks.

  • Upload an excel file in the server  with a background job

    I am trying to upload an excel file in the server, but i only can upload flat files, i can upload files in local with the function ALSM_EXCEL_TO_INTERNAL_TABLE, can i use this function reading an excel file in the server, or is there another possibility of uploadinging an excel file in the server  with a background job ?
    thanks in advance

    Hi
    First read the file from the server to some temporary place at presentation layer and then open it. And if required, save it to the server afterwards. To read/write files to application server you can use:
    1. Statements "OPEN DATASET/CLOSE DATASET".
    2. There are some FMs for server file operations, like "C13Z_FILE_UPLOAD_BINARY" and "C13Z_FILE_DOWNLOAD_BINARY".
    *--Serdar

  • How to Upload the excel flat file in LSMW

    Hi all,
    Can any one plz Help me,
    How to Upload a excel file format by suing the lsmw .
    Regadrs.
    [email protected]
    Upender..
    Edited by: Upender Reddy on Sep 12, 2008 8:37 AM

    Hi,
    In 7 th step of LSMW we need to specify the file ie flat file.
    In this step you describe all files to be used in the following steps:
    · Your legacy data on the PC and/or R/3 server
    · The file for the read data
    · The file for the converted data.
    As your legacy data is on the PC: ie your excel file that is tab delimited or comma delimited.
    here give ur file name, description , click data from one src structure, then delimiter is tabulator if so, in file structure click both check boxes if in ur flat file ur first row is column, file type is record end indicator, code page ASCII and conitnue that's it.
    you can go through this link very useful :
    ****************/Tutorials/LSMW/LSMWMainPage.htm.
    thanx.

  • Edit the Excel file which i have uploaded in my blob domain.

    Hi,
    Am using jdeveloper 11.1.1.6.0.,
    I have dragged and dropped my VO as af:form in which uploadFile is a blobdomain.
    This is the code which i have used for upload and download my excel document.
    public void uploadFileValueChangeEvent(ValueChangeEvent valueChangeEvent) throws IOException,
    SQLException {
    // Add event code here...
    // The event give access to an Uploade dFile which contains data about the file and its content
    UploadedFile file = (UploadedFile)valueChangeEvent.getNewValue();
    // Get the original file name
    String fileName = file.getFilename();
    long filesize = file.getLength();
    long fkb = filesize/1024;
    // get the mime type
    String contentType = file.getContentType();
    //ContentTypes.get(fileName);
    // get the current roew from the ImagesView2Iterator via the binding
    DCBindingContainer lBindingContainer =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding lBinding =
    lBindingContainer.findIteratorBinding("XFilesView1Iterator");
    Row newRow = lBinding.getCurrentRow();
    // set the file name
    newRow.setAttribute("FileName", fileName);
    // create the BlobDomain and set it into the row
    newRow.setAttribute("FileContent", createBlobDomain(file));
    // set the mime type
    newRow.setAttribute("FileType", contentType);
    newRow.setAttribute("FileSize", fkb);
    private BlobDomain createBlobDomain(UploadedFile file)
    throws IOException, SQLException {
    // init the internal variables
    InputStream in = null;
    BlobDomain blobDomain = null;
    OutputStream out = null;
    try
    // Get the input stream representing the data from the client
    in = file.getInputStream();
    // create the BlobDomain datatype to store the data in the db
    blobDomain = new BlobDomain();
    // get the outputStream for hte BlobDomain
    out = blobDomain.getBinaryOutputStream();
    // copy the input stream into the output stream
    * IOUtils is a class from the Apache Commons IO Package (http://www.apache.org/)
    * Here version 2.0.1 is used
    * please download it directly from http://projects.apache.org/projects/commons_io.html
    IOUtils.copy(in, out);
    catch (IOException e)
    e.printStackTrace();
    catch (SQLException e)
    e.fillInStackTrace();
    // return the filled BlobDomain
    return blobDomain;
    public void Download(FacesContext facesContext,
    OutputStream outputStream) {
    // Add event code here...
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    // get an ADF attributevalue from the ADF page definitions
    AttributeBinding attr = (AttributeBinding) bindings.getControlBinding("FileContent");
    if (attr == null)
    return;
    // the value is a BlobDomain data type
    BlobDomain blob = (BlobDomain) attr.getInputValue();
    try
    {   // copy hte data from the BlobDomain to the output stream
    IOUtils.copy(blob.getInputStream(), outputStream);
    // cloase the blob to release the recources
    blob.closeInputStream();
    // flush the outout stream
    outputStream.flush();
    catch (IOException e)
    // handle errors
    e.printStackTrace();
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(), "");
    FacesContext.getCurrentInstance().addMessage(null, msg);
    My Scenario :
    I need to edit the uploaded file and save it back to the same location.
    How can i achieve this?

    By edit you mean changes the cells of the excel file?
    For  this you have to download the file to the client, let him make the changes and upload it again.
    You may want to look into Desktop integration
    Or if you want to change it in java you can use POI to change the file. However you first have to get it out of the blog, change it and put it back into the blob.
    Timo

  • After uploading an excel file from Windows XP, impossible to read the file anymore

    Hello,
    I uploaded an excel file from my Imac to the Icloud. I could use it on my Ipad through Numbers without problem. I went on my laptop running with Windows XP, I didn't see the plugin to install, so I didn't do it. I download this excel file and worked on it. When I uploaded again this file, I could see the letter E written on the file on the Icloud, but impossible to download it and work on it anymore from any of my devices. I installed the missing plugin on the laptop but still, no improvements.
    Any suggestions ?
    Best regards.

    Hi Stephan,
    You can do this using OLE technology. Bu you will have performance issues.
    Can you check the below demo programs? It has similar functionality. I am able to create excel sheet from sap and also able to save the data in the sap.
    SAPRDEMOEXCELINTEGRATION
    SAPRDEMOEXCELINTEGRATION2
    Please also check the below rograms for more help.
    SAPRDEMOACTIVEXINTEGRATION
    SAPRDEMODOCUMENTCONTAINER
    SAPRDEMODOCUMENTCONTAINER2
    Thanks
    Ramakrishna

  • How to upload normal excell file to ztable

    Hi All there,
    Can anybody tell me how to upload normal excell file to ztable directly.
    pl provide detail coding
    Regards
    Sagar

    Hi Sagar,
       first upload the excel data into your internal table using a FM than upload the data to your ZTABLE using BDC.
    parameters:
      p_file type rlgrap-filename          " File name
      data:
        lw_file  type string.              " File Path
    data:
      t_bdcdata type
       standard table
             of bdcdata,
      fs_bdcdata type bdcdata.             " Work area for bdcdata
    * Messages of call transaction
    data:
      t_messtab type
       standard table
             of bdcmsgcoll,
      fs_messtab type bdcmsgcoll.          " Work area for messtab
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
       exporting
         program_name        = syst-cprog
         dynpro_number       = syst-dynnr
         field_name          = ' '
       importing
         file_name           = p_file.
      lw_file = p_file.
      call function 'GUI_UPLOAD'
        exporting
          filename                    = lw_file
          filetype                    = 'ASC'
          has_field_separator         = 'X'
          dat_mode                    = 'X'
        tables
          data_tab                    = t_final_data
        exceptions
          file_open_error              = 1
          file_read_error              = 2
          no_batch                     = 3
          gui_refuse_filetransfer      = 4
          invalid_type                 = 5
          no_authority                 = 6
          unknown_error                = 7
          bad_data_format              = 8
          header_not_allowed           = 9
          separator_not_allowed        = 10
          header_too_long              = 11
          unknown_dp_error             = 12
          access_denied                = 13
          dp_out_of_memory             = 14
          disk_full                    = 15
          dp_timeout                   = 16
          others                       = 17.
      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 <> 0
      if t_final_data is initial.
        message 'File not found'(003) type 'E'.
      endif.                               " IF T_FINAL_DATA IS INITIAL
    end-of-selection.
      perform upload_0585_data_using_bdc.  " populate the bdcdata table using tcode SHDB
      call transaction 'PA30' using t_bdcdata
                               mode 'A'
                           messages into t_messtab.
    form upload_0585_data_using_bdc.
      loop at t_final_data into fs_final_data.
    perform bdc_field       using 'Q0585-ACNTR(07)'
                                   w_curr.
    perform bdc_field       using 'Q0585-ACOPC'
                                   lw_flag.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=UPD'.
    perform bdc_dynpro      using 'MP058500' '2000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/EBCK'.
    perform bdc_dynpro      using 'SAPMP50A' '1000'.
    endloop.
    *        Start new screen                                              *
    form bdc_dynpro using program dynpro.
      clear fs_bdcdata.
      fs_bdcdata-program  = program.
      fs_bdcdata-dynpro   = dynpro.
      fs_bdcdata-dynbegin = 'X'.
      append fs_bdcdata to t_bdcdata.
    endform.                               " Form bdc_dynpro using program...
    *        Insert field                                                  *
    form bdc_field using fnam fval.
        clear fs_bdcdata.
        fs_bdcdata-fnam = fnam.
        fs_bdcdata-fval = fval.
        append fs_bdcdata to t_bdcdata.
    endform.                               " Form bdc_field using fnam fval
    With luck,
    Pritam.

Maybe you are looking for