<?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: Syntax error when creating Overwrite method - implicit enhancement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-creating-overwrite-method-implicit-enhancement/m-p/4570135#M1078421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note 1256889&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2008 14:47:24 GMT</pubDate>
    <dc:creator>former_member221314</dc:creator>
    <dc:date>2008-09-30T14:47:24Z</dc:date>
    <item>
      <title>Syntax error when creating Overwrite method - implicit enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-creating-overwrite-method-implicit-enhancement/m-p/4570134#M1078420</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 am working at a customer site, and need to implicitly enhance certain methods. I would like to create an Overwrite Method for the following class/method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_CRM_MKTDEF_DEFAULTS_PERSIST -&amp;gt; HEADER_WITH_KEY_EXITS_IN_DBASE( )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I proceeded in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Open class CL_CRM_MKTDEF_DEFAULTS_PERSIST in class builder (SE24)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Select menu path Class -&amp;gt; Enhance&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Create, or select, enhancement implementation ZCRM_MKTDEF_PRD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Select method HEADER_WITH_KEY_EXITS_IN_DBASE, select menu path Edit -&amp;gt; Enhancement Operation -&amp;gt; Add Overwrite Method&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Click on u201CNavigation to Overwrite Exitu201D&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After navigating to the Overwrite Exit, I click on "Check" to perform a syntax check (notice, I have not yet implemented any code. Everything so far has been done by the wizard).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Enhancement Implementation ZCRM_MKTDEF_PRD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Unable to interpret "IS_DEFAULTS_ATTR". Possible causes: Incorrect&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;spelling or grammar.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I create Overwrite methods for any other method in the same class, the same error does NOT occur. As far as I can tell, there is nothing special about this method that should cause this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would greately appreciate any help that any of you could give me on this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you and best regards,&lt;/P&gt;&lt;P&gt;- Marius&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Here is my code (which was generated after I followed the outlined steps above) for your reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS LCL_ZCRM_MKTDEF_PRD DEFINITION.&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;CLASS-DATA OBJ TYPE REF TO LCL_ZCRM_MKTDEF_PRD.&lt;/P&gt;&lt;P&gt;DATA CORE_OBJECT TYPE REF TO CL_CRM_MKTDEF_DEFAULTS_PERSIST .&lt;/P&gt;&lt;P&gt; INTERFACES  IOW_ZCRM_MKTDEF_PRD.&lt;/P&gt;&lt;P&gt;  METHODS:&lt;/P&gt;&lt;P&gt;   CONSTRUCTOR IMPORTING CORE_OBJECT&lt;/P&gt;&lt;P&gt;     TYPE REF TO CL_CRM_MKTDEF_DEFAULTS_PERSIST OPTIONAL.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;CLASS LCL_ZCRM_MKTDEF_PRD IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD CONSTRUCTOR.&lt;/P&gt;&lt;P&gt;  ME-&amp;gt;CORE_OBJECT = CORE_OBJECT.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD IOW_ZCRM_MKTDEF_PRD~HEADER_WITH_KEY_EXITS_IN_DBASE.&lt;/P&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;*" Declaration of Overwrite-method, do not insert any comments here please!&lt;/P&gt;&lt;P&gt;*"&lt;/P&gt;&lt;P&gt;*"methods HEADER_WITH_KEY_EXITS_IN_DBASE&lt;/P&gt;&lt;P&gt;*"  importing&lt;/P&gt;&lt;P&gt;*"    !IS_DEFAULTS_ATTR type CRMS_MKTDEF_DEFAULTS_DATA&lt;/P&gt;&lt;P&gt;*"  returning&lt;/P&gt;&lt;P&gt;*"    value(EV_EXISTS) type CRMT_BOOLEAN&lt;/P&gt;&lt;P&gt;*"  exceptions&lt;/P&gt;&lt;P&gt;*"    FAILURE .&lt;/P&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;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 21:17:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-creating-overwrite-method-implicit-enhancement/m-p/4570134#M1078420</guid>
      <dc:creator>former_member221314</dc:creator>
      <dc:date>2008-09-24T21:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error when creating Overwrite method - implicit enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-creating-overwrite-method-implicit-enhancement/m-p/4570135#M1078421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note 1256889&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 14:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-creating-overwrite-method-implicit-enhancement/m-p/4570135#M1078421</guid>
      <dc:creator>former_member221314</dc:creator>
      <dc:date>2008-09-30T14:47:24Z</dc:date>
    </item>
  </channel>
</rss>

