Graph to be displayed in Excel Sheet

Hi,
The requirement is : We need to display a Line-Graph in the Excel Sheet.
I referred the [sdn |Excel Charts in ABAP;:
But, the Demo Programs SAPRDEMOEXCELINTEGRATION & SAPRDEMOEXCELINTEGRATION2 display a Default Graph and not with our Values.
Can anyone suggest me how to achieve this? Custom Graph (for example from our own Internal Table Values) to be displayed in Excel Sheet.
Thanks in advance.
Thanks & Regards,
Sowmya

Hi,
Can you please try using the following code
CREATE OBJECT h_excel 'EXCEL.APPLICATION'.
*Sheet1
CALL METHOD OF h_excel 'Workbooks' = h_mapl.
SET PROPERTY OF h_excel 'Visible' = 1.
CALL METHOD OF h_mapl 'Add' = h_map.
gets the current worksheet
GET PROPERTY OF h_excel 'activesheet' = worksheet.
sets the name of the worksheet
SET PROPERTY OF worksheet 'Name' = 'sheetnew'.
pass data to sheet
CALL METHOD OF worksheet 'Cells' = gs_cell1
EXPORTING
#1 = 1 " starting row of selection
#2 = 1. " starting column of selection
CALL METHOD OF worksheet 'Cells' = gs_cell2
EXPORTING
#1 = 1 " ending row of selection
#2 = 1. " ending column of selection
CALL METHOD OF worksheet 'Range' = range
EXPORTING
#1 = gs_cell1
#2 = gs_cell2.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_EXPORT
IMPORTING
DATA = GT_OUTPUT[]
CHANGING
RC = L_RC.
CALL METHOD OF RANGE 'Select'.
CALL METHOD OF WORKSHEET 'Paste'.
create a chart sheet
CALL METHOD OF h_excel 'charts' = h_chart.
add a chart of variable h_chart1
opens the initially created sheet
CALL METHOD OF worksheet 'Select'.
CALL METHOD OF h_excel 'Cells' = gs_cell1
EXPORTING
#1 = 1 " starting row of selection
#2 = 1. " starting column of selection
CALL METHOD OF h_excel 'Cells' = gs_cell2
EXPORTING
#1 = 4 " ending row of selection
#2 = 2. " ending column of selection
combine cells to form the range
CALL METHOD OF h_excel 'Range' = range
EXPORTING
#1 = gs_cell1
#2 = gs_cell2.
sets the chart type
CALL METHOD OF h_excel 'charts' = h_chart2.
call method of h_chart2 'add' = h_chart3.
SET PROPERTY OF h_chart3 'charttype' = '69'.
title for chart
SET PROPERTY OF h_chart3 'HasTitle' = 1.
GET PROPERTY OF h_chart3 'ChartTitle' = ch_title.
GET PROPERTY OF ch_title 'Characters' = ch_title.
SET PROPERTY OF ch_title 'text' = 'inventory comparison'.
CALL METHOD OF h_chart3 'SetSourceData'
EXPORTING #1 = range " range to be passed to the chart
#2 = 2. " selcts row/column
CALL METHOD OF h_chart3 'ApplyDataLabels'
exporting
#1 = '5'.
selects worksheet
CALL METHOD OF worksheet 'Select'.
CALL METHOD OF h_excel 'Cells' = gs_cell1
EXPORTING
#1 = 1 " starting row of selection
#2 = 1. " starting column of selection
CALL METHOD OF h_excel 'Cells' = gs_cell2
EXPORTING
#1 = 1 " ending row of selection
#2 = 2. " ending column of selection
CALL METHOD OF h_excel 'Range' = range
EXPORTING
#1 = gs_cell1
#2 = gs_cell2.
sets the bold for the header
GET PROPERTY OF range 'Font' = GS_FONT .
SET PROPERTY OF GS_FONT 'Bold' = 1 .
free object h_excelor
or
CALL FUNCTION 'GRAPH_MATRIX_3D'

Similar Messages

  • Making different graphs like bar chart in excel sheet

    Hello,
    In my application i have to make different graphs like bar chart,pie chart etc which is present in the excel sheet.In the same excel sheet i have to make the graphs based on the data through java program.
    I am unable to do it.Can anyone suggest me how to do.Is there any api and documents(for reading )for it?
    thanks in advance
    chimpuk

    Hi, you might want to do a search before you post. At the top of the page is a link to advanced search. Right-click on it and choose 'open in a new window'. Now, in the 'with all the words' box type the word excel, then hit the space bar, then type the word chart[b], now down lower clear all the checkboxes except [b]Java Forums, now hit the Search button and you get a list of threads related to excel and chart. Read a few. I think most of your questions will be answered.

  • Read and Display an Excel Sheet

    Hello LabVIEW community.  I am going through a bumnch of ActiveX subVIs trying to figure out how to do something very simple.  All I want to do is read an entire Excel Sheet and display it in an array.  Single Page.  Any help would be hot.
    Remember, code does exactly what you tell it.
    Solved!
    Go to Solution.

    camerond wrote:
    DailyDose wrote:
    Is it possible to program this example to simply read all the columns and rows until it comes across like maybe 3 repetitive empty cells instead of having to specify which which row/column to end at?
    Sure. Give it a shot and let us know how you solved it.
    Cameron
    You're right!  It was possible.  Use For loops and check to see when empty cells begin to repeat.  I named it GetXL_CellValues_2D_String_All.vi
    I made mine though very dependent on my excel sheet.  It's easy to make it excel sheet independent.
    Remember, code does exactly what you tell it.
    Attachments:
    read_excel_values.llb ‏267 KB

  • Displaying an excel sheet in iframe

    hai all,
         I need the step by step process to display excel sheet in iframe UI element.
    I have the excel sheet stored in database as text object.All i need to do is get the excel sheet displayed in iframe on click of a button.
    Plz help me with codings and steps involved for this.
    Thanks n Regards
    Sharanya.R

    Hi sharnya,
    Refer
    Re: Read excel in webdynpro without using odbc (points awarded!)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353
    Regards,
    P.Manivannan

  • Graphs and Charts have to be displayed in Excel

    Hello,
    The product that we are developing has got lot of client specific reports to be
    generated, we would be embedding it within the application. It's a JAVA,J2EE
    based product.
           We have a requirement where graphs and charts have to be displayed
    in Excel sheets, does your reporting engine support that. We wanted to find out
    if this features is actually supported.
    We have tried out other reporting tools as well but had to disregard them due
    to the lack of this feature only, so this feature has become one of the most
    important deciding factor for selecting Crystal Reports as report development tool . Our clients prefer exporting most of the reports generated to excel.
    If this feature is not there right now, How early can we expect this feature,
    Is this planned in the next realease ?

    hi Amar,
    welcome to SDN ...
    try
    <A href="<SAP_BW_URL CMD='EXPORT' FORMAT='XLS' DATA_PROVIDER='your dataprovider'>">Export to excel</A>
    hope this helps.

  • Downloading records in in excel sheet from ALV.

    Hi,
    I am downloading Records from ALV GRID DIsplay to Excel sheet but i am unable to get all records that are displayed in ALV report.
    I am getting only 73 records if i have only 180
    Any inputs please for correctine the error
    Regards
    Rasheed.

    hi
    you can follow these stapes and get ur work done
    go to List > select Export  > Spreadsheet or just click the excel icon from the tool bar.This would download the data to excel.
    hope this helps
    regards
    Aakash Banga

  • Format of Excel Sheet

    Hi experts,
    I am working on Account receivables in oracle applications.I am getting one problem . I run my query in Toad and I am saving output in .xls format.i got output in comma separted.like
    cust_no|Cust_name|trx_no|trx_date|amount|open_bal|closed_bal|curr_bal
    1 xxx 110 12/01/06 10000 50000 60000 10000
    But i want output like this
    Cust_no:1
    Cust_name:xxx
    open_bal:50000
    Trx_no Trx_date Amount Curr_bal
    110 12/01/06 10000 10000
    closed_bal:60000.
    I want output like this in excel sheet.
    how to do This?Please give me solution.
    I want this output by using query only to display in excel sheet.Dont use rdf and anything.
    My code is:
    SELECT
    HCA.ACCOUNT_NUMBER ACCOUNT_NUMBER
    ,RCT.TRX_NUMBER TRX_NUMBER
    ,HP.PARTY_NAME PARTY_NAME
    ,DECODE(RCT.STATUS_TRX,'OP','OPEN','CLOSED') STATUS
    ,HL.ADDRESS1 || HL.ADDRESS2 || HL.ADDRESS3|| HL.PROVINCE || HL.CITY || HL.STATE ||HL.POSTAL_CODE || HL.COUNTRY ADDRESS
    ,HCSU.LOCATION LOCATION
    ,RCT.TRX_DATE TRX_DATE
    ,APS.DUE_DATE DUE_DATE
    ,RCTG.GL_DATE GL_DATE
    ,APS.AMOUNT_DUE_ORIGINAL AMOUNT_DUE_ORIGINAL
    ,APS.AMOUNT_DUE_REMAINING AMOUNT_DUE_REMAINING
    ,APS.AMOUNT_APPLIED AMOUNT_APPLIED
    ,DECODE(RCTT.TYPE,'DM','DEBIT MEMO','CM','CREDIT MEMO','DEP','DEPOSIT','GUAR','GURANTEE','INVOICE') TYPE
    ,RCTT.STATUS STATUS1
    ,RBS.NAME NAME
    ,RCT.CT_REFERENCE CT_REFERENCE
    ,F1(HCA.ACCOUNT_NUMBER,'01-OCT-2007') OPENING_BALANCE
    ,F2(HCA.ACCOUNT_NUMBER,RCT.TRX_NUMBER,'01-OCT-2007','04-NOV-2007') CURRENT_BAL
    ,F1(HCA.ACCOUNT_NUMBER,'01-OCT-2007') + F2(HCA.ACCOUNT_NUMBER,RCT.TRX_NUMBER,'01-OCT-2007','04-NOV-2007') CLOSED_BAL
    ,GCC.SEGMENT1 BC
    FROM
    RA_CUSTOMER_TRX_ALL RCT
    ,AR_PAYMENT_SCHEDULES_ALL APS
    ,RA_CUST_TRX_TYPES_ALL RCTT
    ,RA_CUST_TRX_LINE_GL_DIST_ALL RCTG
    ,RA_BATCH_SOURCES_ALL RBS
    ,HZ_PARTY_SITES HPS
    ,HZ_PARTIES HP
    ,HZ_CUST_ACCOUNTS HCA
    ,HZ_CUST_SITE_USES_ALL HCSU
    ,HZ_CUST_ACCT_SITES_ALL HCAS
    ,HZ_LOCATIONS HL
    ,GL_CODE_COMBINATIONS GCC
    WHERE
    RCT.CUSTOMER_TRX_ID=APS.CUSTOMER_TRX_ID
    AND RCTT.CUST_TRX_TYPE_ID=RCT.CUST_TRX_TYPE_ID
    AND RCTG.CUSTOMER_TRX_ID=RCT.CUSTOMER_TRX_ID
    AND RCT.BATCH_SOURCE_ID=RBS.BATCH_SOURCE_ID
    AND HP.PARTY_ID = HCA.PARTY_ID
    AND HP.PARTY_ID=HPS.PARTY_ID
    AND HL.LOCATION_ID = HPS.LOCATION_ID
    AND HCA.CUST_ACCOUNT_ID =HCAS.CUST_ACCOUNT_ID
    AND HCAS.CUST_ACCT_SITE_ID = HCSU.CUST_ACCT_SITE_ID
    AND HPS.PARTY_SITE_ID = HCAS.PARTY_SITE_ID
    AND RCT.BILL_TO_SITE_USE_ID = HCSU.SITE_USE_ID
    AND GCC.CODE_COMBINATION_ID = RCTG.CODE_COMBINATION_ID
    AND HCSU.SITE_USE_CODE = 'BILL_TO'
    AND RCTG.GL_DATE BETWEEN '01-OCT-2007' AND '04-NOV-2007'
    AND RCT.TRX_NUMBER = '1107010103'
    GROUP BY
    HCA.ACCOUNT_NUMBER
    ,RCT.TRX_NUMBER
    ,HP.PARTY_NAME
    ,DECODE(RCT.STATUS_TRX,'OP','OPEN','CLOSED')
    ,HL.ADDRESS1 || HL.ADDRESS2 || HL.ADDRESS3|| HL.PROVINCE || HL.CITY || HL.STATE ||HL.POSTAL_CODE || HL.COUNTRY
    ,HCSU.LOCATION
    ,RCT.TRX_DATE
    ,APS.DUE_DATE
    ,RCTG.GL_DATE
    ,APS.AMOUNT_DUE_ORIGINAL
    ,APS.AMOUNT_DUE_REMAINING
    ,APS.AMOUNT_APPLIED
    ,DECODE(RCTT.TYPE,'DM','DEBIT MEMO','CM','CREDIT MEMO','DEP','DEPOSIT','GUAR','GURANTEE','INVOICE')
    ,RCTT.STATUS
    ,RBS.NAME
    ,RCT.CT_REFERENCE
    ,GCC.SEGMENT1

    I'm not looking at your code as you haven't formatted it on the forum. To do this use [code][/code] or [pre][/pre] tags around the code. Try editing your first post and re-pasting the code using those tags so we can read it.
    You are currently getting...
    SQL> with t as (select 1 as cust_no
      2                   ,'xxx' as cust_name
      3                   ,110 as trx_no
      4                   ,to_date('12/01/2006','DD/MM/YYYY') as trx_date
      5                   ,10000 as amount
      6                   ,50000 as open_bal
      7                   ,60000 as close_bal
      8                   ,10000 as curr_bal
      9             from dual)
    10  -- END OF TEST DATA
    11  select * from t;
       CUST_NO CUS     TRX_NO TRX_DATE                AMOUNT   OPEN_BAL  CLOSE_BAL   CURR_BAL
             1 xxx        110 12/01/2006 00:00:00      10000      50000      60000      10000And you want something like this?
    SQL> with t as (select 1 as cust_no
      2                   ,'xxx' as cust_name
      3                   ,110 as trx_no
      4                   ,to_date('12/01/2006','DD/MM/YYYY') as trx_date
      5                   ,10000 as amount
      6                   ,50000 as open_bal
      7                   ,60000 as close_bal
      8                   ,10000 as curr_bal
      9             from dual)
    10  -- END OF TEST DATA
    11  select col1||','||col2||','||col3||','||col4
    12  from (
    13        select cust_no, 1 as ord_col, 'Cust_no:' as col1, TO_CHAR(cust_no) as col2, null as col3, null as col4 from t union all
    14        select cust_no, 2, 'Cust_name:', cust_name, null, null from t union all
    15        select cust_no, 3, 'Open_bal:', TO_CHAR(open_bal), null, null from t union all
    16        select cust_no, 4, 'Trx_no', 'Trx_date', 'Amount', 'Curr_bal' from t union all
    17        select cust_no, 5, TO_CHAR(trx_no), TO_CHAR(trx_date, 'DD/MM/YY'), TO_CHAR(amount), TO_CHAR(curr_bal) from t union all
    18        select cust_no, 6, 'Close_bal:', TO_CHAR(close_bal), null, null from t
    19        )
    20  order by cust_no, ord_col;
    COL1||','||COL2||','||COL3||','||CO
    Cust_no:,1,,
    Cust_name:,xxx,,
    Open_bal:,50000,,
    Trx_no,Trx_date,Amount,Curr_bal
    110,12/01/06,10000,10000
    Close_bal:,60000,,
    6 rows selected.
    SQL>Remember, Comma seperated files are NOT excel files. .xls files are proprietary microsoft format files. If you save your data out as comma seperated you should use the file extension ".csv".
    Excel can recognise CSV files and will load them in, as can other products.

  • Down loading ALV to excel sheet

    Hello guys,
    Im facing problem with ALV. The data which displayed in ALV report is not displaying in excel sheet. Normally the data is displaying but i have given one cond. in selection screen, if check box is not initial 4 more fields are adding to final structure. So after adding these fields data is not displaying in excel sheet.
    I hope u understood the problem can any one suggest me..
    regards
    vijay

    Hi,
    Include 4 more fields with final internal table and that final internal table pass it to the function module
    WS_EXCEL
    likt the below.
    call function 'WS_EXCEL'
            exporting
                 filename = p_file
            tables
                 data     = i_excel.
    after reuse function module write this logic
    Regards,
    Nandha

  • Leading Zeros Missing - When exporting data from ALV grid display to Excel

    Hi,
    Am exporting the data from ALV GRID DISPLAY to Excel sheet using standard toolbar icon 'Local file'
    the leading zeros displayed in the ALV output is missing in the EXCEL sheet.
    (eg)  in ALV o/p - 0029. 
            in Excel - Only 29 is appearing.
    As per the requiement i have to show the leading zeros in excel also.
    Pls help on this issue.
    Thanks in advance..

    Hi ,
      Please set the property  :
      wa_fieldcat-lzero = 'X' .
    when you are creating field catalog for display alv data .
    your prob will solved .
    Regards ,
    Nilesh Jain

  • Doubt in Excel sheet ouput

    Hi All,
    I am doing 1 report in which the output has to be displayed in excel sheet.For this I am using FM 'WS_EXCEL'.
    Its displaying the output correctly but the Field headings are not coming in excel sheet.
    So what can be done to get the headings?
    Thanks in Advance!
    Kiran

    Thanks.
    same thing I am doing but it is displaying fields name but at the bottom and also as columns not rows.
    Here is the code:plz modify it if possible
    form excel_output.
      IF NOT i_final[] IS INITIAL.
        file_str = p_file.
        CONCATENATE p_file  '.xls'
        INTO file_str.
    CALL FUNCTION 'WS_EXCEL'
      EXPORTING
        FILENAME =  file_str
        SYNCHRON = ' '
      TABLES
        DATA     = i_final.
    endif.
    ENDFORM.
    With Regards,
    Kiran

  • Signature in Excel sheet

    Hi all,
    My req. is to display the signature of different user as per the condiftion. how to do this?
    Thanks!
    Brunda.

    I forget to tell where to display,...I have to display in Excel sheet .

  • Live search of on Excel sheet

    I have been working with Labview for over 2 years now but I have little to no experience in data management. I have used C++ or VisualBasic in the past for data management.
    What I am trying to do is open an Exel file and actively search through it. For example, (going to use food because that is the easiest) the excel sheet is open with all items on display, user types in "burger" and anything with that name will be shown. So you will get hamburger, cheeseburger, blah blah. When the word is deleted the whole menu will show. There could also be a column with "tags" such as a dessert or sweet. That way if the user knows he is looking for a dessert but sure exactly what he can do a vague search.
    This is just an example; I am not working on some automated menu. I have Googled and checked the examples, but the best I can find is a way of displaying my excel sheet in Labview. Any hint, tricks, or examples that might save me some time will be greatly appreciated. I appreciated all the help and much thanks in advanced.

    Excel exposes a huge number of functions through an ActiveX interface. You'll need to experiment, and search through the MSDN documentation, to find the functions that do what you want. It looks like most of the Excel examples that ship with LabVIEW use the Report Generation Toolkit, which may not have the functions you want; there's also a "Write Table to XL" example that shows how you can interact directly with Excel, although the coding style is not ideal. Somewhere between those examples though you should see enough to get started.

  • Export ALV List into Excel Sheet

    Hi Friends,
    We are displaying an ALV List in report Program and we are exporting that into excel sheet using the icon "Spreadsheet(ctrlshiftF7)"provided by ALV Grid.
    But when it is displayed in Excel sheet it changes the sequence of columns (fields).
    And we observed that it displays all the CHAR fields first then the CURRENCY fields and then the DATE fields that we specified in field catalog.
    So, what should be done so that the fields are exported into Excel in the same order as specified in the field catalog of ALV List.

    Give this a look.
    REPORT ZEXCEL .
    INCLUDE ole2incl.
    DATA: application TYPE ole2_object,
    workbook TYPE ole2_object,
    sheet TYPE ole2_object,
    cells TYPE ole2_object.
    CONSTANTS: row_max TYPE i VALUE 256.
    DATA index TYPE i.
    DATA: BEGIN OF itab1 OCCURS 0, first_name(10), END OF itab1.
    DATA: BEGIN OF itab2 OCCURS 0, last_name(10), END OF itab2.
    DATA: BEGIN OF itab3 OCCURS 0, formula(50), END OF itab3.
    *START-OF-SELECTION
    START-OF-SELECTION.
    APPEND: 'Peter' TO itab1, 'Ivanov' TO itab2,
    '=Sheet1!A1 & " " & Sheet2!A1' TO itab3,
    'John' TO itab1, 'Smith' TO itab2,
    '=Sheet1!A2 & " " & Sheet2!A2' TO itab3.
    CREATE OBJECT application 'excel.application'.
    SET PROPERTY OF application 'visible' = 1.
    CALL METHOD OF application 'Workbooks' = workbook.
    CALL METHOD OF workbook 'Add'.
    Create first Excel Sheet
    CALL METHOD OF application 'Worksheets' = sheet
    EXPORTING #1 = 1.
    CALL METHOD OF sheet 'Activate'.
    SET PROPERTY OF sheet 'Name' = 'Sheet1'.
    LOOP AT itab1.
    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'Value' = itab1-first_name.
    ENDLOOP.
    Create second Excel sheet
    CALL METHOD OF application 'Worksheets' = sheet
    EXPORTING #1 = 2.
    SET PROPERTY OF sheet 'Name' = 'Sheet2'.
    CALL METHOD OF sheet 'Activate'.
    LOOP AT itab2.
    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'Value' = itab2-last_name.
    ENDLOOP.
    Create third Excel sheet
    CALL METHOD OF application 'Worksheets' = sheet
    EXPORTING #1 = 3.
    SET PROPERTY OF sheet 'Name' = 'Sheet3'.
    CALL METHOD OF sheet 'Activate'.
    LOOP AT itab3.
    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'Formula' = itab3-formula.
    SET PROPERTY OF cells 'Value' = itab3-formula.
    ENDLOOP.
    Save excel speadsheet to particular filename
    CALL METHOD OF sheet 'SaveAs'
    EXPORTING #1 = 'c:\temp\exceldoc1.xls' "filename
    #2 = 1. "fileFormat
    Closes excel window, data is lost if not saved
    SET PROPERTY OF application 'visible' = 0.

  • Upload the the ABAP output in Excel sheet

    Hi Frds
    i want this ABAP report output in display and excel sheet.i got output in display but im not geting in Excel sheet.Kindly tell me how to do the coding for geting in Excel for this report.
    *& Report  Z_CONS_STOCK_ROL5                                           *
    REPORT  Z_CONS_STOCK_ROL5                       .
    data : Mat_no like mara-matnr,
           Plant1 like ekpo-werks,
           com_co like mseg-bukrs,
           store  like mseg-lgort.
    SELECTION-SCREEN: BEGIN OF BLOCK 01.
    SELECTION-SCREEN: BEGIN OF BLOCK 02 WITH FRAME TITLE text-001.
    SELECT-OPTIONS MATERIAL FOR mat_no.
    SELECT-OPTIONS Plant    FOR plant1.
    SELECT-OPTIONS COMPANY  FOR COM_CO.
    SELECT-OPTIONS STROAGE  FOR STORE.
    SELECTION-SCREEN: END OF BLOCK 02.
    SELECTION-SCREEN: END OF BLOCK 01.
    Data : begin of itab occurs 0,
           matnr like mara-matnr,
           maktx like makt-maktx,
           meins like mara-meins,
           minbe like marc-minbe,
           lgnum like mseg-lgnum,
           ebeln like ekpo-ebeln,
           menge like ekpo-menge,
           banfn like eban-banfn,
           meng1 like eban-menge,
           mblnr like mseg-mblnr,
           end of itab.
    select a~ebeln
           a~menge
           a~werks
           b~banfn
           b~menge
           c~matnr
           c~meins
           d~maktx
           e~minbe
           f~lgnum
           f~mblnr
           f~bukrs
           f~lgort
    INTO CORRESPONDING FIELDS OF TABLE ITAB FROM EKPO as a
          inner join EBAN as b on aBANFN = bBANFN
          inner join MARA as c on cMATNR = aMATNR
          inner join MAKT as d on dMATNR = cMATNR
          inner join MARC as e on eMATNR = cMATNR
          inner join MSEG as f on fMATNR = cMATNR
          where cmatnr in MATERIAL and awerks in PLANT and f~bukrs in
    COMPANY and f~lgort in STROAGE.
    if itab-mblnr = ' '.
    loop at itab.
    write : / itab-matnr, itab-maktx, itab-meins, itab-minbe, itab-lgnum,
    itab-ebeln, itab-menge, itab-banfn, itab-menge.
    endloop.
    endif.
    Thank You
    Pari Vendhan.R

    check the below FM's to downlaod into excel sheet are :
    1) CALL FUNCTION 'DOWNLOAD'
    EXPORTING
    filename = 'C:\output.xls'
    filetype = 'DAT'
    TABLES
    data_tab = itab.
    2.Use the following FM:
    RH_START_EXCEL_WITH_DATA starts Excel with the contents of an internal table. This function finds Excel in the desktop registry. It also uses a local PC working directory to save the file (that's what the 'W' value for data path flag does). Very transparent to user!
    DOWNLOAD is obsolete..so check,
    function module SAP_CONVERT_TO_XLS_FORMAT .
    Check also this weblog /people/thomas.jung3/blog/2005/02/14/bsp-and-microsoft-excel--learning-to-live-together
    look at demo program SAPRDEMO_TABLES_IN_EXCEL,
    Edited by: Mahalakshmi Padmanaban on Feb 17, 2008 7:54 AM

  • Regarding Excel Sheet

    Thanks for the immediate response for my queries. The answers are very useful. 
    As per our requirement, I need to display excel sheet with values on the front panel itself so that customer can view the values there itself.
    How can i do this in LabView?
    Thanks in Advance
    Regards
    Malleswari

    Are you trying to save the data in excel and display that excel sheet?
    If yes, you can do that using Report generation toolkit.

Maybe you are looking for