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:
CL_CRM_MKTDEF_DEFAULTS_PERSIST -> HEADER_WITH_KEY_EXITS_IN_DBASE( )
I proceeded in the following way:
Open class CL_CRM_MKTDEF_DEFAULTS_PERSIST in class builder (SE24)
Select menu path Class -> Enhance
Create, or select, enhancement implementation ZCRM_MKTDEF_PRD
Select method HEADER_WITH_KEY_EXITS_IN_DBASE, select menu path Edit -> Enhancement Operation -> Add Overwrite Method
Click on u201CNavigation to Overwrite Exitu201D
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).
Now, I get the following error:
Enhancement Implementation ZCRM_MKTDEF_PRD
Unable to interpret "IS_DEFAULTS_ATTR". Possible causes: Incorrect
spelling or grammar.
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.
I would greately appreciate any help that any of you could give me on this one.
thank you and best regards,
PS: Here is my code (which was generated after I followed the outlined steps above) for your reference:
CLASS LCL_ZCRM_MKTDEF_PRD DEFINITION.
CLASS-DATA OBJ TYPE REF TO LCL_ZCRM_MKTDEF_PRD.
DATA CORE_OBJECT TYPE REF TO CL_CRM_MKTDEF_DEFAULTS_PERSIST .
CONSTRUCTOR IMPORTING CORE_OBJECT
TYPE REF TO CL_CRM_MKTDEF_DEFAULTS_PERSIST OPTIONAL.
CLASS LCL_ZCRM_MKTDEF_PRD IMPLEMENTATION.
ME->CORE_OBJECT = CORE_OBJECT.
*" Declaration of Overwrite-method, do not insert any comments here please!
*" !IS_DEFAULTS_ATTR type CRMS_MKTDEF_DEFAULTS_DATA
*" value(EV_EXISTS) type CRMT_BOOLEAN
*" FAILURE .