Excel multiple sheet upload

Hi
I can upload a single worksheet from Excel into an internal table in SAP, but need to upload from complex excel worksheets ie. from multiple named tabs in Excel.  Is this possible, and if so, please can you help and advise me how?
Many thanks
Sunni

Hi,
I have done the same requirement of uploading from multiple sheets of a excel file into internal tables recently. Here is what I have done....
1. save the excel sheet as XML file.
2. use XML class (IF_IXML) and its corresponding methods to read the data.
This method is little complex as it requires a fair amount of knowledge in ABAP Objects.
Kamal

Similar Messages

  • How to subscribe the report into one excel multiple sheets in ssrs

    Hi Team,
    I have a requirement where i pull my report in one excel with multiple sheets,
    1.I have a Emp_Report where i could subscribe my report into excel format,but here i want to subscribe this into multiple sheets in one excel form.
    2.Is it possible to subscribe the two reports in one excel with mulitiple sheets.i need this also.
    please guide me hw we can achive me ,so that i can start working on that .
    am using sql server 2008R2 sql server edition.
    pls help me out for this

    Hi Ychinnari,
    According to your description, you want to perform subscription for one report or two reports into multiple sheets within a Excel file.
    In Reporting Services, when we add a page break within the report, those pages will be exported into separated sheets in Excel.
    For first requirement, subscribe one report into multiple sheets in one Excel file. We can add a page break within a group, then the report will display on multiple sheets when subscribe into Excel format.
    For second requirement, subscribe one report into multiple sheets in one Excel file. You can add one report as a subreport into the main report, then add pagebreak between main report and subreport.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Download to Excel - multiple sheets

    hi All,
    I successfully create a xls with multiple worksheets
    <b>Method 1:</b>(http://www.sapdevelopment.co.uk/ms/ms_excel.htm)
    CREATE OBJECT application 'excel.application'
    CALL METHOD OF sheet 'Cells' = cells
       EXPORTING #1 = myY  #2 = myX.
        SET PROPERTY OF cells 'Value' = 'hello'.
    But this way of cell by cell populating, is too slow; I have 10,000 rows of records to download to excel as report.
    Then i tried second way <b>Method 2:</b>
    CALL FUNCTION 'XXL_SIMPLE_API'
    This is much faster, but it does not allow me to have multiple sheets.
    Can anyone advise how to speed up the process using method 1 ?
    Thanks in advance.
    Ee Siong

    Try this....
    *& Report  ZETA_EXCEL_DOWNLOAD_CLIPBOARD                               *
    report  zeta_excel_download_clipboard           .
    include ole2incl.
    data:  w_cell1     type ole2_object,
           w_cell2     type ole2_object.
    *--- Ole data Declarations
    data: h_excel     type ole2_object,        " Excel object
          h_mapl      type ole2_object,        " list of workbooks
          h_map       type ole2_object,        " workbook
          h_zl        type ole2_object,        " cell
          h_f         type ole2_object,        " font
          gs_interior type ole2_object,        " Pattern
          worksheet   type ole2_object,
          h_cell      type ole2_object,
          h_cell1     type ole2_object,
          range       type ole2_object,
          h_sheet2    type ole2_object,
          h_sheet3    type ole2_object,
          gs_font     type ole2_object,
          flg_stop(1) type c.
              Internal table Declaration
    data: begin of t_excel occurs 0,
    vkorg(20) type c, "Sales Org
    vbtyp(20) type c, "Document Category
    auart(20) type c, "Document Type
    ernam(20) type c, "Created By
    vbeln(20) type c, "Document Number
    posnr(20) type c, "Item Number
    erdat(20) type c, "Created Date
    vdatu(20) type c, "Header Requested Delivery Date
    reqdat(20) type c, "Request date
    condat(20) type c, "Confirm date
    lifsk(20) type c, "Header Block
    txt30(30) type c, "Order User Status Description
    lifsp(20) type c, "Line Block
    dispo(20) type c, "MRP Controller
    dsnam(20) type c, "MRP Controller Description
    vmsta(20) type c, "Material Sales Status
    kunnr(20) type c, "Sold To
    cname(35) type c, "Sold To Name
    regio(20) type c, "State
    cufd(10) type c, "CUD
    bstnk(20) type c, "PO#
    bsark(20) type c, "Ordering Method
    matnr(20) type c, "Material
    maktx(35) type c, "Material Description
    t200(20) type c, "T200
    vtext(20) type c, "T200 Description
    matkl(20) type c, "Material Group
    zzbomind(7) type c, "BOM Indicator
    ostat(20) type c, "Order Status
    cmgst(20) type c, "CRD
    inco1(20) type c, "Incoterms
    oqty(20) type c, "Order Quantity
    pqty(20) type c, "Open Quantity
    unit(20) type c, "UOM
    onet(20) type c, "Order Value
    pnet(20) type c, "Open Value
    curr(20) type c, "Currency key
    so_bezei like tvkbt-bezei,"Sales Office
    sg_bezei like tvgrt-bezei,"Sales Group
    bname(20) type c, "Ordering Party
    contact(20) type c, "Contact Name
    telf1(20) type c, "Contact telf1
    reqqty(20) type c, "Item Request qty
    reqval(20) type c, "Item Request value
    conqty(20) type c, "Item Confirm qty
    conval(20) type c, "Item Confirm value
    zzrev(02) type c, "Revenue recognition acceptance
    bezei(20) type c, "Revenue recognition text
    vgbel(20) type c, "Reference Order for RETURNS
    0008text(255) type c, "Internal Order Comment Text
    end of t_excel.
    data: t_excel_bckord like t_excel occurs 0 with header line,
          t_excel_bcklog like t_excel occurs 0 with header line,
          t_excel_blkord like t_excel occurs 0 with header line.
      types: data1(1500) type c,
             ty          type table of data1.
      data:  it          type ty with header line,
    it_2          type ty with header line,
    it_3          type ty with header line,
             rec         type sy-tfill,
             deli(1)     type c,
             l_amt(18)   type c.
    data: begin of hex,
             tab type x,
            end of hex.
      field-symbols: <fs>      .
      constants cns_09(2) type n value 09.
      assign deli to <fs> type 'X'.
      hex-tab = cns_09.
      <fs> = hex-tab.
    data gv_sheet_name(20) type c .
    M A C R O Declaration
    define ole_check_error.
      if &1 ne 0.
        message e001(zz) with &1.
        exit.
      endif.
    end-of-definition.
    t_excel_bckord-vkorg = 'ABC'.
    t_excel_bckord-vbtyp = 'DEF'.
    t_excel_bckord-auart = 'GHI'.
    t_excel_bckord-ernam = 'JKL'.
    t_excel_bckord-vbeln = 'MNO'.
    t_excel_bckord-0008text = 'XYZ'.
    append t_excel_bckord.
    t_excel_bckord-vkorg = 'ABC1'.
    t_excel_bckord-vbtyp = 'DEF1'.
    t_excel_bckord-auart = 'GHI1'.
    t_excel_bckord-ernam = 'JKL1'.
    t_excel_bckord-vbeln = 'MNO1'.
    t_excel_bckord-0008text = 'XYZ1'.
    append t_excel_bckord.
    t_excel_bckord-vkorg = 'ABC2'.
    t_excel_bckord-vbtyp = 'DEF2'.
    t_excel_bckord-auart = 'GHI2'.
    t_excel_bckord-ernam = 'JKL2'.
    t_excel_bckord-vbeln = 'MNO2'.
    t_excel_bckord-0008text = 'XYZ2'.
    append t_excel_bckord.
    t_excel_bcklog-vkorg = 'ABC'.
    t_excel_bcklog-vbtyp = 'DEF'.
    t_excel_bcklog-auart = 'GHI'.
    t_excel_bcklog-ernam = 'JKL'.
    t_excel_bcklog-vbeln = 'MNO'.
    t_excel_bcklog-0008text = 'XYZ'.
    append t_excel_bcklog.
    t_excel_bcklog-vkorg = 'ABC1'.
    t_excel_bcklog-vbtyp = 'DEF1'.
    t_excel_bcklog-auart = 'GHI1'.
    t_excel_bcklog-ernam = 'JKL1'.
    t_excel_bcklog-vbeln = 'MNO1'.
    t_excel_bcklog-0008text = 'XYZ1'.
    append t_excel_bcklog.
    t_excel_bcklog-vkorg = 'ABC2'.
    t_excel_bcklog-vbtyp = 'DEF2'.
    t_excel_bcklog-auart = 'GHI2'.
    t_excel_bcklog-ernam = 'JKL2'.
    t_excel_bcklog-vbeln = 'MNO2'.
    t_excel_bcklog-0008text = 'XYZ2'.
    append t_excel_bcklog.
    t_excel_bcklog-vkorg = 'ABC3'.
    t_excel_bcklog-vbtyp = 'DEF3'..
    t_excel_bcklog-auart = 'GHI3'.
    t_excel_bcklog-ernam = 'JKL3'.
    t_excel_bcklog-vbeln = 'MNO3'.
    t_excel_bcklog-0008text = 'XYZ3'.
    append t_excel_bcklog.
    t_excel_blkord-vkorg = 'ABC'.
    t_excel_blkord-vbtyp = 'DEF'.
    t_excel_blkord-auart = 'GHI'.
    t_excel_blkord-ernam = 'JKL'.
    t_excel_blkord-vbeln = 'MNO'.
    t_excel_blkord-0008text = 'XYZ'.
    append t_excel_blkord.
    t_excel_blkord-vkorg = 'ABC1'.
    t_excel_blkord-vbtyp = 'DEF1'.
    t_excel_blkord-auart = 'GHI1'.
    t_excel_blkord-ernam = 'JKL1'.
    t_excel_blkord-vbeln = 'MNO1'.
    t_excel_blkord-0008text = 'XYZ1'.
    append t_excel_blkord.
    t_excel_blkord-vkorg = 'ABC2'.
    t_excel_blkord-vbtyp = 'DEF2'.
    t_excel_blkord-auart = 'GHI2'.
    t_excel_blkord-ernam = 'JKL2'.
    t_excel_blkord-vbeln = 'MNO2'.
    t_excel_blkord-0008text = 'XYZ2'.
    append t_excel_blkord.
    t_excel_blkord-vkorg = 'ABC3'.
    t_excel_blkord-vbtyp = 'DEF3'..
    t_excel_blkord-auart = 'GHI3'.
    t_excel_blkord-ernam = 'JKL3'.
    t_excel_blkord-vbeln = 'MNO3'.
    t_excel_blkord-0008text = 'XYZ3'.
    append t_excel_blkord.
    t_excel_blkord-vkorg = 'ABC4'.
    t_excel_blkord-vbtyp = 'DEF4'..
    t_excel_blkord-auart = 'GHI4'.
    t_excel_blkord-ernam = 'JKL4'.
    t_excel_blkord-vbeln = 'MNO4'.
    t_excel_blkord-0008text = 'XYZ4'.
    append t_excel_blkord.
    loop at t_excel_bckord.
    concatenate
    t_excel_bckord-vkorg
    t_excel_bckord-vbtyp
    t_excel_bckord-auart
    t_excel_bckord-ernam
    t_excel_bckord-vbeln
    t_excel_bckord-posnr
    t_excel_bckord-erdat
    t_excel_bckord-vdatu
    t_excel_bckord-reqdat
    t_excel_bckord-condat
    t_excel_bckord-lifsk
    t_excel_bckord-txt30
    t_excel_bckord-lifsp
    t_excel_bckord-dispo
    t_excel_bckord-dsnam
    t_excel_bckord-vmsta
    t_excel_bckord-kunnr
    t_excel_bckord-cname
    t_excel_bckord-regio
    t_excel_bckord-cufd
    t_excel_bckord-bstnk
    t_excel_bckord-bsark
    t_excel_bckord-matnr
    t_excel_bckord-maktx
    t_excel_bckord-t200
    t_excel_bckord-vtext
    t_excel_bckord-matkl
    t_excel_bckord-zzbomind
    t_excel_bckord-ostat
    t_excel_bckord-cmgst
    t_excel_bckord-inco1
    t_excel_bckord-oqty
    t_excel_bckord-pqty
    t_excel_bckord-unit
    t_excel_bckord-onet
    t_excel_bckord-pnet
    t_excel_bckord-curr
    t_excel_bckord-so_bezei
    t_excel_bckord-sg_bezei
    t_excel_bckord-bname
    t_excel_bckord-contact
    t_excel_bckord-telf1
    t_excel_bckord-reqqty
    t_excel_bckord-reqval
    t_excel_bckord-conqty
    t_excel_bckord-conval
    t_excel_bckord-zzrev
    t_excel_bckord-bezei
    t_excel_bckord-vgbel
    t_excel_bckord-0008text
    into it
    separated by deli.
    append it.
        clear it.
    endloop.
    loop at t_excel_bcklog.
    concatenate
    t_excel_bcklog-vkorg
    t_excel_bcklog-vbtyp
    t_excel_bcklog-auart
    t_excel_bcklog-ernam
    t_excel_bcklog-vbeln
    t_excel_bcklog-posnr
    t_excel_bcklog-erdat
    t_excel_bcklog-vdatu
    t_excel_bcklog-reqdat
    t_excel_bcklog-condat
    t_excel_bcklog-lifsk
    t_excel_bcklog-txt30
    t_excel_bcklog-lifsp
    t_excel_bcklog-dispo
    t_excel_bcklog-dsnam
    t_excel_bcklog-vmsta
    t_excel_bcklog-kunnr
    t_excel_bcklog-cname
    t_excel_bcklog-regio
    t_excel_bcklog-cufd
    t_excel_bcklog-bstnk
    t_excel_bcklog-bsark
    t_excel_bcklog-matnr
    t_excel_bcklog-maktx
    t_excel_bcklog-t200
    t_excel_bcklog-vtext
    t_excel_bcklog-matkl
    t_excel_bcklog-zzbomind
    t_excel_bcklog-ostat
    t_excel_bcklog-cmgst
    t_excel_bcklog-inco1
    t_excel_bcklog-oqty
    t_excel_bcklog-pqty
    t_excel_bcklog-unit
    t_excel_bcklog-onet
    t_excel_bcklog-pnet
    t_excel_bcklog-curr
    t_excel_bcklog-so_bezei
    t_excel_bcklog-sg_bezei
    t_excel_bcklog-bname
    t_excel_bcklog-contact
    t_excel_bcklog-telf1
    t_excel_bcklog-reqqty
    t_excel_bcklog-reqval
    t_excel_bcklog-conqty
    t_excel_bcklog-conval
    t_excel_bcklog-zzrev
    t_excel_bcklog-bezei
    t_excel_bcklog-vgbel
    t_excel_bcklog-0008text
    into it_2
    separated by deli.
    append it_2.
        clear it_2.
    endloop.
    loop at t_excel_blkord.
    concatenate
    t_excel_blkord-vkorg
    t_excel_blkord-vbtyp
    t_excel_blkord-auart
    t_excel_blkord-ernam
    t_excel_blkord-vbeln
    t_excel_blkord-posnr
    t_excel_blkord-erdat
    t_excel_blkord-vdatu
    t_excel_blkord-reqdat
    t_excel_blkord-condat
    t_excel_blkord-lifsk
    t_excel_blkord-txt30
    t_excel_blkord-lifsp
    t_excel_blkord-dispo
    t_excel_blkord-dsnam
    t_excel_blkord-vmsta
    t_excel_blkord-kunnr
    t_excel_blkord-cname
    t_excel_blkord-regio
    t_excel_blkord-cufd
    t_excel_blkord-bstnk
    t_excel_blkord-bsark
    t_excel_blkord-matnr
    t_excel_blkord-maktx
    t_excel_blkord-t200
    t_excel_blkord-vtext
    t_excel_blkord-matkl
    t_excel_blkord-zzbomind
    t_excel_blkord-ostat
    t_excel_blkord-cmgst
    t_excel_blkord-inco1
    t_excel_blkord-oqty
    t_excel_blkord-pqty
    t_excel_blkord-unit
    t_excel_blkord-onet
    t_excel_blkord-pnet
    t_excel_blkord-curr
    t_excel_blkord-so_bezei
    t_excel_blkord-sg_bezei
    t_excel_blkord-bname
    t_excel_blkord-contact
    t_excel_blkord-telf1
    t_excel_blkord-reqqty
    t_excel_blkord-reqval
    t_excel_blkord-conqty
    t_excel_blkord-conval
    t_excel_blkord-zzrev
    t_excel_blkord-bezei
    t_excel_blkord-vgbel
    t_excel_blkord-0008text
    into it_3
    separated by deli.
    append it_3.
        clear it_3.
    endloop.
      if h_excel-header = space or h_excel-handle = -1.
    start Excel
        create object h_excel 'EXCEL.APPLICATION'.
      endif.
    PERFORM err_hdl.
    *--- get list of workbooks, initially empty
      call method of h_excel 'Workbooks' = h_mapl.
    PERFORM err_hdl.
      set property of h_excel 'Visible' = 1.
    add a new workbook
      call method of h_mapl 'Add' = h_map.
    PERFORM err_hdl.
    *GV_SHEET_NAME = '1st SHEET'.
    gv_sheet_name = 'Back Orders'.
      get property of  h_excel 'ACTIVESHEET' = worksheet.
    set property of worksheet 'Name' = gv_sheet_name .
    *--Formatting the area of additional data 1 and doing the BOLD
    call method of h_excel 'Cells' = w_cell1
    exporting
    #1 = 1
    #2 = 1.
    call method of h_excel 'Cells' = w_cell2
    exporting
    #1 = 1
    #2 = 50.
    call method of h_excel 'Range' = h_cell
    exporting
    #1 = w_cell1
    #2 = w_cell2.
    *CALL METHOD OF gs_cells 'Select' .
    get property of h_cell 'Font' = gs_font .
    set property of gs_font 'Bold' = 1 .
            data l_rc type i.
      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 h_excel 'Cells' = w_cell1
        exporting
          #1 = 1
          #2 = 1.
      call method of h_excel 'Cells' = w_cell2
        exporting
          #1 = 1
          #2 = 1.
    PERFORM err_hdl.
       call method of h_excel 'Range' = range
        exporting
          #1 = w_cell1
          #2 = w_cell2.
      call method of range 'Select'.
    PERFORM err_hdl.
      call method of worksheet 'Paste'.
    PERFORM err_hdl.
    CALL METHOD OF h_excel 'QUIT'.
    *GV_SHEET_NAME = '2ND SHEET'.
    gv_sheet_name = 'Backlog'.
    get property of h_excel 'Sheets' = h_sheet2 .
      call method of h_sheet2 'Add' = h_map.
    set property of h_map 'Name' = gv_sheet_name .
      get property of  h_excel 'ACTIVESHEET' = worksheet.
    *--Formatting the area of additional data 1 and doing the BOLD
    call method of h_excel 'Cells' = w_cell1
    exporting
    #1 = 1
    #2 = 1.
    call method of h_excel 'Cells' = w_cell2
    exporting
    #1 = 1
    #2 = 50.
    call method of h_excel 'Range' = h_cell
    exporting
    #1 = w_cell1
    #2 = w_cell2.
    get property of h_cell 'Font' = gs_font .
    set property of gs_font 'Bold' = 1 .
      call method cl_gui_frontend_services=>clipboard_export
        importing
          data                 = it_2[]
        changing
          rc                   = l_rc
        exceptions
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          others               = 4.
      call method of h_excel 'Cells' = w_cell1
        exporting
          #1 = 1
          #2 = 1.
      call method of h_excel 'Cells' = w_cell2
        exporting
          #1 = 1
          #2 = 1.
    PERFORM err_hdl.
       call method of h_excel 'Range' = range
        exporting
          #1 = w_cell1
          #2 = w_cell2.
      call method of range 'Select'.
    PERFORM err_hdl.
      call method of worksheet 'Paste'.
    *GV_SHEET_NAME = '3rd SHEET'.
    gv_sheet_name = 'Blocked Orders'.
    get property of h_excel 'Sheets' = h_sheet3 .
      call method of h_sheet3 'Add' = h_map.
    set property of h_map 'Name' = gv_sheet_name .
      get property of  h_excel 'ACTIVESHEET' = worksheet.
    *--Formatting the area of additional data 1 and doing the BOLD
    call method of h_excel 'Cells' = w_cell1
    exporting
    #1 = 1
    #2 = 1.
    call method of h_excel 'Cells' = w_cell2
    exporting
    #1 = 1
    #2 = 50.
    call method of h_excel 'Range' = h_cell
    exporting
    #1 = w_cell1
    #2 = w_cell2.
    get property of h_cell 'Font' = gs_font .
    set property of gs_font 'Bold' = 1 .
      call method cl_gui_frontend_services=>clipboard_export
        importing
          data                 = it_3[]
        changing
          rc                   = l_rc
        exceptions
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          others               = 4.
      call method of h_excel 'Cells' = w_cell1
        exporting
          #1 = 1
          #2 = 1.
      call method of h_excel 'Cells' = w_cell2
        exporting
          #1 = 1
          #2 = 1.
    PERFORM err_hdl.
       call method of h_excel 'Range' = range
        exporting
          #1 = w_cell1
          #2 = w_cell2.
      call method of range 'Select'.
    PERFORM err_hdl.
      call method of worksheet 'Paste'.
    *--- disconnect from Excel
      free object h_zl.
      free object h_mapl.
      free object h_map.
      free object h_excel.

  • Excel multiple sheet export on job schedule

    Is it possible to create a bqy job which emails an excel document with multiple sheets?
    Our environment is v11.1.1.1.2, Linux x86
    Thanks in advance!

    Hello,
    You can have a schedule a BQY in such a way that it can email the section you want in excel format. But i dont think so its possible for excel with multiple sheets.
    Thanks,
    BHANU

  • Multiple sheets from EXCEL

    Hi Everyone,
    My requirment is as follows to read multiple sheets from an EXCEL that contains MAcro and some Visual BAsic Components.
    I am using FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' to read a single sheet which works fine.
    But it brings in only one Active sheet at a time.
    Please help me resolve this.
      CREATE OBJECT application 'EXCEL.APPLICATION'.
      CALL METHOD OF application 'Workbooks' = workbook.
      CALL METHOD OF workbook 'Open' EXPORTING #1 = p_file.
    *call METHOD of Workbook 'Sheets' EXPORTING
    Open the first sheet in the workbook
      CALL METHOD OF workbook 'Worksheets' = sheet EXPORTING #1 = 1.
      CALL METHOD OF workbook 'ActivateSheet'
        EXPORTING
          #1 = 1.
      CALL METHOD OF sheet 'Activate'.
      CALL METHOD OF sheet 'Save'.
      FREE OBJECT application.
      SET PROPERTY OF application 'visible' = 0.
      CALL METHOD OF application 'QUIT'.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_file
          i_begin_col             = '1'
          i_begin_row             = '1'
          i_end_col               = '60'
          i_end_row               = '32000'
        TABLES
          intern                  = it_data
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        WRITE:/ 'Upload Error ', sy-subrc.
      ENDIF.
      APPEND LINES OF it_data TO gt_data.
      BREAK-POINT.
      CREATE OBJECT application 'EXCEL.APPLICATION'.
      CALL METHOD OF application 'Workbooks' = workbook.
      CALL METHOD OF workbook 'Open' EXPORTING #1 = p_file.
    Open the second sheet in the workbook
      CALL METHOD OF workbook 'Worksheets' = sheet EXPORTING #1 = 2.
        CALL METHOD OF workbook 'ActivateSheet'
        EXPORTING
          #1 = 2.
      CALL METHOD OF sheet 'Activate'.
      CALL METHOD OF sheet 'Save'.
      SET PROPERTY OF application 'visible' = 0.
      FREE OBJECT application.
      CALL METHOD OF application 'QUIT'.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_file
          i_begin_col             = '1'
          i_begin_row             = '1'
          i_end_col               = '60'
          i_end_row               = '32000'
        TABLES
          intern                  = it_data
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        WRITE:/ 'Upload Error ', sy-subrc.
      ENDIF.

    Hi ,
    Check the below link.
    [http://wiki.sdn.sap.com/wiki/display/Snippets/ReadmultiplesheetsofanExcelfileintoSAPthroughABAP]
    Thanks.
    Subhankar

  • Excel Template with Multiple Sheets

    Hi everyone,
    I need to build Excel template with multiple sheets where each sheet should have at-least one chart.
    Thanks
    Aravind

    Hi
    Could you please explain those ways here.?
    Many Thanks,
    BK

  • Report printing in excel with multiple sheets

    Hi Experts,
         I am working in Oracle Reports 10g.  I need to print the report in Excel....
    For this i have created .JSP file and now printing in Excel(Sheet1).
    My requirement is i need to print the report in multiple sheets.
    For example if i run the departments report then the generated excel file should be as below
    (Sheet1 - HR, Sheet2 - FINANCE, Sheet3 - MARKETING, etc.,)
    How can i do this?
    Thanks in Advance.

    Hi All,
       Is this possible  Report printing in excel with multiple sheets??
    Please give solution for my above post Report printing in excel with multiple sheets..
    Thanks,
    Su.gi

  • How to generate a report in Excel with multiple sheets using oracle10g

    Hi,
    I need a small help...
    we are using Oracle 10g...
    How to generate a report in Excel with multiple sheets.
    Thanks in advance.
    Regards,
    Ram

    Thanks Denis.
    I am using Oraclereports 10g version, i know desformat=spreadsheet will create single worksheet with out pagination, but my requirment is like the output should be generated in .xls file, and each worksheet will have both data and graphs.
    rdf paperlayout format will not workout for generating multiple worksheets.
    Is it possible to create multiple worksheets by using .jsp weblayout(web source) in oracle reports10g. If possible please provide me some examples
    Regards,
    Ram

  • Save as PDF in Excel rewrites file when saving multiple sheets

    Hello,
    I'm having issues saving Excel files to PDF when multiple sheets of a workbook are active. I constantly need to print multiple sheets of a workbook for a service report, but when multiple tabs are highlighted to print/save it will save each sheet as the output file but immediately overwrite the saved file with the next sheet. So if I have four sheets active and go to print/pdf/save to pdf I will briefly see a "processing page" message box for each sheet but in the end I will only have one pdf file of the last active sheet. A single sheet will save beautifully but it's kind of a pain to constantly string together the pdf files. I looked through the Excel forum, but it seems they point anything pdf related back to OS X. I'm running XL 12.1.5 and OS X 10.5.6. Any help will be appreciated. Thanks in advance.

    I've been having the same problem... after not finding a solution on this page, I finally found an answer that worked for me. As the Adobe support link below states... change the "Print Quality" to be the same for all sheets, then use the Print dialog box rather than the Save As dialog box. In the Print dialog box, choose the "save as PDF" option" (on the lower left for me). This finally solved my multiple file problem.
    http://kb.adobe.com/selfservice/viewContent.do?externalId=315086

  • Formula to calculate SUM of multiple sheets of excel and the result to be stored in another excel sheet and pop up alerts for multiple rows

    I have a excel with multiple
         sheets with data as shown below
    SHEET 1
    A 1
    B 2
    C 3
    SHEET 2
    B 1
    C 2
    A 3
    SHEET 3
    C 1
    A 2
    B 3
    My
    query is splitted into 3 categories
    I want to have a formula to do math calculation such that data of "A" of SHEET 1 is  calculated with "A" of SHEET2 irrespective of the location of "A".
    When I include SHEET3, the formula should automatically identify the location of "A" or "B" or "C" and give the result corresponding to A, B or C. Since I want to bifurcate daily report and output printed. I want to use another
    excel for output. How to link multiple sheets of one excel and print the output of above in
         another excel?
    Assume, I have 4 SHEETS,  "SHEET 1", "SHEET 2", "SHEET 3" and "SHEET 4". Math calculation need to be done using all 4 sheets. If
    I include "SHEET 5", the formula should ignore SHEET 1  automatically and give the results of SHEETS 2 to 5. Similarly, if I include SHEET 6, SHEET 1 and 2 need to be ignored for further calculation and SHEET 3-6 need to be used. How to write
    such formula?
    How to get pop up alert for multiple rows, if a specific condition is hit?

    Maybe VBA Code should be a good option for you. I suggest you post you issue to
    Excel for Developers forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Best Regards,
    Wind

  • How do I edit or enter values on multiple sheets at the same time in Numbers?  I can do this Excel but don't know procedure in Numbers.  Thanks.

    How do I edit or enter values on multiple sheets at the same time in Numbers?  I can do it in Excel but I don't the procedure in Numbers.  Thank you!

    The only I way I can think of to modify a single value and have that value change in multipl locations is to have all "the other places" reference a single cell.  There is not way without a referene to modify a set of cells simulateously.
    This may be something like what you want:
    Enter a value in the table "Original Data" cell A1 and the A1 cells of tables Ref1, Ref2 and Ref2-1 will change

  • How to download multiple sheets in one excel workbook

    Hi All,
            I have requirement to download multiple sheets in excel workbook. I had
    successfully downloaded multiple sheets in excel. But it was downloaded only in
    my desktop. My requirement is user selects the path and i have to download the
    data in specified path.
    Could you please help me on this?
    Thanks in Advance,
    Basha Shaik

    >>My requirement is user selects the path and i have to download the
    data in specified path.
    For this..use CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
      EXPORTING
        WINDOW_TITLE         = TITLE
       DEFAULT_EXTENSION    =
       DEFAULT_FILE_NAME    =
       WITH_ENCODING        =
        FILE_FILTER          = '.|.'
       INITIAL_DIRECTORY    =
       PROMPT_ON_OVERWRITE  = 'X'
      CHANGING
        FILENAME             = W_FNAME
        PATH                 = W_FILEPATH
        FULLPATH             = W_FULLPATH
       USER_ACTION          =
       FILE_ENCODING        =
      EXCEPTIONS
        CNTL_ERROR           = 1
        ERROR_NO_GUI         = 2
        NOT_SUPPORTED_BY_GUI = 3
        others               = 4.
    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 NOT W_FULLPATH IS INITIAL.
      FILE_NAME = W_FULLPATH.
    ENDIF.
    regards,
    priya.

  • How do I convert multiple sheets in excel into one pdf document?

    How do I convert multiple sheets (tabs) in excel to one combined pdf document?

    Hi Ptizer,
    If you have Acrobat PDFMaker  enable on Ms Excel. You can click on Create PDF.
    And choose settings as highlighted on screen shot it should do the job for you.
    Regards,
    Ajlan Huda.

  • Download  to multiple sheet excel in the background

    Hi,
    I am trying to download data into multiple excel sheets in the background. I was able to create comma delimited csv file in the server, which can be opened as excel file. This is good when it does not have more that one worksheets.
    I have three internal table and to send these internal tables in different worksheets in the same excel file.
    Is it possible to have multiple sheets excel file from the csv file?
    Thanks,
    Lokman

    Hi Lokman,
    <b>1</b>.
    Yes it is Possible.
    <b>2</b>.
    Am sending one example program .That is clear to understand .
    REPORT zvenkat_head MESSAGE-ID zvenkat .
    INCLUDE ole2incl. " Include for OLE object
    DATA: application TYPE ole2_object,
          workbook    TYPE ole2_object,
          sheet       TYPE ole2_object,
          cells       TYPE ole2_object,
          h_f         TYPE ole2_object.            " font
    *Structure for users deleted
    DATA:   BEGIN OF itab_yb001_udel OCCURS 0,
              bname     LIKE yb001-bname,
              name_text LIKE addr3_val-name_text,
            END OF itab_yb001_udel.
    DATA:   BEGIN OF itab_yb001_tadd OCCURS 0.
            INCLUDE STRUCTURE yb001.
    DATA:   name_text LIKE addr3_val-name_text,
            ttext LIKE tstct-ttext.
    DATA:   END OF itab_yb001_tadd.
    *Structure for Transactions deleted
    DATA:   BEGIN OF itab_yb001_tdel OCCURS 0.
            INCLUDE STRUCTURE yb001.
    DATA:   name_text LIKE addr3_val-name_text,
            ttext LIKE tstct-ttext.
    DATA:   END OF itab_yb001_tdel.
    DATA:   BEGIN OF itab_yb001_uadd OCCURS 0,
            bname LIKE yb001-bname,
            name_text LIKE addr3_val-name_text,
            END OF itab_yb001_uadd.
    PARAMETERS: p_fname LIKE rlgrap-filename. " File name to download
    PERFORM download_file.
    FORM - DOWNLOAD_FILE
    FORM download_file.
      DATA index TYPE i.
      CREATE OBJECT application 'excel.application'.
      SET PROPERTY OF application 'visible' = 0.
      CALL METHOD OF application 'Workbooks' = workbook.
      CALL METHOD OF workbook 'Add'.
      CALL METHOD OF application 'Worksheets' = sheet.
      CALL METHOD OF sheet 'Add'.
    Create 1 Excel sheet
      CALL METHOD OF application 'Worksheets' = sheet
        EXPORTING #1 = 1.
      SET PROPERTY OF sheet 'Name' = 'Transactions Added'.
      CALL METHOD OF sheet 'Activate'.
      PERFORM f_xl_theader.
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          text   = text-m03
        EXCEPTIONS
          OTHERS = 1.
      LOOP AT itab_yb001_tadd.
        index = sy-tabix + 1. " 1 - column name
        PERFORM fill_cell USING index 1 0 itab_yb001_tadd-bname.
        PERFORM fill_cell USING index 2 0 itab_yb001_tadd-tcode.
        PERFORM fill_cell USING index 3 0 itab_yb001_tadd-name_text.
        PERFORM fill_cell USING index 4 0 itab_yb001_tadd-ttext.
        PERFORM fill_cell USING index 5 0 itab_yb001_tadd-agr_name.
      ENDLOOP.
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          text   = text-m03
        EXCEPTIONS
          OTHERS = 1.
    Create 2 Excel sheet
      CALL METHOD OF application 'Worksheets' = sheet
        EXPORTING #1 = 2.
      SET PROPERTY OF sheet 'Name' = 'Transactions Deleted'.
      CALL METHOD OF sheet 'Activate'.
      PERFORM f_xl_theader.
      LOOP AT itab_yb001_tdel.
        index = sy-tabix + 1. " 1 - column name
        PERFORM fill_cell USING index 1 0 itab_yb001_tdel-bname.
        PERFORM fill_cell USING index 2 0 itab_yb001_tdel-tcode.
        PERFORM fill_cell USING index 3 0 itab_yb001_tdel-name_text.
        PERFORM fill_cell USING index 4 0 itab_yb001_tdel-ttext.
        PERFORM fill_cell USING index 5 0 itab_yb001_tdel-agr_name.
      ENDLOOP.
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          text   = text-m04
        EXCEPTIONS
          OTHERS = 1.
    Create 3 Excel Sheet
      CALL METHOD OF application 'Worksheets' = sheet
        EXPORTING #1 = 3.
      CALL METHOD OF sheet 'Activate'.
      SET PROPERTY OF sheet 'Name' = 'Users Added'.
      PERFORM f_xl_uheader.
      LOOP AT itab_yb001_uadd.
        index = sy-tabix + 1. " 1 - column name
        PERFORM fill_cell USING index 1 0 itab_yb001_uadd-bname.
        PERFORM fill_cell USING index 2 0 itab_yb001_uadd-name_text.
      ENDLOOP.
    Create 4 Excel sheet
      CALL METHOD OF application 'Worksheets' = sheet
        EXPORTING #1 = 4.
      SET PROPERTY OF sheet 'Name' = 'Users Deleted'.
      CALL METHOD OF sheet 'Activate'.
      PERFORM f_xl_uheader.
      LOOP AT itab_yb001_udel.
        index = sy-tabix + 1. " 1 - column name
        PERFORM fill_cell USING index 1 0 itab_yb001_udel-bname.
        PERFORM fill_cell USING index 2 0 itab_yb001_udel-name_text.
      ENDLOOP.
    Save excel speadsheet to particular filename
      CALL METHOD OF sheet 'SaveAs'
                      EXPORTING #1 = p_fname     "filename
                                #2 = 1.          "fileFormat
      PERFORM err_hdl.
    Closes excel window, data is lost if not saved
      SET PROPERTY OF application 'visible' = 0.
    Close the file
      CALL METHOD OF workbook 'CLOSE'.
    Quit the file
      CALL METHOD OF application 'QUIT'.
      FREE OBJECT application.
    ENDFORM.                    "DOWNLOAD_FILE
    *&      Form  F_XL_THEADER
          Header for XL sheet
    -->  p1        text
    <--  p2        text
    FORM f_xl_theader .
    output column headings to active Excel sheet
      PERFORM fill_cell USING 1 1 1 text-t01.
      PERFORM fill_cell USING 1 2 1 text-t02.
      PERFORM fill_cell USING 1 3 1 text-t03.
      PERFORM fill_cell USING 1 4 1 text-t04.
      PERFORM fill_cell USING 1 5 1 text-t05.
    ENDFORM.                    " F_XL_THEADER
          FORM FILL_CELL                                                *
          sets cell at coordinates i,j to value val boldtype bold       *
    FORM fill_cell USING i j bold val.
      CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = i #2 = j.
      PERFORM err_hdl.
      SET PROPERTY OF cells 'Value' = val .
      PERFORM err_hdl.
      GET PROPERTY OF cells 'Font' = h_f.
      PERFORM err_hdl.
      SET PROPERTY OF h_f 'Bold' = bold .
      PERFORM err_hdl.
    ENDFORM.                    "FILL_CELL
          outputs OLE error if any                                       *
    -->  p1        text
    <--  p2        text
    FORM err_hdl.
      IF sy-subrc <> 0.
        WRITE: / 'Fehler bei OLE-Automation:'(010), sy-subrc.
        STOP.
      ENDIF.
    ENDFORM.                    " ERR_HDL
          Header for XL sheet
    -->  p1        text
    <--  p2        text
    FORM f_xl_uheader .
      PERFORM fill_cell USING 1 1 1 text-t01.
      PERFORM fill_cell USING 1 2 1 text-t03.
    ENDFORM.                    " F_XL_UHEADER
    Please try to understand first and replicate to ur requirement.
    Please let me know if u have any problem.
    <b>Thanks,
    Venkat.O</b>

  • How to read Multiple sheet Excel file( One of the sheet generated by rule )

    Hi Folks,
    I have one critical requirement about reading an Excelsheet.
    I have an Excelsheet, which has got 2 tabs. Now  TAB1  is having the data stored and TAB2 has got data, which is created by some Rule using in Excelsheet.
    Now when i am trying to pass this Excel sheet to Function module ' TEXT_CONVERT_XLS_TO_SAP'  this Fucntion Module is returning the data from TAB1. But my requirement is that, i have to read data from TAB2, which is generated by implementing some rule on TAB1.
    So Please help, me how can i read the multiple sheet Excel document and how to read the tab , which is generated by some rule.
    Thanks.
    PG

    Hi Guru,
    Thanks for your reply.
    I have seen this blog, and treid to implement the code. But when i am caaling method GET_RANGES_DATA
    in the program, it's hanging my whole program and followed by hanging my SAP login.
    I have no clue, why my program is getting hung up, bcoz of this call.
    After debugging this method, i found that the program is getting hung up at call of one function module DP_GET_TABLE.
    This Function Module is internally called by above menthioned method.
    So please let me know, if you have some input on above issue, or if you know some other way to implement this problem.
    Regards
    PG

Maybe you are looking for

  • ORA32004, ORA error during installation

    Hi, During SAP installation I got below error SAP 2004S Oracle 10.2 Oracle installation was done successfully(SID-ANK) during SAP installation I am getting this error.... ERROR 2009-07-09 08:32:28 CJS-00084 SQL statement or script failed. DIAGNOSIS:

  • Picture Lock xml has turned into dreamweaver document xhtml

    Do I have conflicting programs on my computer? FCP xml is opening in Dreamweaver

  • Photoshop CS5.1 won't read raw files from Canon EOS M

    Photoshop cs5.1 won't read raw files from canon eosM, what to do?

  • SQL Data Access from database

     Hi Friends,  I want to access data from database, User will enter Start Date and end date , based on that , data will be get retried. Is it possible to write a SQL Query, Where A SQL Query will take care user start and end date. Start date and end d

  • Upgrading from trial version of iWork08

    I'd like to obtain a serial number for iWork08 to upgrade my trial version. Is it possible just to buy a serial number and have it e-mailed to me, or do I have to buy the software package and wait for the CD in the post.?