Display data in excel

Hi, I have program which display data in Excel layout of ALV loaded from internal table..
It means that in sap i received excel sheet with all its functionality.
The problem is that sometimes there are missed some rows with data.
Did someone meet with similar situation?
Regards,
Joanna

HI
DATA: v_file LIKE rlgrap-filename,
        v_filename TYPE string.
  REFRESH i_matcontrol.
  CLEAR   i_matcontrol.
  TRANSLATE v_exten TO UPPER CASE.
  IF v_exten = 'XLS'.
    v_file = p_p_file.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
      EXPORTING
        i_field_seperator    = 'X'
        i_tab_raw_data       = ws_rawdata
        i_filename           = v_file
      TABLES
        i_tab_converted_data = i_data.
  ELSEIF v_exten = 'TXT'.
    v_filename = p_p_file.
File upload
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                = v_filename
        filetype                = 'ASC'
        has_field_separator     = 'T'
      TABLES
        data_tab                = i_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.
    CASE sy-subrc.
      WHEN 1.
        MESSAGE e001(00) WITH text-001.
        STOP.
      WHEN 2.
        MESSAGE e001(00) WITH text-002.
        STOP.
      WHEN 0.
        IF i_data IS INITIAL.
          MESSAGE s001(00) WITH text-008.
        ENDIF.
    ENDCASE.
  ENDIF.
  DELETE i_data WHERE matnr IS INITIAL AND
                              werks IS INITIAL.

