Break Report group wise in different sheets in excel

Hi,
Can we split the xml report into different sheets in excel depending on the xml node hierarchy ? I don't want to mail the report.
Regards,

The blog http://blogs.oracle.com/xmlpublisher/2010/03/multisheet_excel_output.html might give you some idea.

Similar Messages

  • How to download data from different sheet of excel file.

    Hi Friends,
    I have a Excel file with different sheet like sheet 1, sheet 2 and so on,
    and i have to download each sheet data in to different internal tables.
    Is there any FM or something else.
    Pl. help
    Thanks
    Sunil.

    Hi,
       You can create the function module for this.
    The code sample is as below:
    *Code Sample *
    FUNCTION Z_UPLOADING_FROM_2SHEETS.
    ""Local interface:
    *" IMPORTING
    *" VALUE(FILE_NAME) LIKE RLGRAP-FILENAME
    *" VALUE(START_ROW_SHEET1) TYPE I
    *" VALUE(START_COLUMN_SHEET1) TYPE I
    *" VALUE(START_ROW_SHEET2) TYPE I
    *" VALUE(START_COLUMN_SHEET2) TYPE I
    *" VALUE(END_ROW_SHEET1) TYPE I
    *" VALUE(END_COLUMN_SHEET1) TYPE I
    *" VALUE(END_ROW_SHEET2) TYPE I
    *" VALUE(END_COLUMN_SHEET2) TYPE I
    *" TABLES
    *" IT_DATA1 STRUCTURE ALSMEX_TABLINE
    *" IT_DATA2 STRUCTURE ALSMEX_TABLINE
    *" EXCEPTIONS
    *" INCONSISTENT_PARAMETERS
    *" UPLOAD_OLE
    DATA DECLARATION
    DATA: excel_tab TYPE ty_t_sender,
    excel_tab1 TYPE ty_t_sender.
    DATA: ld_separator TYPE c.
    DATA: application TYPE ole2_object,
    workbook TYPE ole2_object,
    SHEET TYPE OLE2_OBJECT,
    range TYPE ole2_object,
    worksheet TYPE ole2_object.
    DATA: h_cell TYPE ole2_object,
    h_cell1 TYPE ole2_object.
    DATA: ld_rc TYPE i.
    MESSAGE DEFINATION
    DEFINE m_message.
    case sy-subrc.
    when 0.
    when 1.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    when others. raise upload_ole.
    endcase.
    END-OF-DEFINITION.
    PARAMETER CHECK
    IF START_ROW_SHEET1 > END_ROW_SHEET1.
    RAISE inconsistent_parameters.
    ENDIF.
    IF START_COLUMN_SHEET1 > END_COLUMN_SHEET1.
    RAISE inconsistent_parameters.
    ENDIF.
    IF START_ROW_SHEET2 > END_ROW_SHEET2.
    RAISE inconsistent_parameters.
    ENDIF.
    IF START_COLUMN_SHEET2 > END_COLUMN_SHEET2.
    RAISE inconsistent_parameters.
    ENDIF.
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    ld_separator = cl_abap_char_utilities=>horizontal_tab.
    OPENING EXCEL FILE
    IF application-header = space OR application-handle = -1.
    CREATE OBJECT application 'Excel.Application'.
    m_message.
    ENDIF.
    CALL METHOD OF APPLICATION 'Workbooks' = WORKBOOK.
    m_message.
    CALL METHOD OF application 'Workbooks' = workbook.
    m_message.
    CALL METHOD OF workbook 'Open' EXPORTING #1 = FILE_NAME.
    m_message.
    CALL METHOD OF APPLICATION 'Worksheets' = SHEET EXPORTING #1 = 1.
    m_message.
    CALL METHOD OF APPLICATION 'Worksheets' = SHEET EXPORTING #1 = 1.
    m_message.
    CALL METHOD OF SHEET 'Activate'.
    m_message.
    GET PROPERTY OF application 'ACTIVESHEET' = sheet.
    m_message.
    MARKING OF WHOLE SPREADSHEET
    CALL METHOD OF sheet 'Cells' = h_cell
    EXPORTING #1 = START_ROW_SHEET1 #2 = START_COLUMN_SHEET1.
    m_message.
    CALL METHOD OF sheet 'Cells' = h_cell1
    EXPORTING #1 = END_ROW_SHEET1 #2 = END_COLUMN_SHEET1.
    m_message.
    CALL METHOD OF sheet 'RANGE' = range
    EXPORTING #1 = h_cell #2 = h_cell1.
    m_message.
    CALL METHOD OF range 'SELECT'.
    m_message.
    Copy marked area (SHEET1) into Clippboard
    CALL METHOD OF range 'COPY'.
    m_message.
    Read clipboard into ABAP
    CALL METHOD cl_gui_frontend_services=>clipboard_import
    IMPORTING
    data = excel_tab
    EXCEPTIONS
    cntl_error = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE a037(alsmex).
    ENDIF.
    PERFORM separated_to_intern_convert TABLES excel_tab IT_DATA1
    USING ld_separator.
    Clear the clipboard
    REFRESH excel_tab.
    CALL METHOD cl_gui_frontend_services=>clipboard_export
    IMPORTING
    data = excel_tab
    CHANGING
    rc = ld_rc
    EXCEPTIONS
    cntl_error = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    OTHERS = 4
    Working in Second Excel Work Sheet
    CALL METHOD OF APPLICATION 'Worksheets' = SHEET EXPORTING #1 = 2.
    m_message.
    CALL METHOD OF SHEET 'Activate'.
    m_message.
    GET PROPERTY OF application 'ACTIVESHEET' = sheet.
    m_message.
    Mark Sheet2
    CALL METHOD OF sheet 'Cells' = h_cell
    EXPORTING #1 = START_ROW_SHEET2 #2 = START_COLUMN_SHEET2.
    m_message.
    CALL METHOD OF sheet 'Cells' = h_cell1
    EXPORTING #1 = END_ROW_SHEET2 #2 = END_COLUMN_SHEET2.
    m_message.
    CALL METHOD OF sheet 'RANGE' = range
    EXPORTING #1 = h_cell #2 = h_cell1.
    m_message.
    CALL METHOD OF range 'SELECT'.
    m_message.
    Copy Marked Area (Sheet2) into Clippboard
    CALL METHOD OF range 'COPY'.
    m_message.
    Read Clipboard into ABAP
    CALL METHOD cl_gui_frontend_services=>clipboard_import
    IMPORTING
    data = excel_tab1
    EXCEPTIONS
    cntl_error = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE a037(alsmex).
    ENDIF.
    PERFORM separated_to_intern_convert TABLES excel_tab1 IT_DATA2
    USING ld_separator.
    Clear Clipboard
    REFRESH excel_tab.
    CALL METHOD cl_gui_frontend_services=>clipboard_export
    IMPORTING
    data = excel_tab1
    CHANGING
    rc = ld_rc
    EXCEPTIONS
    cntl_error = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    OTHERS = 4
    Leaving Application .
    CALL METHOD OF application 'QUIT'.
    m_message.
    FREE OBJECT application.
    m_message.
    ENDFUNCTION.

  • Requirement to display records on different sheets on Excel

    Hi All
    We have requirement for a custom report where in the Purchase Order and Requisition records are to be displayed on a separate sheet of the Excel file (PO records on sheet1 and Requisition record on sheet2)
    Please let me know if anyone has done similar customization. And also if this is possible using XML Publisher.
    Regards,
    Shruti

    The blog http://blogs.oracle.com/xmlpublisher/2010/03/multisheet_excel_output.html might give you some idea.

  • Using Labview how can one store different data in different sheets of same excel file, I mean how to select different sheets to store data??

    Hello Everyone,
    I want to store various data but in different sheets of excel file. So how to select Different sheets of same excel file???
    Thanks so much 
    Pallavi 

    aeastet wrote:
    Why do you not want to use Active X?
    One very good reason that I can think of is that MS keeps changing their ActiveX interface with each version of Excel, so code written for one version of Excel using ActiveX may not work for another version of Excel, even though the basic functionality hasn't changed. A perfect example is when MS changed the "Value" property to "Value2". Yeah, that made a whole lot of sense.
    pals wrote:
    I dont want to use active X as i am not
    getting results... by using write to spreadsheet in am getting results
    but on just one sheet... I want different data on different sheets of
    same excel file. So....
    Can anyone help me in this...
    Then it's something you're doing. Please post your code. Have you tried a search on this forum for ActiveX and Excel? There have been tons of posts on it, including lots of examples. There's also the Excel thread.

  • Profit center group wise balance sheet and trading account report req

    Hi.
    We are using Profit ceter accounting for one of our clients.its ECC 6.0 therefore New GL is activated. FSV is not configured.
    Now I want to get the reports - Profit center group wise balance sheet and trading a/c.
    Can anyone help me in this regard.
    Thanks in advance.
    Regards,
    Padmavathi

    Hi Padma
    the std reports S_PL0_***** serve the purpose... You can browse SAP easy access menu under FI
    you can input PC or a group of PC as additional selection criteria
    Ajay M

  • Profit Center Groups Wise Report

    Hi Team,
    Is it possible to have GL Balance, Vendor and customer Balances on Profit Center Group Wise on basis of Plant to which few more plants are assigned.
    For Example:
    Company code is 1000
    Under Co. code 6 Plants are present ie; 2000, 3000, 4000, 5000,6000, 7000
    3000 and 4000 Plants reporting to 2000 plant 6000,7000 plants are reportting to 5000 plant
    for ex geographically you can imagine we have one comany code and uder that two main reporting centers are exists like south and north.
    For every plant we have 10  profit centers. To get the plant wise P&L and B/S we created  profit center groups and we are getting the reports in controlling but client require GL balances vendor balances Customer balances in FI on profit center group wise. (Both vendors balance FK01 & XK01, Customer balance FD01,XD01,  GL Account Balance of 2000,3000,4000 all combined)
    so i would like to know if we want FI reports like plant shall we create group profitcenter or we have some other option because p group wise  GL balnces customer balnces vendor balnces is must requyired for the client.
    Thanks,
    Madhu

    Hi
    You can check with below mentioned reports
    S_ALR_87013326 - Profit Center Group: Plan/Actual/Variance
    S_ALR_87013327 - Profit Center Comparison: Plan/Actual/Variance
    S_ALR_87013330 - Profit Center Group: Plan/Plan/Actual Versions
    S_ALR_87013332 - Profit Center Group: Current Period/Aggregated/Year
    S_ALR_87013334 - Profit Center Group: Compare Actual Quarters over 2 Years
    S_ALR_87013336 - Profit Center Group: Balance Sheet Accounts Plan/Actual/Variance
    S_ALR_87013337 - Profit Center Group: Key Figures
    S_ALR_87013339 - Profit Center Comparison: Return on Investment
    S_ALR_87009712 - Profit Center List: Plan/Actual
    S_ALR_87013340 - Profit Center Group: Plan/Actual/Variance
    S_ALR_87009726 - Profit Center Group: Plan/Actual/Variance by Origin
    S_ALR_87009734 - Profit Center Group: Plan/Plan/Variance
    S_ALR_87009717 - Profit Center Group: Quarterly Comparison of Actual Data
    S_ALR_87013342 - Profit Center: Statistical Key Figures
    Regards
    Praveen PC

  • Account Group wise vendor aging report

    Dear Gurus,
    How can I see vedor account group wise ageing report in a company code?i.e Trade Vendors, Non Trade Vndors wise aging report
    Thanks in adv.
    N.M.B

    Dear Raghavender
    No need to create to variant and all.
    You just go to S_ALR_87012085 then go to dynamic selections. There we can give account group whatever we want.
    If u have any doubts reg. this pls ask me
    Bye
    Murali

  • Report for monthly sales(sales office wise,sales group wise,plant wise)

    Please send the Report for monthly sales(sales office wise,sales group wise,plant wise)  with T.CODE.,

    Hi
    As per my knowledge there is no Standard Report in SAP based on sales office, sales group. and plant.
    You may create your own report using MC18,MC21 and MC24.... Otherwise ask your ABAPer's help...
    Muthu

  • How to export Bi Publisher report into .csv file in different sheets?

    Hi,
    I have a report request in BI Publisher to generate the results in different tabs in Excel format with headings etc.
    But the users are now asking for the same report in .csv format with the same number of tabs in one file.
    Can I do that in .csv file?
    Regards
    Sailaja

    Can I do that in .csv file?
    no
    csv is simple plain-text
    A comma-separated values (CSV) (also sometimes called character-separated values, because the separator character does not have to be a comma) file stores tabular data (numbers and text) in plain-text form. Plain text means that the file is a sequence of characters, with no data that has to be interpreted instead, as binary numbers. A CSV file consists of any number of records, separated by line breaks of some kind; each record consists of fields, separated by some other character or string, most commonly a literal comma or tab. Usually, all records have an identical sequence of fields.
    Comma-separated values - Wikipedia, the free encyclopedia

  • Sales Report Material Group-wise

    I want to generate Sales Report Material Group-wise is there any standard report.
    regards,
    Rajesh

    Hi
    Use the T.code: MCBK, this report tells you about Total stock received, total stock issue for sales order against the material group.
    Reward if it helps
    Regards
    Prasanna R

  • Material Group-wise Sales Report

    I want to generate Sales Report Material Group-wise is there any standard report.
    regards,
    Rajesh

    Hi Vinod,
    MB52 is giving stock of Material on Hand, I want sales report.
    regards
    Rajesh

  • Customer group wise sales report

    can somebody give me a clue as to how to take customer group wise sales report
    thanks

    HI,
    it will not get the sales report with customer group wise in standard SAP.
    in standard you will get the data for the following selection :
    a. Sales Office wise : MC-E
    b. Sales Organization wise : MC+2
    c. Material(Article) wise : MC+Q
    tell me one thing, whether u need the report customer group wise or customer account group wise.
    Regards,
    somu.

  • Sales group wise credit report

    Hello Experts
    Right now,we are using S_ALR_87012178 report for the report on customer open item due analysis.
    However there are a few limitations here.
    Firstly, we need Customer # (KUNNR) to be displayed along with the customer name (NAME1). Presently, only customer name is displayed.Assuming, this can be solved to a certain extent by modifying the coding with the help of an Abaper, there is another limitation.
    *We need 'Sales Group' wise split up. This 'Sales Group' NOT from CMR,but from SO. [Since, for a single customer there may be cases of multiple 'sales groups']*
    Any help/Suggestion, will surely be appreciated.
    Good day....
    Rgds
    Sumanth.Gururaj
    Consultant- SAP SD

    hi,
    exactly my mate is right in this.
    you are requested not to change the STD coding part of SAP.
    please go for new report instead of old one.
    regards,
    balajia

  • GL account group wise balance report

    Dear Friends,
    Could you please let me know whether there is any report to view G/L account group wise balance.
    Here we have nearly 1016 GL accounts and grouped under 34 G/L Account groups. Here my client is asking a report to view G/L balances for 34 account groups.
    Regards,
    Dwarak.

    Dear Sai,
    I'm asking a report where it mainly shows as follows:
    G/L Account group      Balance
    OTIN (Other Income)   10,000.00
    SALE(Op Income)       25,000.00
    DEPN(Depreciation)      5,000.00
    ASST(Assets)             30,000.00
                                     70,000.00
    Please let me know if this kind of report is available in SAP.
    Regards,
    Dwarak.

  • Customer Group wise report

    Dear all,
    Can any one told me the Standard report with reference to Customer Group wise?
    Plz send me the solution for the same.
    Thanks & Regards,
    PM

    for list of sales docs with customer Group as a filed in the report
    1. VA15 - List of Inquiries
    2. VA25 - List of Quotations
    3. VA05 - List of Sales Orders
    Also you can create your own report  by using t.code: SQVI - ABAP quick viewer by joining one or more tables.
    Important Tables for SAP SD
    Sales and Distribution:
      Table  Description
    Customers  KNA1   General Data
                      KNB1   Customer Master – Co. Code Data (payment method, reconciliation acct)
                      KNB4   Customer Payment History
                      KNB5   Customer Master – Dunning info
                      KNBK   Customer Master Bank Data
                      KNKA   Customer Master Credit Mgmt.
                      KNKK   Customer Master Credit Control Area Data (credit limits)
                      KNVV   Sales Area Data (terms, order probability)
                      KNVI   Customer Master Tax Indicator
                      KNVP   Partner Function key
                      KNVD   Output type
                      KNVS   Customer Master Ship Data
                      KLPA   Customer/Vendor Link
    Sales Documents  
                      VBUK   Header Status and Administrative Data
                      VBAK   Sales Document - Header Data
                      VBKD   Sales Document - Business Data
                      VBUP   Item Status
                      VBAP   Sales Document - Item Data
                      VBPA   Partners
                      VBFA   Document Flow
                      VBEP   Sales Document Schedule Line
                      VBBE   Sales Requirements: Individual Records
    SD Delivery Documents
    LIPS   Delivery Document item data, includes referencing PO
    LIKP   Delivery Document Header data
    Billing Document 
                      VBRK   Billing Document Header
                      VBRP   Billing Document Item
    SD Shipping Unit 
                      VEKP   Shipping Unit Item (Content)
                      VEPO   Shipping Unit Header

