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~

Similar Messages

  • 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

  • I get error when downloading books

    After oppressing my iPad I started to get error when downloading books on iBook . It looks that book is downloaded, bu I miss most of the pages, and ther is several pages were it sayes error and page is missing. This happens to all of the book I try to download, even the ones I downloaded from before.
    Does engine know what to do?

    Please repost here: http://forums.adobe.com/community/adobe_digital_editions

  • 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.

  • 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...

  • Getting error when downloading indesign files...(resource_not_found)

    Still getting error ({"message":{"resource_not_found":["https://EU.creative.adobe.com","https://AP.creative.adobe.com"]}}) when my team sends me an indesign file to download. Is there a work around for now?

    Have them zip the file to prevent the email system from messing with it.

  • Error when downloading a file to Excel

    Hi all
    When trying to download a file with function "WS_DOWNLOAD" to Excel I am getting the following error:
    "Error no. 5 in SAPGUI with Graphics call or file transfer"
    And then:
    "E5: illegal data in download file 'C:\Shipment.xls (WK1 Conversion)'"
    But this errors only occurs in some pcs.
    Anybody knows what could be happening?
    Thanks,
    Iratxe

    Hi,
    Please check your
    1. File type
    2. and file name type.
    p_fnam2 LIKE rlgrap-filename.
    filetype = 'DAT'
      CALL FUNCTION 'WS_DOWNLOAD'
           EXPORTING
                filename                = p_fnam2
                filetype                = 'DAT'
           TABLES
                data_tab                = i_download
           EXCEPTIONS
                file_open_error         = 1
                file_write_error        = 2
                invalid_filesize        = 3
                invalid_type            = 4
                no_batch                = 5
                unknown_error           = 6
                invalid_table_width     = 7
                gui_refuse_filetransfer = 8
                customer_error          = 9
                OTHERS                  = 10.
      IF sy-subrc = 0.
        MESSAGE i352.                          "File downloded successfully
      ENDIF.
    Moreover GUI_DOWNLOAD is prefererred to WS_DOWNLOAD.
    or use: call cl_gui_frontend_services
    This link will give u some tips on downlaoding files.
    http://www.sapdevelopment.co.uk/file/file_updown.htm
    Best Regards,
    Anjali

  • Getting Error when downloading Adobe After Effects

    Dear sir/madam
    I have problem with downloading Adobe After Effects, i am using the default download manager (Adobe Download Assistant). when i add the product i get an error ( Error communicating with adobe.com(error 107)). Please help, i really need Adobe After Effects. It is urgent!!!
    thanks

    Which version of After Effects were you trying to download.  We just made After Effects CS6 available.  Is this what you were trying to download?  If so where are you trying to save your download files too?

  • Getting error when downloading updates for CS5 suite

    I am in the process of trying to update my CS5 suite.  During the download and install process, I get an error and the installation quits.

    I just receive a message that there is a download error and you must quit and try to restart the download later.

  • Getting error when downloading InDesign

    I'm trying to download the trial version of InDesign.  I've tried in Mozilla, and Internet Explorer but get the same message: Firefox doesn't know how to open this address, because one of the following protocols (aam) isn't associated with any program or is not allowed in this context.  How do I fix this??

    S.allred please see Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html for information on how to install utilizing the Creative Cloud Desktop application.
    If you would like to correct your current error within your web browser then please see AAM doesn't update to Creative Cloud desktop Application.

  • Getting error when importing BP records from Excel

    Hi,
    I am familiar with importing from Excel into SAP using Admin>Data Import/Export, so I very puzzled by an error message.
    Row Number 1: Default payment method should be included with the BP's payment methods [Business Partner - Payment Method Code]
    This error appears for every row.  I do not see the field in the Import From Excel Field pull-down menu that I can add or assign to a column in my excel sheet that will fix this problem.
    Thanks!

    Jennifer,
    If you are so confident about the settings in B1 then it is probably something to do with the import engine.
    The other option would be to import this through DTW.  Unless there is a compleling why you only want to use the Import utility I would not wait to do this using DTW as it is equally easier given that it is only BP Master and everything is in excel already.
    Thanks
    Suda

  • My computer has all requirments but keep getting error when downloading itunes? help?

    need help downloading itunes. anyone help?

    See the further information area in Troubleshooting issues with iTunes for Windows updates for download advice and direct links if needed.
    tt2

  • I keep getting error when downloading iTunes says apple mobile device failed to start

    I have uninstaled and tried reinstalling iTunes and I get most of it installed then get a pop up that says
    Service "Apple Mobile Device" (Apple Mobile Device) failed to start. Verify you have sufficient privilages
    to start systems services...and all I can do is click ok    how do I do this so I can get iTunes reinstalled on
    my computer

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • 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

  • Viewing progressive video on different systems

    Hi everyone, I've got some 24P (normal, from a DVX100) video here that I'm editing, and I'm wondering what to expect it to look like when I'm finished. While editing, on my progressive (obviously) computer monitor, I'm seeing ugly interlace lines on

  • Problem in datasource in embedded oc4j 10.1.3

    Hi, I have created a data source with following details. Connection Pool Name: jdbc/pool/xyz and enter all details in the connection Factory. Then am trying to create a connection as follows javax.naming.InitialContext ic = new javax.naming.InitialCo

  • Please help me constructing this query

    please help me .      table a                ===========           transactionid     personname     year     dept r001          person1          y1     d1 r002          person1          y2     d2 r005          person3          y1     d2 r004         

  • UTF8 DB using third party package

    I have an Oracle DB defined with the UTF8 characterset. I can use Oracle Forms to insert and retrieve multibyte characters from the DB however, I have not been able to retrieve multibyte characters using third party packages. These packages can retri

  • Apple TV Wifi can't find network

    Hello, I have a Gen 3 apple TV it has 7.0 installed. It has been working great. It has always been connected to an ethernet cable. But I recently moved it to another room. I am now trying to connect it to wifi. When I click on Network it doesn't show