Similar Messages

  • Error displaying data in Excel Layout of ALV

    Hi,
    I am trying to display ALV data in a Excel layout. After changing the layout i am not able to view the data, rather the excel template is alone displayed.
    Is there setting that i am supposed. I did not try this on a  custom report but i used SE16 to display data.
    Any help will be really appreciated!!!
    Thanks in advance,
    Kathirvel

    Hi,
    Please make sure that you have made a <b>global</b>
    <b>declaration</b> for the ALV Grid control.If not try
    with this
    Please reward points if this explanation is useful.
    Regards,
    Siva

  • Problem displaying data in Excel with Jsp

    HI,
    For some reason when i save data from jsp to excel, my Excel dont display data.This code was working fine from past 3 years all of sudden it starts givin this problem.
    However When i open my .xls file in notepad i see data there. The problem is because of XML declaration (<?xml version="1.0" encoding="UTF-8"?> which parsed generate. If i remove this it works fine.
    Out put in file looks like this
    <?xml version="1.0" encoding="UTF-8"?>
    <table border=1 width="100%">
    <tr>
    <TH>Name</TH>
    <TH>Last Name</TH>
    <TH>state</TH>
    <TH>Country</TH>
    <TH>Currency</TH>
    </tr>
    <tr>
    <TD class="odd">John</TD>
    <TD class="odd">Hayden</TD>
    <TD class="odd">IL</TD>
    <TD class="odd">USA</TD>
    <TD class="odd">USD</TD>
    </tr>
    <tr>
    <tr>
    <TD class="odd">Ricky</TD>
    <TD class="odd">Ponting</TD>
    <TD class="odd">IL</TD>
    <TD class="odd">USA</TD>
    <TD class="odd">EUR</TD>
    </tr>
    </tr>
    </table>
    Jsp Code
    String rptHTML = (String)session.getAttribute("ReportStrHTML");
         System.out.println(rptHTML);
         response.setHeader("Content-Disposition","attachment;filename=Test.xls");
         response.setContentType("application/vnd.ms-excel");
    Thanks

    In Excel, Tools > Macro > security > medicum and Trusted tab check To access VB.

  • How to export only the displayed data to excel

    Hello, APEX experts:
    Currently, APEX export to excel functionality can export all data defined by the report query, no matter they are displayed on screen or not.
    Is there a way to export the displayed portion only?
    Thank you.
    shiofan

    Hi! Thanks for the reply.
    From what I see, the include in export and show in report are independent since I can export columns which are not shown in the report and also some displayed columns are not included in the export.
    Let me restate what I'm facing:
    I'm using APEX 3.2 with standard report.
    Let's say my report query returns 50,000 rows, but display only 500 rows per page. I'm using one of the APEX built in pagination scheme.
    The default Export to Excel functionality will export all the 50,000 rows to an excel file. But my customer says, he does not want so many rows there. He want only the rows displayed on current page be exported. In other word, if the report is currently displaying rows from 501 to 1000, then the exported excel file should contain only the rows from 501 to 1000.
    As you may says, why not just add another data filter to limit the output size? I agree, that should be the normal practice. But my customer want no more query conditions but export only the portion he see on the screen.
    More idea?
    Thanks a lot.
    Shiofan

  • Date can not display correctly in excel from .jsp

    Hi,
    I create a .jsp report to export the data to excel. the report run OK, except the date field can not display correctly.
    for example in database :start date ='01-oct-2003'
    in the except it displays to 02/06/02.
    It seem all the date field can not be control in the report, and control by somthing else
    Doese anyone come accross this problem?
    Thanks

    Hi Rong,
    Are you using the following demonstration to build your JSP?
    http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html
    (Output to Excel with Oracle9i Report)
    I tried to do the same, and inserted a database date field in the JSP using Reports. I found the following:
    While making the template inside Excel, if I make sure that the format of the date cells is "Date" - some particular date format, the date field values from Reports does not get exported correctly.
    However, if you make sure that inside the template, the format of the date cells is not date, but "General", then the date field values are correctly exported to Excel.
    Pl try it and let us know.
    Navneet.

  • To display the data in excel

    hi frens,
    I want to display the output list in excel format.i.e when f8 is pressed, excel is displayed.Iam able to diplay the data in first 3 tabs.but when coming to the fourth tab it is dispalying the error saying 'error while reading the object property'.this object is related to office integration in sap.Kindly solve my problem.
    thanks

    Hi Prem,
    I have a similar kind of requirement i.e to display the report output in excel. Can you let me know how did you display it?
    If you wish to reply, do it in the below mentioned thread so that I can assign points.
    Display report in Excel
    Thanks.
    Regards,
    Senthil G.

  • Display graphs from excel data

    Hi,
     I have the data in Excel(sample.xls). there are 2 columns of data. I want to read the data from excel and display in the form of XY graph (x-axis -one column of data and Y-axis one coumn of data).
    can anyone please provide the VI for this or else give me procedure how to do this.
    Thanks,
    Paleti.
    Attachments:
    time-mc.xls ‏5 KB

    Hello jason,
          Thanx for your reply. I will clarify what my concern is i need to display the graph with two columns(A-column as X-axis and B-column as Y-axis). I understand that Bijay provided example for waveform graph,and that is working for sample 3 data. when i use the same example for the different data like sample 1  which i am attaching below is not working. so i have tried to create the vi that will display the XY-graph instead of waveform graph. Still i am unable to display the graph. I will be attaching the VI i have tried. So anyone please help me to modify my vi to display as XY graph and make it work for the samples data i have provided in sample1.
    Thanks & Regards,
    Paleti. 
    Attachments:
    sample1.xls ‏1 KB
    sample2.xls ‏1 KB
    Refexample2.vi ‏12 KB

  • Sending  unicode data to Excel from servlet displayed as "?"

    Hi,
    In my application we are export some unicode data to Microsoft Excel 2003 from servlet .
    For that i am using the following code.
    response.setHeader( "Content-Disposition", "attachment; filename=results.xls" );
    response.setContentType( "text/xls" );
    theHeader.append("\u30ec\u30dd\u30fc\u30c8 \u30bf\u30a4\u30c8\u30eb");
    The above unicode data (japanese character) not displaying properly in Excel (display as "?"). other non unicode things are display properly.
    can anyone advise me.

    I was having problems writing a unicode (utf-8 or utf-16) csv excel file, found a solution in the end ill post it here in case anyone else is looking.
    You need to use the funky encoding x-UTF-16LE-BOM
    an example of how to do this is
    Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outputFile, true), "x-UTF-16LE-BOM"));
    then instead of using commas (,) use tabs (\t)
    then in my web.xml i have
    <mime-mapping>
    <extension>csv</extension>
    <mime-type>application/msexcel</mime-type>
    </mime-mapping>
    this site is a good reference
    http://members.chello.at/robert.graf/CSV/
    Hope this helps someone ! =]. I am using excel 2007may or may not work with earlier versions.

  • How to download data into excel by displaying field names in top 2 rows

    Hi experts,
             i am trying to download an internal table data into excel(open office) by reserving top 2 rows. In 1st row i want to display tech.name where as in 2nd row i want to display discription of tech name of the fields. Well, i tried with FM gui_upload and used fieldnames  parameter and even its working too but i'm unable to work with 2nd col.
    Please help me out....
    with regards.
    Praveen.

    Try this code:
    If IT_FINAL is the internal table containing the data that you want to download :
    IF IT_FINAL[] IS INITIAL.
        WRITE : 'No Data Fetched'.
      ELSE.
      Build header table Field catelague
        PERFORM UR_FIELDCAT_BUILD USING G_F_REPNM
                                        'IT_FINAL'
                                 CHANGING IT_FCAT_001.
        DATA: L_F_LINES TYPE I,
              L_F_FROM TYPE I,
              L_F_TO TYPE I,
              L_F_DIFF TYPE I,
              L_TEMP_FINAL LIKE TABLE OF IT_FINAL.
        DESCRIBE TABLE IT_FINAL LINES L_F_LINES.
        IF L_F_LINES > 16000.
          L_F_FROM = 1.
          L_F_TO = 16000.
          DO.
            APPEND LINES OF IT_FINAL FROM L_F_FROM
                                              TO L_F_TO TO L_TEMP_FINAL.
            PERFORM DOWNLOAD_DATA_HEADER TABLES L_TEMP_FINAL
                                                   IT_FCAT_001
                                             USING GF_FILE1.
            IF L_F_TO >= L_F_LINES.
              EXIT.
            ENDIF.
            L_F_FROM = L_F_TO + 1.
            L_F_DIFF = L_F_LINES - L_F_TO.
            IF L_F_DIFF >= 16000.
              L_F_TO = L_F_TO + 16001.
            ELSE.
              L_F_TO = L_F_LINES.
            ENDIF.
            REFRESH: L_TEMP_FINAL.
         ENDDO.
       ELSE.
         PERFORM DOWNLOAD_DATA_HEADER TABLES IT_FINAL
                                         IT_FCAT_001
                                  USING GF_FILE1.
       ENDIF.
    ENDIF.
    FORM UR_FIELDCAT_BUILD
                 USING P_REPID
                       P_TABNAM
    CHANGING C_T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
       REFRESH C_T_FIELDCAT.
       CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
            EXPORTING
                 I_PROGRAM_NAME         = P_REPID
                 I_INTERNAL_TABNAME     = P_TABNAM
               I_STRUCTURE_NAME       = 'TY_FLODAT'
                 I_INCLNAME             = P_REPID
                 I_BYPASSING_BUFFER     = 'X'
            CHANGING
                 CT_FIELDCAT            = C_T_FIELDCAT
            EXCEPTIONS
                 INCONSISTENT_INTERFACE = 1
                 PROGRAM_ERROR          = 2
                 OTHERS                 = 3.
    ENDFORM.
    FORM DOWNLOAD_DATA_HEADER
                  TABLES T_OUTTAB
                  T_FIELDCAT
                  USING P_FILENAM.
       TYPE-POOLS: SLIS.
       REPLACE 'YYYYMMDD' WITH SY-DATUM INTO P_FILENAM.
       DATA: T_GXXLT_O    TYPE TABLE OF GXXLT_O WITH HEADER LINE,
             T_GXXLT_H    TYPE TABLE OF GXXLT_H WITH HEADER LINE,
             T_GXXLT_H_TEMP TYPE TABLE OF GXXLT_H WITH HEADER LINE,
             T_GXXLT_P    TYPE TABLE OF GXXLT_P WITH HEADER LINE,
             T_GXXLT_S    TYPE TABLE OF GXXLT_S WITH HEADER LINE,
             T_GXXLT_V    TYPE TABLE OF GXXLT_V WITH HEADER LINE,
             L_S_FIELDCAT TYPE SLIS_FIELDCAT_ALV..
       DATA: F_FILE       TYPE GXXLT_F-FILE,
             F_ATT_COLS   TYPE I,
             F_HRZ_KEYS   TYPE I,
             F_VRT_KEYS   TYPE I.
    TYPES: BEGIN OF TY_FLDNM,
               FIELDNAME(30) TYPE C,
            END   OF TY_FLDNM.
    DATA : L_T_FLDNAME TYPE TABLE OF TY_FLDNM,
            L_R_FLDNAME TYPE TY_FLDNM.
    REFRESH:  L_T_FLDNAME.
    LOOP AT T_FIELDCAT INTO L_S_FIELDCAT .
       CLEAR L_R_FLDNAME.
       CONCATENATE  L_S_FIELDCAT-SELTEXT_S  '_'
                    L_S_FIELDCAT-FIELDNAME
        INTO L_R_FLDNAME-FIELDNAME.
       APPEND L_R_FLDNAME TO L_T_FLDNAME.
    ENDLOOP.
    IF T_OUTTAB[] IS INITIAL.
       WRITE : /'No data Fetch !'.
    ELSE.
       DESCRIBE TABLE T_FIELDCAT LINES F_ATT_COLS.
       LOOP AT T_FIELDCAT INTO L_S_FIELDCAT.
         T_GXXLT_H-COL_NO        = L_S_FIELDCAT-COL_POS.
         T_GXXLT_H-ROW_NO        = 1.
         T_GXXLT_H-COL_NAME      = L_S_FIELDCAT-FIELDNAME.
         APPEND T_GXXLT_H.
         CLEAR T_GXXLT_S.
         T_GXXLT_S-COL_NO        = L_S_FIELDCAT-COL_POS.
         T_GXXLT_S-COL_OPS       = 'NOP'.
         T_GXXLT_S-COL_SRC       = L_S_FIELDCAT-COL_POS.
         CASE L_S_FIELDCAT-INTTYPE.
           WHEN 'Z' OR 'P' OR 'I' OR 'F'.
             T_GXXLT_S-COL_TYP   = 'NUM'.
           WHEN 'C' OR 'X' OR 'T' OR 'N'.
             T_GXXLT_S-COL_TYP   = 'STR'.
           WHEN 'D'.
             T_GXXLT_S-COL_TYP   = 'DAT'.
          WHEN OTHERS.
            T_GXXLT_S-COL_TYP   = 'STR'.
        ENDCASE.
        APPEND T_GXXLT_S.
        IF L_S_FIELDCAT-KEY EQ 'X'.
          CLEAR T_GXXLT_H.
          T_GXXLT_H-COL_NO     = L_S_FIELDCAT-COL_POS.
          T_GXXLT_H-ROW_NO     = 1.
          T_GXXLT_H-COL_NAME   = L_S_FIELDCAT-FIELDNAME.
          APPEND T_GXXLT_H.
        ENDIF.
      ENDLOOP.
      MOVE P_FILENAM TO F_FILE.
      LOOP AT T_FIELDCAT INTO L_S_FIELDCAT.
        READ TABLE T_GXXLT_H WITH KEY COL_NAME = L_S_FIELDCAT-FIELDNAME.
        IF SY-SUBRC EQ 0.
          T_GXXLT_H_TEMP-COL_NO = T_GXXLT_H-COL_NO.
          T_GXXLT_H_TEMP-ROW_NO = 2.
          T_GXXLT_H_TEMP-COL_NAME =  L_S_FIELDCAT-SELTEXT_S.
          APPEND T_GXXLT_H_TEMP TO T_GXXLT_H.
          CLEAR T_GXXLT_H.
          ENDIF.
        ENDLOOP.
        CALL FUNCTION 'XXL_FULL_API'
             EXPORTING
                  FILENAME          = F_FILE
                  NO_START          = ''
                  N_ATT_COLS        = F_ATT_COLS
                  N_HRZ_KEYS        = F_HRZ_KEYS
                  N_VRT_KEYS        = F_VRT_KEYS
                  SEMA_TYPE         = ''
                  SO_TITLE          = ''
             TABLES
                  DATA              = T_OUTTAB
                  HKEY              = T_GXXLT_H
                  ONLINE_TEXT       = T_GXXLT_O
                  PRINT_TEXT        = T_GXXLT_P
                  SEMA              = T_GXXLT_S
                  VKEY              = T_GXXLT_V
             EXCEPTIONS
                  CANCELLED_BY_USER = 1
                  DATA_TOO_BIG      = 2
                  DIM_MISMATCH_DATA = 3
                  DIM_MISMATCH_SEMA = 4
                  DIM_MISMATCH_VKEY = 5
                ERROR_IN_HKEY     = 6
                ERROR_IN_SEMA     = 7
                FILE_OPEN_ERROR   = 8
                FILE_WRITE_ERROR  = 9
                INV_DATA_RANGE    = 10
                INV_WINSYS        = 11
                INV_XXL           = 12
                OTHERS            = 13.
      ENDIF.
    ENDFORM.

  • Get data from view and displaying the table data into Excel  pivot table

    Hi All,
    I have a small reqirement inthat When i get the data from the View that would displayed as Excel Pivot table.
    For displaying gerneral data to Excel I have followed Binarcy cachey
    Please suggest me in this.
    Thanks,
    Lohi.
    Message was edited by:
            Lohitha M

    Try this:
    http://download-west.oracle.com/docs/html/B25947_01/bcservices005.htm#sthref681
    Specifically code sample 8-10 for accessing the AM object.
    Then use the findView method to get a pointer to the VO.

  • Hi, I want to display a Linechart  from Excel file(i.e CSV data),I read the csv data using FileReference ,But how to display data in linechart?

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"   >
    <mx:Script>
          <![CDATA[
                import mx.controls.*;
                import mx.collections.*;
                import flash.events.*;
                import mx.collections.ArrayCollection
                [Bindable]
                private var records:Array=new Array();
                [Bindable]
                private var datarecords:ArrayCollection=new ArrayCollection();
                private var xmldata:String="<?xml version=\"1.0\"?>\r\n<dataset>\r\n";
                private var fileref:FileReference=new FileReference();;
                private function readExcel():void
                      var request:URLRequest=new URLRequest();
                      request.url="data/chart.csv";
                      var loader:URLLoader=new URLLoader();
                      loader.dataFormat=URLLoaderDataFormat.TEXT;
                      loader.addEventListener(Event.COMPLETE,eventComplete);
                      loader.addEventListener(IOErrorEvent.IO_ERROR,onIOError);
                      loader.load(request);
                private function eventComplete(event:Event):void
                      var loader:URLLoader=URLLoader(event.target);
                      var record:Array=new Array();
                      var fields:Array=new Array();
                      var obj:Object;
                      var str:String=new String();
                      loader.dataFormat=URLLoaderDataFormat.TEXT;
                      var result:String=new String(loader.data);
                      record=result.split("\r\n");
                      for(var i:int=1;i<record.length;i++)
                            obj=new Object();
                            fields=record[i].split(",");
                            /* obj.col1="Timestamp: "+fields[0];
                            obj.col2="EndDevice-PaLnaMode: "+fields[1];
                            obj.col3="Wap-PaLnaMode: "+fields[2];
                            obj.col4="DownstreamLqi: "+fields[3];
                            obj.col5="UpstreamLqi: "+fields[4]; */
                            obj.col1="<Timestamp>"+fields[0]+"</Timestamp>";
                            xmldata+=obj.col1+"\r\n";
                            obj.col2="<EndDevice-PaLnaMode>"+fields[1]+"</EndDevice-PaLnaMode>";
                            xmldata+=obj.col2+"\r\n";;
                            obj.col3="<Wap-PaLnaMode>"+fields[2]+"</Wap-PaLnaMode>";
                            xmldata+=obj.col3+"\r\n";
                            obj.col4="<DownstreamLqi>"+fields[3]+"</DownstreamLqi>";
                            xmldata+=obj.col4+"\r\n";;
                            obj.col5="<UpstreamLqi>"+fields[4]+"</UpstreamLqi>";
                            records.push(obj);
                            datarecords.addItem(obj);
                      xmldata+="</dataset>";
                      datagrid.dataProvider=records;
                      linechart1.dataProvider=records;
                      private  function onIOError(event:Event):void
                            Alert.show("I/O error"+event.type);
                      private function saveXML():void
                            fileref.save(xmldata,"xmldata.xml");
                      //fileref.save(xmldata,"NewFileName.txt");
                      private function dispData():void
                            fileContents_txt.text=xmldata;
          ]]>
    </mx:Script>     
          <mx:DataGrid id="datagrid" x="19" y="76" width="528" height="242">
                <mx:columns>
                      <mx:DataGridColumn headerText="Timestamp" dataField="col1"/>
                      <mx:DataGridColumn headerText="DevicePaLnaMode" dataField="col2"/>
                      <mx:DataGridColumn headerText="Wap-PaLnaMode" dataField="col3"/>
                      <mx:DataGridColumn headerText="DownstreamLqi" dataField="col4"/>
                      <mx:DataGridColumn headerText="UpstreamLqi" dataField="col5"/>
                </mx:columns>
          </mx:DataGrid>
          <mx:Button x="126" y="32" label="read" click="readExcel()"/>
          <mx:Button x="240" y="32" label="display data" click="dispData();"/>
          <mx:Text id="fileContents_txt" x="10" y="326"/>
          <!-- Define custom Strokes. -->
        <mx:Stroke id = "s1" color="blue" weight="2"/>
          <mx:LineChart  id="linechart1"   height="286" width="385"
                paddingLeft="5" paddingRight="5"
                showDataTips="true" dataProvider="{datarecords}" x="566" y="32">
              <mx:horizontalAxis>
                    <mx:CategoryAxis categoryField="Timestamp"/>
                </mx:horizontalAxis>
                <mx:series>
                    <mx:LineSeries yField="Timestamp"  xField="UpstreamLqi"  interpolateValues="true" form="curve" displayName="Timestamp" lineStroke="{s1}"/>
                </mx:series>
          </mx:LineChart>
          <mx:Button x="406" y="32" label="SaveXML" click="saveXML()"/>
    </mx:Application>

    Um, wrong forum.
    I think you want to ask this question in the Flex forum.

  • Not able to display data in different columns using Unicode encoding

    Hi,
    Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
    Please let me know how to display data in different columns using Unicode encoding in Excel sheet.

    Hi Venkat,
    After extracting data into DSO check the request whether active or not.
    Check data in DSO in contents.
    If is there any restrictions on info providers in Queries.
    Let us know status clearly.......
    Reg
    Pra

  • Not able to display data in separate columns using Unicode encoding

    Hi,
    Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
    Please let me know how to display data in different columns using Unicode encoding in Excel sheet.
    This is an urgent need. Please help me out.

    Hi,
    I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
    eg:
    select
    case
    TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2)
    = :P15_EV_LCL
    then
    span style="background-color:lightgreen"
    || TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    else
    span style="background-color:yellow"
    || TRUNC(
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    end "Effort"
    from actuals Z
    If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
    Please suggest
    Thanks
    Sudhir
    Edited by: Sudhir_N on Mar 23, 2009 10:00 PM

  • EXCEL ONLINE - Automaticly refresh data in excel from the online data

    Hi
    Love some help with this one
    QUESTION
    Is their anyway 5 users can use excelonline fileA and also keep a uneditable version fileA open in desktop excel and manually refresh the desktop version to see the latest version of the document in uneditable mode still of course?
    DESRCIPTION
    We use excelonline for about 5 users to access the same 5MB excel file. Now because excelonline does not allow marcos to be run, proper printing and proper copy and paste in html formats (we need to copy and paste sheets into outlook in html format or run
    macros) we need to open the desktopexcel application to use printing and copy functions into outlook.
    All 5 users need to enter the data in excelonline then SYNC now in sharepoint so the excel is updated and then open desktopexcel then a pop up to use latest server version asks us to use latest. We want latest so we then click okay. Great we now have the
    latest data. We can then run macros etc....
    We then close down desktopexcel and enter more online data through the day and have to repeat SYNC now in sharepoint so the excel is updated and then open desktopexcel then a pop up to use latest server version asks us to use latest. We want latest so we
    then click okay. Great we now have the latest data. We can then run macros etc....
    We have to repeat this many times over the same day... that is 5 people doing like this though out the day. Wasting alot of time.
    QUESTION
    Is their anyway 5 users can use excelonline fileA and also keep a uneditable version fileA open in desktop excel and manually refresh the desktop version to see the latest version of the document in uneditable mode still of course?
    Regards
    Lee

    Thank you.
    If I understand correctly from your advice, that is I should create QaaWs to pull data from SAP BI, which will return data in tabular format. Map the data in the cell range of a hidden tab, re-arrange and format the data into the row?
      Another concern: I need to display data for 4 quarters (Q1, Q2, Q3,Q4) in the dashboard, but QAAWS will only pulls data when the data is available in the database.
       Eg. Only data for 3 quarters are found in the database, QAAWS will return data for Q1, Q2,Q4.
             This will mess up the position fixed in the xcelsius. Do you have any suggestion on this?
       Sorry to bother u for the simple questions.
       Thank you.

  • Upload data from Excel to Internal table

    Hi,
    I am facing a peculiar problem in uploading the data in excel sheet to internal table.
    The excel file contains material number and product hierarchy number. The product hierarchy number for some material is downloaded as 5.73101E17 for the value 573100910115782000. Though I expand the sheet the display is the same 5.73101E17. When i upload the sheet using the f'n module "ALSM_EXCEL_TO_INTERNAL_TABLE" the value is taken as it is (5.73101E+17) into the internal table which is wrong. I tried to change the data type to type n. Then the value is uploaded as 5731011700000000.
    Please propose a solution to this without having to change the format of the column from general to "number without decimals"
    Regards,
    Sam

    HI
    see this example code which EXCEL TO INTERNAL TABLE AND THEN TO APPLICATION
    *& 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.

Maybe you are looking for