Maybe you are looking for

  • Won't Boot to Apple Hardware Test or accept Boot Commands

    Hi All, I would appreciate some help with this issue, I am trying to boot up to the Apple Hardware Test on my Install Disk 1 that shipped with my MacBook Pro 2.4GHz Model #A1226 ordered new with 4 gigs of memory (around Aug. 2007). I am currently run

  • Oracle 9i contines to ask for a password

    So that we may better diagnose DOWNLOAD problems, please provide the following information. - Server name - Filename - Date/Time - Browser + Version - O/S + Version - Error Msg I have downloaded oracle 9i personal and have manged to install it, howev

  • Parent-Child using messageChoice to table

    I have a UIX form that has two components on it. A <messageChoice> that is displaying parent data (e.g. departments) and a <table> that is displaying the employees in the department. I would like to be able to select a department from the <messageCho

  • How to get rid of ancient recipient email addresses in Mail??

    This question has nothing to do with Address Book. My AB entries are up to date. However, one particular person I email frequently has probably had ten different addresses in the past few years. All of them still show up in Mail when I start to type

  • Looking for a designer with experience working on Motorsport projects

    I am looking for a web designer with specific experience working on Motorsport websites.  The project will be to design a BC site for a racing team which we will implement.  If you believe you are qualified for a project like this please send me deta