<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting runtime Error 'UC_OBJECTS_NOT_CHARLIKE'  for ALV grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915029#M380677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the internal table being passed to the method is P_GT_REVENUE_DET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2007 10:30:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-01T10:30:31Z</dc:date>
    <item>
      <title>Getting runtime Error 'UC_OBJECTS_NOT_CHARLIKE'  for ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915023#M380671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I call method SET_TABLE_FOR_FIRST_DISPLAY of ALV I get runtime error 'UC_OBJECTS_NOT_CHARLIKE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i have set in the fieldcatalog the field 'CHK' of internal table as checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fcat-fieldname = 'CHK' .&lt;/P&gt;&lt;P&gt;wa_fcat-coltext = 'Clear' .&lt;/P&gt;&lt;P&gt;wa_fcat-seltext = 'Clear' .&lt;/P&gt;&lt;P&gt;wa_fcat-checkbox = 'X' .&lt;/P&gt;&lt;P&gt;wa_fcat-edit = 'X' .&lt;/P&gt;&lt;P&gt;APPEND wa_fcat to p_lt_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field CHK is of type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i dont set the field as checkbox, I stop getting the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;auro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 09:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915023#M380671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T09:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting runtime Error 'UC_OBJECTS_NOT_CHARLIKE'  for ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915024#M380672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GIve the field name as 'ITAB_CHK' (If ITAB is your internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;wa_fcat-fieldname = 'ITAB-CHK' .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;wa_fcat-coltext = 'Clear' .&lt;/P&gt;&lt;P&gt;wa_fcat-seltext = 'Clear' .&lt;/P&gt;&lt;P&gt;wa_fcat-checkbox = 'X' .&lt;/P&gt;&lt;P&gt;wa_fcat-edit = 'X' .&lt;/P&gt;&lt;P&gt;APPEND wa_fcat to p_lt_fieldcatalog .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 09:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915024#M380672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T09:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting runtime Error 'UC_OBJECTS_NOT_CHARLIKE'  for ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915025#M380673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not helping.&lt;/P&gt;&lt;P&gt;Actually it gives a runtime error when the table is filled and value of field CHK is either '' or 'X'.&lt;/P&gt;&lt;P&gt;when i DONT specify the field CHK as checkbox in the field catalog then i dont get the error but by specifying it i am getting the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the details of the error log is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program SAPLSLVC&lt;/P&gt;&lt;P&gt;include  LSLVCF05&lt;/P&gt;&lt;P&gt;Form   DATA_TABLE_GET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*... CHECKBOX/RADIOBUTTON&lt;/P&gt;&lt;P&gt;          if &amp;lt;ls_fieldcat&amp;gt;-checkbox = 'X'.&lt;/P&gt;&lt;P&gt;            if &amp;lt;g_field&amp;gt; ca '01'.----&lt;/P&gt;&lt;HR originaltext="--------------------------------------" /&gt;&lt;P&gt;error occured here&lt;/P&gt;&lt;P&gt;              add alv_style_enabled to gs_lvc_data-style.&lt;/P&gt;&lt;P&gt;            else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            add alv_style_disabled to gs_lvc_data-style.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;            if &amp;lt;g_field&amp;gt; = 'X' or &amp;lt;g_field&amp;gt; = '1'.&lt;/P&gt;&lt;P&gt;              add alv_style_checkbox_checked to gs_lvc_data-style.&lt;/P&gt;&lt;P&gt;            elseif &amp;lt;g_field&amp;gt; = space or &amp;lt;g_field&amp;gt; = '0'.&lt;/P&gt;&lt;P&gt;              add alv_style_checkbox_not_checked to gs_lvc_data-style.&lt;/P&gt;&lt;P&gt;            elseif &amp;lt;g_field&amp;gt; = '-'.&lt;/P&gt;&lt;P&gt;              add alv_style_checkbox_no to gs_lvc_data-style.&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;          elseif &amp;lt;ls_fieldcat&amp;gt;-checkbox = 'R'.&lt;/P&gt;&lt;P&gt;            if &amp;lt;g_field&amp;gt; ca '01'.&lt;/P&gt;&lt;P&gt;              add alv_style_enabled to gs_lvc_data-style.&lt;/P&gt;&lt;P&gt;            else.&lt;/P&gt;&lt;P&gt;              add alv_style_disabled to gs_lvc_data-style.&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;            if &amp;lt;g_field&amp;gt; = 'X' or &amp;lt;g_field&amp;gt; = '1'.&lt;/P&gt;&lt;P&gt;              add alv_style_radio_checked to gs_lvc_data-style.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 10:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915025#M380673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T10:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting runtime Error 'UC_OBJECTS_NOT_CHARLIKE'  for ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915026#M380674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you show your complete coding, or atleast the data declaration part?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 10:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915026#M380674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T10:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting runtime Error 'UC_OBJECTS_NOT_CHARLIKE'  for ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915027#M380675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Relevant parts of code are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Declaration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; types:  begin of tt_revenue_det,&lt;/P&gt;&lt;P&gt;       chk type c,&lt;/P&gt;&lt;P&gt;       budat like zefit0006-zefibudat,&lt;/P&gt;&lt;P&gt;       racct_txt like skat-txt50,&lt;/P&gt;&lt;P&gt;       amount like zefit0006-zefihsl,&lt;/P&gt;&lt;P&gt;       pbar_txt like tgsbt-gtext,&lt;/P&gt;&lt;P&gt;       sgtxt like zefit0006-zefisgtxt,&lt;/P&gt;&lt;P&gt;       costcentertxt like cskt-ktext,&lt;/P&gt;&lt;P&gt;       bar_txt like skat-txt50,&lt;/P&gt;&lt;P&gt;       doctype like zefit0006-zefiblart,&lt;/P&gt;&lt;P&gt;       ch_flag type c,&lt;/P&gt;&lt;P&gt;       end of tt_revenue_det,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:    gt_revenue_det type table of tt_revenue_det.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD CATALOG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  set_fieldcatalog_rev_det&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_LT_FIELDCATALOG  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form set_fieldcatalog_rev_det  using    p_lt_fieldcatalog type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:wa_fcat type lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fcat-fieldname = 'P_GT_REVENUE_DET-CHK' .&lt;/P&gt;&lt;P&gt;wa_fcat-coltext = 'Clear' .&lt;/P&gt;&lt;P&gt;wa_fcat-seltext = 'Clear' .&lt;/P&gt;&lt;P&gt;wa_fcat-checkbox = 'X' .&lt;/P&gt;&lt;P&gt;wa_fcat-edit = 'X' .&lt;/P&gt;&lt;P&gt;APPEND wa_fcat to p_lt_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fcat-fieldname = 'BUDAT' .&lt;/P&gt;&lt;P&gt;wa_fcat-coltext = 'Posting Date' .&lt;/P&gt;&lt;P&gt;wa_fcat-seltext = 'Posting Date' .&lt;/P&gt;&lt;P&gt;APPEND wa_fcat to p_lt_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fcat-fieldname = 'RACCT_TXT' .&lt;/P&gt;&lt;P&gt;wa_fcat-coltext = 'Account Item Text' .&lt;/P&gt;&lt;P&gt;wa_fcat-seltext = 'Account Item Text' .&lt;/P&gt;&lt;P&gt;APPEND wa_fcat to p_lt_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fcat-fieldname = 'AMOUNT' .&lt;/P&gt;&lt;P&gt;wa_fcat-coltext = 'Amount' .&lt;/P&gt;&lt;P&gt;wa_fcat-seltext = 'Amount' .&lt;/P&gt;&lt;P&gt;APPEND wa_fcat to p_lt_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fcat-fieldname = 'PBAR_TXT' .&lt;/P&gt;&lt;P&gt;wa_fcat-coltext = 'Partner Business Area' .&lt;/P&gt;&lt;P&gt;wa_fcat-seltext = 'Partner Business Area' .&lt;/P&gt;&lt;P&gt;APPEND wa_fcat to p_lt_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fcat-fieldname = 'SGTXT' .&lt;/P&gt;&lt;P&gt;wa_fcat-coltext = 'Item Text' .&lt;/P&gt;&lt;P&gt;wa_fcat-seltext = 'Item Text' .&lt;/P&gt;&lt;P&gt;APPEND wa_fcat to p_lt_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fcat-fieldname = 'COSTCENTERTXT' .&lt;/P&gt;&lt;P&gt;wa_fcat-coltext = 'Cost Center' .&lt;/P&gt;&lt;P&gt;wa_fcat-seltext = 'Cost Center' .&lt;/P&gt;&lt;P&gt;APPEND wa_fcat to p_lt_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fcat-fieldname = 'BAR_TXT' .&lt;/P&gt;&lt;P&gt;wa_fcat-coltext = 'Business Area' .&lt;/P&gt;&lt;P&gt;wa_fcat-seltext = 'Business Area' .&lt;/P&gt;&lt;P&gt;APPEND wa_fcat to p_lt_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fcat-fieldname = 'DOCTYPE' .&lt;/P&gt;&lt;P&gt;wa_fcat-coltext = 'Type' .&lt;/P&gt;&lt;P&gt;wa_fcat-seltext = 'Type' .&lt;/P&gt;&lt;P&gt;APPEND wa_fcat to p_lt_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fcat-fieldname = 'CH_FLAG' .&lt;/P&gt;&lt;P&gt;wa_fcat-coltext = 'Split' .&lt;/P&gt;&lt;P&gt;wa_fcat-seltext = 'Split' .&lt;/P&gt;&lt;P&gt;APPEND wa_fcat to p_lt_fieldcatalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " set_fieldcatalog_rev_det&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  create_alv_revenue_det&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_GT_REVENUE_DET  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form create_alv_revenue_det  using    p_gt_revenue_det.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV related data declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: lf_layout TYPE lvc_s_layo,  "alv layout&lt;/P&gt;&lt;P&gt;      lt_fieldcatalog type table of lvc_s_fcat, "field catalog internal table&lt;/P&gt;&lt;P&gt;      wa_fieldcatalog type lvc_s_fcat. "work area for field catalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create alv only if container is initial&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IF G_CUSTOM_CONTAINER_REV_DET IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lf_layout-no_toolbar = 'X'. " no toolbar&lt;/P&gt;&lt;P&gt;lf_layout-sel_mode = 'B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;populate field catalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform set_fieldcatalog_rev_det using lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create instance of container class&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE OBJECT G_CUSTOM_CONTAINER_REV_DET&lt;/P&gt;&lt;P&gt;           EXPORTING CONTAINER_NAME = G_CONTAINER_REV2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create instance of alv grid class&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE OBJECT GR_ALVGRID_REV_DET&lt;/P&gt;&lt;P&gt;           EXPORTING I_PARENT = G_CUSTOM_CONTAINER_REV_DET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call method to display table in alv grid by passing layout and fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD GR_ALVGRID_REV_DET-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;         is_layout = lf_layout&lt;/P&gt;&lt;P&gt;         CHANGING&lt;/P&gt;&lt;P&gt;         IT_OUTTAB        = p_gt_revenue_det&lt;/P&gt;&lt;P&gt;         IT_FIELDCATALOG  = lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " create_alv_revenue_det&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 10:20:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915027#M380675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T10:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting runtime Error 'UC_OBJECTS_NOT_CHARLIKE'  for ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915028#M380676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Did you try:&lt;/P&gt;&lt;P&gt;wa_fcat-fieldname = 'GT_REVENUE_DET-CHK' .?&lt;/P&gt;&lt;P&gt;Because your internal table is GT_REVENUE.&lt;/P&gt;&lt;P&gt;Also make similar changes for all other fields and see.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 10:24:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915028#M380676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T10:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting runtime Error 'UC_OBJECTS_NOT_CHARLIKE'  for ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915029#M380677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the internal table being passed to the method is P_GT_REVENUE_DET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 10:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915029#M380677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T10:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting runtime Error 'UC_OBJECTS_NOT_CHARLIKE'  for ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915030#M380678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same problem recently and managed to find a solution. Now I'll try to explain it to you and will try to remove that error from your life.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets analyze a fragment of your code. There is a part in your code, in which you prepare the &lt;EM&gt;field catalog&lt;/EM&gt; like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:wa_fcat type lvc_s_fcat.

