Skip to Content
author's profile photo Former Member
Former Member

Runtime error : OBJECTS_NOT_CHARLIKE

Hi,

When i run a report. It runs fine. but when i try to print the alv output, it throws this error."OBJECTS_NOT_CHARLIKE".

Error analysis says : At the statment "STRLEN( obj )..." , only character-type data objects are supported at the argument position "obj". In this particular case, the operand "obj" has the non-charcter-type type "P".

I have one of the currency field defined as "P".

Pls help.

Regards

Hrishi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 22, 2007 at 06:34 AM

    Hi Hrishi,

    Just change the field to char type OR

    in the fieldcatalog pass it as a currency field

    and your problem will be solved.

    Reward points if useful.

    Regards,

    Atish

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Harshit,

      I also faces the same problem which you faces in the past, my report is working fine and display data on output. but when i export it to local file this shows run time error. i try all the changes like change the field type and all, still faces problem

      let me know how your problem get resolve and What is ATP and BAL in FM.

      here is my FM. let me know what to do. if you need full code let me know.

      Thanks in advance.

      call function 'REUSE_ALV_GRID_DISPLAY_LVC'

      exporting

      • I_INTERFACE_CHECK = ' '

      • I_BYPASSING_BUFFER =

      • I_BUFFER_ACTIVE =

      i_callback_program = sy-repid

      • I_CALLBACK_PF_STATUS_SET = ' '

      i_callback_user_command = 'USER_COMMAND'

      • I_CALLBACK_TOP_OF_PAGE = ' '

      • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

      • I_CALLBACK_HTML_END_OF_LIST = ' '

      • I_STRUCTURE_NAME =

      • I_BACKGROUND_ID = ' '

      • I_GRID_TITLE =

      • I_GRID_SETTINGS =

      is_layout_lvc = gw_layout

      it_fieldcat_lvc = gt_fcat[]

      • IT_EXCLUDING =

      • IT_SPECIAL_GROUPS_LVC =

      • IT_SORT_LVC =

      • IT_FILTER_LVC =

      • IT_HYPERLINK =

      • IS_SEL_HIDE =

      i_default = 'X'

      i_save = 'X'

      is_variant = gw_config-variant

      • IT_EVENTS =

      • IT_EVENT_EXIT =

      • IS_PRINT_LVC =

      • IS_REPREP_ID_LVC =

      • I_SCREEN_START_COLUMN = 0

      • I_SCREEN_START_LINE = 0

      • I_SCREEN_END_COLUMN = 0

      • I_SCREEN_END_LINE = 0

      • I_HTML_HEIGHT_TOP =

      • I_HTML_HEIGHT_END =

      • IT_ALV_GRAPHICS =

      • IT_EXCEPT_QINFO_LVC =

      • IR_SALV_FULLSCREEN_ADAPTER =

      • IMPORTING

      • E_EXIT_CAUSED_BY_CALLER =

      • ES_EXIT_CAUSED_BY_USER =

      tables

      t_outtab = gt_final[]

      exceptions

      program_error = 1

      others = 2 .

      if sy-subrc <> 0.

      message id sy-msgid type 'E' number sy-msgno

      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

      endif.

      Thanks

      Sachin

      Edited by: sachin gaur21 on Sep 10, 2011 3:09 PM

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2007 at 04:52 AM

    Hi,

    You assign the floating number

    assign the filed_catalog-datatype = 'FLTP'

    with no of decimals

    datatype like dd03p-datatype,

    Regards

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2007 at 04:57 AM

    Declare the fields in your internal table as characater data type fields and then try to do transfer ..

    <b>Reward points</b>

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.