WebGui: Download Query-output to excel

Hi everyone,
We are using ITS 6.20 patch-level 10 (level 16 will follow this week) in combination with R/3 4.70 Ext. 1.0 and we experience some system behavior that is not really user-friendly.
When calling a query (tx sq01) within WEBGui you've got the possibility to get the output as an ALV-List. Within the list you've got a button to download it to a local file as a spreadsheet. But when doing so the user has to confirm several screens for 'technical reasons'.
Does anyone know a way (or a workaround) to avoid this 'technical screens'?
Moreover the downloaded file should be a real XLS-File but it is a tab-separated text-file. Does anyone know how to get the same XLS-ready file within WEBGUI as you can get it in SAPGUI?
Thank you for your help.
Regards,
Vinzenz

Hi Vinzenz,
I regret that the SAP GUI for HTML is not capable of exporting a XLS-file.
Best regards,
Henning.

Similar Messages

  • How to Download displayed output to Excel Using Bsp Application

    Hi Experts,
    please give me some idea because I am New In BSP.
    How to Download displayed output to Excel Using Bsp Application.
    If any sample code please do send me.
    In my condition I am getting data in  2-3 table view formats on one page and i want download that in Excel.
    please help me.
    Regards & Thanks,
    Yogesh

    Hi,
    This is more a question for the BSP forum.
    Anyway, as such it's realy easy since you can use HTML in order to import to Excel. All you need to do is add
    runtime->server->response->set_header_field( name = 'Contnet-Type'
    value = 'application/vnd.ms-excel' ).
    runtime->server->response->delete_header_field( name = 'Cache-Control' ).
    runtime->server->response->delete_header_field( name = 'Expires' ).
    runtime->server->response->delete_header_field( name = 'Pragma' ).
    Also check threads like
    Download BSP data into Excel
    export bsp-table to excel
    Export BSP Table to Excel
    Eddy
    PS. Reward useful answers and earn points yourself

  • Download ALV output to excel with formatting

    Hi All,
    i want to download ALV output to excel sheet and the uneditable fields in ALV oputput should be locked (uneditable) in excel also.
    Can you please tell me approach to achieve this functionality?
    Thanks in advance.

    Thanks Vamsi. Your Suggestion was helpful.
    I have used excel integration and used SET PROPERTY OF (COLUMN) 'LOCKED' = 1.
    For more details refer below mentioned link.
    http://webcache.googleusercontent.com/search?q=cache:SoY6hFC17PoJ:wiki.sdn.sap.com/wiki/display/Snippets/Download%2BData%2Binto%2BMultiple%2BSheet%2BExcel%2BDocument%2Bwith%2BNon%2BEditable%2BColumns%2B(Password%2Bprotected)%2BUsing%2BABAP%2BOLESetPropertynoteditableexcelsapABAP&cd=1&hl=en&ct=clnk&gl=in&source=www.google.co.in (http://webcache.googleusercontent.com/search?q=cache:SoY6hFC17PoJ:wiki.sdn.sap.com/wiki/display/Snippets/Download%2BData%2Binto%2BMultiple%2BSheet%2BExcel%2BDocument%2Bwith%2BNon%2BEditable%2BColumns%2B%28Password%2Bprotected%29%2BUsing%2BABAP%2BOLESetPropertynoteditableexcelsapABAP&cd=1&hl=en&ct=clnk&gl=in&source=www.google.co.in

  • How to get the Query output to Excel

    Hi ,
    Can you tell me how to get the Query output to excel with out using any third party tool?
    Can you tell me how to write the code in Webservice and call it..
    Please explain it Elaboartly..
    Thanks in Advance!!!
    Mini

    whats your source system?
    you can use Live office, or query as a webservice if you are getting data from universe
    if you're getting data from SAP BI query and you have a java stack on your netweaver then you can get the data directly using sap bi connector in xcelsius.
    good luck

  • Download the output into Excel...(List- export- spreadsheet)

    Dear friends,
    I want to download the output into Excel...
    I am using all SAP standards and using the ALV Block list
    Ex: List->export->local file.. is anable from here i can download to excell .....but the same there is anothere option : List->export->spreadsheet...( this one inactive.)
    I want to activate the List->export->spreadsheet option.
    how to do this???
    Thanks,
    Sridhar.

    Hi
       Use the Function Module:
    EXCEL_OLE_STANDARD_DAT
    For your purpose.
    But by default you can get the option to download into several formats including your desired one.
    Regards,
    Sreeram

  • HOW TO DOWNLOAD SAP OUTPUT TO EXCEL FILE

    Hi SAP Gurus,
        I would like to ask if you have any Function Module or codes on how to download SAP Output into Excel file. Thanks! Hope you could help me.

    You can transfer the contents of internal table to excel using this code..
    data: begin of itab occurs 0,
          vbeln like vbak-vbeln,
          posnr like vbap-posnr,
          end of itab.
    select vbeln
           posnr
           from vbap
           up to 20 rows
           into table itab.
    * EXCEL sheet using OLE automation.
    INCLUDE OLE2INCL.
    * handles for OLE objects
    DATA: H_EXCEL TYPE OLE2_OBJECT,        " Excel object
          H_WORK  TYPE OLE2_OBJECT,
          H_SHEET TYPE OLE2_OBJECT,
          H_CELL  TYPE OLE2_OBJECT,
          V_COL   LIKE SY-TABIX.     " column number of the cell
    DATA:
      V_STEP(30),
      V_FILE LIKE RLGRAP-FILENAME.
    * tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = 'Creating Excel...'
           EXCEPTIONS
                OTHERS     = 1.
    * start Excel
      V_STEP = 'Starting Excel'.
      CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_EXCEL  'Visible' = 1.
    *  CALL METHOD OF H_EXCEL 'OPEN' EXPORTING  #1 = 'C:DMC_REC.XLS'.
    *  PERFORM ERR_HDL.
    * tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = 'Adding Data to Excel...'
           EXCEPTIONS
                OTHERS     = 1.
    * Get the list of workbooks
      V_STEP = 'Preaparing Excel'.
      CALL METHOD OF H_EXCEL 'WORKBOOKS' = H_WORK.
      PERFORM ERR_HDL.
    ** Add new workbook (create a file)
      CALL METHOD OF H_WORK 'ADD'.
      PERFORM ERR_HDL.
    * Get the created worksheet
    ************************Sheet Number
      CALL METHOD OF H_EXCEL 'WORKSHEETS' = H_SHEET EXPORTING #1 = 3.
    ************************Sheet Number
      PERFORM ERR_HDL.
    * Activate (select) the first sheet
      CALL METHOD OF H_SHEET 'ACTIVATE'.
      PERFORM ERR_HDL.
    * tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = 'Adding Data to Excel...'
           EXCEPTIONS
                OTHERS     = 1.
    * output column headings to active Excel sheet
      V_STEP = 'Adding data to Excel'.
      LOOP AT ITAB.
        V_COL = SY-TABIX.
        PERFORM FILL_CELL USING 1 V_COL ITAB-vbeln.
        PERFORM FILL_CELL USING 2 V_COL ITAB-posnr.
      ENDLOOP.
      V_STEP = 'Releasing Excel'.
      FREE OBJECT H_EXCEL.
      PERFORM ERR_HDL.
      H_EXCEL-HANDLE = -1.
    *&      Form  ERR_HDL
    *       text
    *  -->  p1        text
    FORM ERR_HDL.
      IF SY-SUBRC <> 0.
        WRITE: / 'Error in processing Excel File:', V_STEP.
        STOP.
      ENDIF.
    ENDFORM.                    " ERR_HDL
    *&      Form  FILL_CELL
    *       text
    *      -->P_1      text
    *      -->P_1      text
    *      -->P_1      text
    FORM FILL_CELL USING  ROW COL VAL.
      CALL METHOD OF H_EXCEL 'Cells' = H_CELL
                     EXPORTING #1 = ROW #2 = COL.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_CELL 'Value' = VAL .
      PERFORM ERR_HDL.
    ENDFORM.                    " FILL_CELL

  • Getting ERROR when downloading alv output to Excel

    Hello All,
    I get a error message when I try to use the standard funtionality to download the alv output to excel.
    The current statement only supports character-type data objects.
    What happened?
    The current ABAP/4 program "SAPLKKBL " had to be terminated because
    one of the statements could not be executed.
    This is probably due to an error in the ABAP/4 program.
    Error analysis
    In statement
       "STRLEN( obj )..."
    the argument "obj" can only take a character-type data object.
    Source code extract
    038620   *   ansonsten entspricht sich min. Ausgabelänge und Ausprägungslänge
    038630       else.
    038640         if gs_fc-tech_form ne 99.
         >           gs_out-hlplen = strlen(  ).
    038660         endif.
    038670       endif.
    In this case, the operand "obj" has the non-character type "I".
    Please can anyone put some light on this. It is veru difficult to go through the whole std functionality to download.
    Thanks for all support guys!
    Sri.

    Hi srikanth,
    This error comes because the values present in any one of the displayed coloums containing special character like * present before or after the number....  i.e  instead of 4 ...**4.
    While displaying in the screen it is of no problem. since both *4 are converted into char format (internally) and gets displayed.
    But while you download the same throu the EXCEL functionality SAP will intenally convert the same into NUMERIC format. Since 4 is number.
    So in that case *4 will cause dump.
    *So find out the place in which the value appearing like this *4 and try to correct it.
    *Surely it is of Field LENGTH problem. Try to increase the length of the field 4.
    It Should WORK.!!!..  else post ur query here.
    REWARD POINTS IF USEFUL
    ~Lakshmiraj~

  • Download ALV output to EXCEL

    Hi gurus,
       Cany anybody explain what is the procedure to download the alv output to EXCEL sheet?
    Marks will be awarded
    Thanks in Advance
    Ravi

    Hi
    when display the ALV . select from PF-STATUS menu bar select download option then SPEADSHEET. Thats all.
    Reward all the helpful answers..
    With Regards
    Navin Khedikar

  • Problem in Download ALV Output to Excel

    Hi All,
    When iam going to Download the ALV ( Grid ) Output to Excel, all columns are not coming in Output.
    But the ALV Output Contains 140 Columns.
    How to solve this issue.
    Points Rewarded.
    Thanks & Regards,
    Kiran . I

    Hi,
    You can download the report by going to menu option
    List->export->local file.. in this select spreadsheet and give the name for this to download.
    You can view all the columns here in xls sheet.
    Regards,
    Ram Mohan
    Pls reward poins if useful...

  • Problem in downloading ALV output in excel

    Dear Abapers,
                           I am facing a problem while downloading alv output in spreadsheet. Report headers and data headings are coming in excle but contents are missing instead of that No Data is displaying on excel sheet. I have debug that and observed the deep structure name T_OUTTAB using by the FM ALV_DATA_EXPORT is empty, It should contain the contents of my output data.
    Below I am giving my code. 
    ***********************************************declaration****************
          BEGIN OF d_file_out,
            index           TYPE i,                      "Index no
            msg             TYPE string,              "Message
            msgtyp(1)       TYPE c,                 "Message type
           END OF d_file_out,
    DATA:t_file_out       TYPE TABLE OF d_file_out.
    DATA:wa_file_out          TYPE d_file_out.
    Display Error Logs
    PERFORM display_logs USING text-006.
    FORM display_logs USING p_text TYPE string.
      CONSTANTS:  c_count    TYPE char5 VALUE 'INDEX',
                  c_mestyp   TYPE char6 VALUE 'MSG',
                  c_message  TYPE char7 VALUE 'MSGTYP'.
    *Field catalog
      PERFORM: z_field_catalog USING c_count   text-010,  "Record number
               z_field_catalog USING c_mestyp  text-011,  "Message type
               z_field_catalog USING c_message text-012.  "Message
    *Top of page event
      PERFORM z_event USING t_events.
    wa_layout-colwidth_optimize = c_x.
    ALV grid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
         i_buffer_active          = 'X'
           i_callback_program = sy-repid
         is_layout          = wa_layout
         I_STRUCTURE_NAME   = wa_file_out
          it_fieldcat        = t_field
          it_events          = t_events
        TABLES
          t_outtab           = t_file_out
        EXCEPTIONS
          program_error      = 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.
    ***********************************Fieldcatalog**********************************************
    FORM z_field_catalog USING p_field TYPE any
                                                p_name  TYPE any.
      wa_field-fieldname = p_field.
      wa_field-seltext_l = p_name.
      IF p_field = 'INDEX'.
        wa_field-outputlen = '14'.
        wa_field-col_pos = 1.
      ELSEIF p_field = 'MSG'.
        wa_field-outputlen = '120'.
        wa_field-col_pos = 2.
      ELSEIF p_field = 'MSGTYP'.
        wa_field-outputlen = '08'.
        wa_field-col_pos = 3.
      ENDIF.
      APPEND wa_field TO t_field.
      CLEAR wa_field.
    ENDFORM. 
    Here I have given my code, which contain the building of field catalog and Calling ALV Grid. I have already checked the excel micros settings. Other programs are working fine on my system and downloading in excel is also working.
    Hope to get reply soon.
    Regards,
    Himanshu

    Hi ,
    use this to down load to xcel
    v_file = lv_file.
      DATA:  BEGIN OF s_head OCCURS 0,
             head(40) TYPE c ,
             END OF s_head.
      s_head-head = text-015."'Sales price'.   * for header
      APPEND s_head.
      s_head-head = text-016."'Purchase price'.   * for header
      APPEND s_head.
      s_head-head = text-017."'Listing Procedure'.   * for header
      APPEND s_head.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                        = v_file
         filetype                        = 'ASC'
         write_field_separator           = '#'
        TABLES
          data_tab                        = it_output1[]
          fieldnames                      = s_head[]
       EXCEPTIONS
         file_write_error                = 1
         no_batch                        = 2
         gui_refuse_filetransfer         = 3
         invalid_type                    = 4
         no_authority                    = 5
         unknown_error                   = 6
         header_not_allowed              = 7
         separator_not_allowed           = 8
         filesize_not_allowed            = 9
         header_too_long                 = 10
         dp_error_create                 = 11
         dp_error_send                   = 12
         dp_error_write                  = 13
         unknown_dp_error                = 14
         access_denied                   = 15
         dp_out_of_memory                = 16
         disk_full                       = 17
         dp_timeout                      = 18
         file_not_found                  = 19
         dataprovider_exception          = 20
         control_flush_error             = 21
         OTHERS                          = 22
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

  • Query output in Excel

    Hi ,
        I have a job with number of queries. I need that output of the query in an excel format to a location whenever that job runs. Help me out.

    >> and there was little explanation behind it <<
    There is no need for further explanations.  Each component in a system has its own responsabilities.
    You should use the right tool for the right job. Calling console apps is not the responsability of the database engine and there are better ways to do that job.
    >>
    Personally I've found that if you can't integrate a C# library through CLR then using the console is a perfectly legitimate way of getting around that issue.
    <<
    I would like to know what feature you needed to implement that required xp_cmdshell.
    But in this case, getting several queries exported to excel files in a job can be done by invoking the console app from the SQL Server Agent Job. No need for xp_cmdshell at all.
    In our organization, we create lots of LOB web applications. Most of them have the option to export the data coming form SQL Server queries shown on grids to Excel files. Guess what? We don't call xp_cmdshell.
    Jesús López
    EntityLite: A Lightweight, Database First, Micro ORM

  • Query output in EXCEL format

    Hi,
    How do I redirect the output of the SQL query to EXCEL format.
    If i say select * from emp with the spooling file name as c:\emp.xls and once I open emp.xls the excel file should be available
    with each column of the table in separate column automatically.
    Please help me to achieve this requirement.
    Thanks

    Hi
    Please find below script...Longback blushadow provided to me...!! Credit goes to his account only.
    Thanks blushadow once again.
    ** This will help you a lot. do the following steps with out fail.
    Now open tab.xls with excel ....
    As sys user:
    CREATE OR REPLACE DIRECTORY TEST_DIR AS 'c:\myfiles'     /* directory on the Oracle database server */
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    As myuser:
    DECLARE
      v_fh        UTL_FILE.FILE_TYPE;
      v_dir       VARCHAR2(30) := 'TEST_DIR';
      v_file      VARCHAR2(30) := 'myfile.xls';
      PROCEDURE run_query(p_sql IN VARCHAR2) IS
        v_v_val     VARCHAR2(4000);
        v_n_val     NUMBER;
        v_d_val     DATE;
        v_ret       NUMBER;
        c           NUMBER;
        d           NUMBER;
        col_cnt     INTEGER;
        f           BOOLEAN;
        rec_tab     DBMS_SQL.DESC_TAB;
        col_num     NUMBER;
      BEGIN
        c := DBMS_SQL.OPEN_CURSOR;
        -- parse the SQL statement
        DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
        -- start execution of the SQL statement
        d := DBMS_SQL.EXECUTE(c);
        -- get a description of the returned columns
        DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
        -- bind variables to columns
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,4000);
            WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
            WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
          ELSE
            DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,4000);
          END CASE;
        END LOOP;
        -- Output the column headers
        UTL_FILE.PUT_LINE(v_fh,'<ss:Row>');
        FOR j in 1..col_cnt
        LOOP
          UTL_FILE.PUT_LINE(v_fh,'<ss:Cell>');
          UTL_FILE.PUT_LINE(v_fh,'<ss:Data ss:Type="String">'||rec_tab(j).col_name||'</ss:Data>');
          UTL_FILE.PUT_LINE(v_fh,'</ss:Cell>');
        END LOOP;
        UTL_FILE.PUT_LINE(v_fh,'</ss:Row>');
        -- Output the data
        LOOP
          v_ret := DBMS_SQL.FETCH_ROWS(c);
          EXIT WHEN v_ret = 0;
          UTL_FILE.PUT_LINE(v_fh,'<ss:Row>');
          FOR j in 1..col_cnt
          LOOP
            CASE rec_tab(j).col_type
              WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                          UTL_FILE.PUT_LINE(v_fh,'<ss:Cell>');
                          UTL_FILE.PUT_LINE(v_fh,'<ss:Data ss:Type="String">'||v_v_val||'</ss:Data>');
                          UTL_FILE.PUT_LINE(v_fh,'</ss:Cell>');
              WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                          UTL_FILE.PUT_LINE(v_fh,'<ss:Cell>');
                          UTL_FILE.PUT_LINE(v_fh,'<ss:Data ss:Type="Number">'||to_char(v_n_val)||'</ss:Data>');
                          UTL_FILE.PUT_LINE(v_fh,'</ss:Cell>');
              WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                          UTL_FILE.PUT_LINE(v_fh,'<ss:Cell ss:StyleID="OracleDate">');
                          UTL_FILE.PUT_LINE(v_fh,'<ss:Data ss:Type="DateTime">'||to_char(v_d_val,'YYYY-MM-DD"T"HH24:MI:SS')||'</ss:Data>');
                          UTL_FILE.PUT_LINE(v_fh,'</ss:Cell>');
            ELSE
              DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
              UTL_FILE.PUT_LINE(v_fh,'<ss:Cell>');
              UTL_FILE.PUT_LINE(v_fh,'<ss:Data ss:Type="String">'||v_v_val||'</ss:Data>');
              UTL_FILE.PUT_LINE(v_fh,'</ss:Cell>');
            END CASE;
          END LOOP;
          UTL_FILE.PUT_LINE(v_fh,'</ss:Row>');
        END LOOP;
        DBMS_SQL.CLOSE_CURSOR(c);
      END;
      PROCEDURE start_workbook IS
      BEGIN
        UTL_FILE.PUT_LINE(v_fh,'<?xml version="1.0"?>');
        UTL_FILE.PUT_LINE(v_fh,'<ss:Workbook xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">');
      END;
      PROCEDURE end_workbook IS
      BEGIN
        UTL_FILE.PUT_LINE(v_fh,'</ss:Workbook>');
      END;
      PROCEDURE start_worksheet(p_sheetname IN VARCHAR2) IS
      BEGIN
        UTL_FILE.PUT_LINE(v_fh,'<ss:Worksheet ss:Name="'||p_sheetname||'">');
        UTL_FILE.PUT_LINE(v_fh,'<ss:Table>');
      END;
      PROCEDURE end_worksheet IS
      BEGIN
        UTL_FILE.PUT_LINE(v_fh,'</ss:Table>');
        UTL_FILE.PUT_LINE(v_fh,'</ss:Worksheet>');
      END;
      PROCEDURE set_date_style IS
      BEGIN
        UTL_FILE.PUT_LINE(v_fh,'<ss:Styles>');
        UTL_FILE.PUT_LINE(v_fh,'<ss:Style ss:ID="OracleDate">');
        UTL_FILE.PUT_LINE(v_fh,'<ss:NumberFormat ss:Format="dd/mm/yyyy\ hh:mm:ss"/>');
        UTL_FILE.PUT_LINE(v_fh,'</ss:Style>');
        UTL_FILE.PUT_LINE(v_fh,'</ss:Styles>');
      END;
    BEGIN
      v_fh := UTL_FILE.FOPEN(upper(v_dir),v_file,'w',32767);
      start_workbook;
      set_date_style;
      start_worksheet('EMP');
      run_query('select * from emp');
      end_worksheet;
      start_worksheet('DEPT');
      run_query('select * from dept');
      end_worksheet;
      end_workbook;
      UTL_FILE.FCLOSE(v_fh);
    END;KPR

  • How to download report output to excel file??

    Hi all,
    I have a problem with downloading a report output to an excel file? May i know is there any functions or methods to do it?
    My situation is like this. I used Write function to print out the report. After user click on the execute button. The report output will show to the user in a table format. And there is one button 'Save To Excel' in the report output dipslay screen for user to click to save it into excel format.
    Appreciate if you could help.
    Thanks.
    Regards,
    Rachel

    Hi Rachel,
           You can use FM GUI_DOWNLOAD for transferring the data from your report program into excel sheet.
    And while saving give the filename extension as .xls.
    Reward if helpful.
    With regards,
    Syed

  • Query output to excel sheet...pls solve my problem here !

    Hi all,
    I have written a procedure which accepts parameters and generate a web page.
    The web page generated records as fetched from cursor within procedure.
    My requirement is to generate it as a excel sheet once run through url.
    I am getting as a text inspite using
    owa_util.mime_header('ms-excel');
    within my code.....
    can you pls help or send me code which could do above task...:)
    Thanks in advance.
    Regards
    Ravikanth

    Try this instead :
    OWA_UTIL.MIME_HEADER('application/vnd.ms-excel');
    Barry C
    http://www.myoracleportal.com

  • Problem in downloading ALV output to Excel

    Here are the details of short dump.
    Run time Error OBJECTS_NOT_CHARLIKE
    The current statement only supports character-type data objects.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLKKBL" had to be terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    What can you do?
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    Error analysis
    In statement
       "STRLEN( obj )..."
    the argument "obj" can only take a character-type data object.
    In this case, the operand "obj" has the non-character type "P".

    Declare another variable of same length as 'obj' let us say its obj1 , then move 'obj' to 'obj1', now findout the length of 'obj1', which wil be the same value.
    MOVE obj TO obj1.
    STRLEN(obj1).
    Hope ur dump wil not trigger again.
    Regards,
    Sujatha.

Maybe you are looking for