09-24-2008 10:17 PM
Hi,
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,
- Marius
PS: Here is my code (which was generated after I followed the outlined steps above) for your reference:
CLASS LCL_ZCRM_MKTDEF_PRD DEFINITION.
PUBLIC SECTION.
CLASS-DATA OBJ TYPE REF TO LCL_ZCRM_MKTDEF_PRD.
DATA CORE_OBJECT TYPE REF TO CL_CRM_MKTDEF_DEFAULTS_PERSIST .
INTERFACES IOW_ZCRM_MKTDEF_PRD.
METHODS:
CONSTRUCTOR IMPORTING CORE_OBJECT
TYPE REF TO CL_CRM_MKTDEF_DEFAULTS_PERSIST OPTIONAL.
ENDCLASS.
CLASS LCL_ZCRM_MKTDEF_PRD IMPLEMENTATION.
METHOD CONSTRUCTOR.
ME->CORE_OBJECT = CORE_OBJECT.
ENDMETHOD.
METHOD IOW_ZCRM_MKTDEF_PRD~HEADER_WITH_KEY_EXITS_IN_DBASE.
"----
*" Declaration of Overwrite-method, do not insert any comments here please!
*"
*"methods HEADER_WITH_KEY_EXITS_IN_DBASE
*" importing
*" !IS_DEFAULTS_ATTR type CRMS_MKTDEF_DEFAULTS_DATA
*" returning
*" value(EV_EXISTS) type CRMT_BOOLEAN
*" exceptions
*" FAILURE .
"----
ENDMETHOD.
ENDCLASS.
09-30-2008 3:47 PM