<?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: object_not_charlike error in ALV print in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117238#M1186922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using class method not REUSE....  FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2009 16:34:36 GMT</pubDate>
    <dc:creator>former_member125661</dc:creator>
    <dc:date>2009-01-26T16:34:36Z</dc:date>
    <item>
      <title>object_not_charlike error in ALV print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117236#M1186920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get the object_not_charlike run time error when i use print option in my ALV grid (I used class objects).&lt;/P&gt;&lt;P&gt;I know that it is because of some quant fields &amp;amp; currency field that are in the columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel i am not referencing them correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table that I am using doesn't have any Uom field or currency type field. So, I was trying to reference to MARA-MEINS and T001-WAERS. I don't think i am getting it right.&lt;/P&gt;&lt;P&gt;My internal table is called Itab.&lt;/P&gt;&lt;P&gt;and the 2 quant fields are MINBE,EISBE and 2 currency fields are 'VERPR,STPRS. Please advice..Thanks.&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;/P&gt;&lt;PRE&gt;&lt;CODE&gt;perform append_catalog using 'MINBE' 'MARC' .
  perform append_catalog using 'EISBE' 'MARC' .

 perform append_catalog using 'VERPR' 'MBEW' .
  perform append_catalog using 'STPRS' 'MBEW' .

form append_catalog using value(p_fname)
                          value(p_tname).

  data : v_fcat type lvc_s_fcat.
  v_fcat-fieldname = p_fname.
  v_fcat-ref_table = p_tname.
*  v_fcat-tabname = 'ITAB'.

  case p_fname.

   when 'EISBE' or 'MINBE'.
    v_fcat-ref_table = 'MARA'.
*    v_fcat-REF_FIELD = 'MEINS'.
    v_fcat-qfieldname    = 'MEINS'.


   when 'VERPR' or 'STPRS'.
    v_fcat-ref_table = 'T001'.
*    v_fcat-REF_FIELD = 'WAERS'.
    v_fcat-cfieldname = 'WAERS'.

  endcase.


  append v_fcat to gi_fieldcat.
endform.                    "APPEND_CATALOG&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even removed qfieldname and cfieldname from the case-endcase, still it dumps while I click on print option (Export to excel work fine).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 16:09:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117236#M1186920</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2009-01-26T16:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: object_not_charlike error in ALV print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117237#M1186921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the Note 166681 - Use of ALV components not released externally&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use the REUSE_ALV_LIST_DISPLAY and REUSE_ALV_HIERSEQ_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;function modules, you can perform a consistency check which closes when an&lt;/P&gt;&lt;P&gt;error log is output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an alternative to this (for example, if a short dump occurs before the&lt;/P&gt;&lt;P&gt;list is output), set  I_INTERFACE_CHECK = 'X' parameter in the source&lt;/P&gt;&lt;P&gt;code when you call up the function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you do this the ALV show tou you error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 16:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117237#M1186921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-26T16:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: object_not_charlike error in ALV print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117238#M1186922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using class method not REUSE....  FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 16:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117238#M1186922</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2009-01-26T16:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: object_not_charlike error in ALV print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117239#M1186923</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;If you want to indicate the reference field for currency and quantity fields, u need to add these reference fields to your output table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM APPEND_CATALOG USING 'MINBE' 'MARC' .
PERFORM APPEND_CATALOG USING 'EISBE' 'MARC' .

PERFORM APPEND_CATALOG USING 'VERPR' 'MBEW' .
PERFORM APPEND_CATALOG USING 'STPRS' 'MBEW' .

PERFORM APPEND_CATALOG USING 'MEINS' 'MARA' . "&amp;lt;-------- Unit
PERFORM APPEND_CATALOG USING 'WAERS' 'T001' .  "&amp;lt;-------- Currency

*---------------------------------------------------------------------*
*       FORM append_catalog                                           *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
*  --&amp;gt;  VALUE(P_FNAME)                                                *
*  --&amp;gt;  VALUE(P_TNAME)                                                *
*---------------------------------------------------------------------*
FORM APPEND_CATALOG USING VALUE(P_FNAME)
                          VALUE(P_TNAME).

  DATA : V_FCAT TYPE LVC_S_FCAT.
  V_FCAT-FIELDNAME     = P_FNAME.
  V_FCAT-REF_FIELDNAME = P_FNAME.
  V_FCAT-REF_TABLE     = P_TNAME.
*  v_fcat-tabname = 'ITAB'.

  CASE P_FNAME.

    WHEN 'EISBE' OR 'MINBE'.
      V_FCAT-QFIELDNAME    = 'MEINS'.

    WHEN 'VERPR' OR 'STPRS'.
      V_FCAT-CFIELDNAME = 'WAERS'.

  ENDCASE.


  APPEND V_FCAT TO GI_FIELDCAT.
ENDFORM.                    "APPEND_CATALOG&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 16:36:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117239#M1186923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-26T16:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: object_not_charlike error in ALV print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117240#M1186924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if i dont have fields waers,meins ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 17:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117240#M1186924</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2009-01-26T17:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: object_not_charlike error in ALV print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117241#M1186925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I was doing the right thing. The issue was another field that I had used which was a ratio of quantity field/quantity field and I was not refering it correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 17:07:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117241#M1186925</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2009-01-26T17:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: object_not_charlike error in ALV print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117242#M1186926</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;U should consider if you output table has amount or quantity field, u should add the reference fields for currency and unit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 17:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117242#M1186926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-26T17:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: object_not_charlike error in ALV print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117243#M1186927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can send the code of the call&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 19:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117243#M1186927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-26T19:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: object_not_charlike error in ALV print</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117244#M1186928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM APPEND_CATALOG USING 'MINBE' 'MARC' .
PERFORM APPEND_CATALOG USING 'EISBE' 'MARC' .
 
PERFORM APPEND_CATALOG USING 'VERPR' 'MBEW' .
PERFORM APPEND_CATALOG USING 'STPRS' 'MBEW' .

*---------------------------------------------------------------------*
*       FORM append_catalog                                           *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
*  --&amp;gt;  VALUE(P_FNAME)                                                *
*  --&amp;gt;  VALUE(P_TNAME)                                                *
*---------------------------------------------------------------------*
FORM APPEND_CATALOG USING VALUE(P_FNAME)
                          VALUE(P_TNAME).
 
  DATA : V_FCAT TYPE LVC_S_FCAT.
  V_FCAT-FIELDNAME     = P_FNAME.
  V_FCAT-REF_TABLE     = P_TNAME.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 19:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-charlike-error-in-alv-print/m-p/5117244#M1186928</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2009-01-26T19:50:16Z</dc:date>
    </item>
  </channel>
</rss>