wa_fcat-fieldname = 'P_GT_REVENUE_DET-CHK' .
wa_fcat-coltext = 'Clear' .
wa_fcat-seltext = 'Clear' .
wa_fcat-checkbox = 'X' .
wa_fcat-edit = 'X' .
APPEND wa_fcat to p_lt_fieldcatalog .

wa_fcat-fieldname = 'BUDAT' .
wa_fcat-coltext = 'Posting Date' .
wa_fcat-seltext = 'Posting Date' .
APPEND wa_fcat to p_lt_fieldcatalog .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you attempt to insert the first catalog as the one with a checkbox, isn't it? For this purpose, you set the fields &lt;EM&gt;CHECKBOX&lt;/EM&gt; and &lt;EM&gt;EDIT&lt;/EM&gt; as X. Although this seems quite simple and innocent, I am afraid this line may be causing some problems. Lets see why:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the next part (until the next append) you did not set the &lt;EM&gt;CHECKBOX&lt;/EM&gt; and &lt;EM&gt;EDIT&lt;/EM&gt; fields as X because you don't want them to be checkbox fields. So you expect them not to be set as X right? But unfortunately this is not true. Because you did not clear the &lt;STRONG&gt;wa_fcat&lt;/STRONG&gt; struct before the second append, it still marks as the second column as it is intended to be a checkbox field (this is because the value of &lt;EM&gt;CHECKBOX&lt;/EM&gt; and &lt;EM&gt;EDIT&lt;/EM&gt; fields did not change since the last assignment). So, the computer thinks that you want the second column (and all columns after it) to be a checkbox column too, but the field name you supplied is not compatible with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible solution is to put a &lt;STRONG&gt;clear&lt;/STRONG&gt; statement after every append statement like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
.
.
.
wa_fcat-checkbox = 'X' .
wa_fcat-edit = 'X' .
APPEND wa_fcat to p_lt_fieldcatalog .

" Put this statement after every append in the field cat adjustment
CLEAR wa_fcat.

wa_fcat-fieldname = 'BUDAT' .
wa_fcat-coltext = 'Posting Date' 
.
.
.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked for me, I hope it becomes helpful for you too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 15:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-uc-objects-not-charlike-for-alv-grid/m-p/1915030#M380678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T15:14:17Z</dc:date>
    </item>
  </channel>
</rss>

