on 03-06-2012 4:42 PM
Hi Gurus,
I had to modify a generic data source based on a database view. I had to add a field for extraction. Since this field was available in the tables on which the view was built but not used in the view, I modified the view to to include the field. Then, I modified the extract structure to include the newly added field.
Now, when I try to check the extractor in RSA3 (extract checker), I end up getting a runtime error with details as below.
Runtime Errors CREATE_OBJECT_CLASS_NOT_FOUND
Except. CX_SY_CREATE_OBJECT_ERROR
Date and Time 3/6/2012 5:46:07
Short text
CREATE OBJECT: The class "\CLASS=ZCL_IM_CLC" was not found.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_EXIT_MASTER================CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_CREATE_OBJECT_ERROR', was not
caught in
procedure "INSTANTIATE_IMP_CLASS" "(METHOD)", nor was it propagated by a
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The dynamically specified class "\CLASS=ZCL_IM_CLC" at CREATE OBJECT neither
exists as
local, nor as global class in the system, or is overshadowed by a local
data type of the same name.
Missing RAISING Clause in Interface
Program CL_EXIT_MASTER================CP
Include CL_EXIT_MASTER================CM002
Row 1
Module type (METHOD)
Module Name INSTANTIATE_IMP_CLASS
Trigger Location of Exception
Program CL_EXIT_MASTER================CP
Include CL_EXIT_MASTER================CM002
Row 15
Module type (METHOD)
Module Name INSTANTIATE_IMP_CLASS
Source Code Extract
Line SourceCde
1 METHOD instantiate_imp_class .
2
3 DATA: abs_type_classname TYPE string,
4 imp_obj TYPE imp_obj_type.
5
6 * Look for objects that have been created for this class
7 READ TABLE imp_obj_tab INTO imp_obj
8 WITH TABLE KEY imp_name = imp_name
9 calling_obj = caller.
10 IF sy-subrc = 0.
11 instance = imp_obj-obj.
12 ELSE.
13 CONCATENATE '\CLASS=' imp_class INTO abs_type_classname.
14 ***** dynamic object creation *******************************
>>>>> CREATE OBJECT instance TYPE (abs_type_classname).
16 ******************************************************************
17 imp_obj-imp_name = imp_name.
18 imp_obj-calling_obj = caller.
19 imp_obj-obj = instance.
20 INSERT imp_obj INTO TABLE imp_obj_tab.
21 ENDIF.
22 ENDMETHOD.
Can anybody please help me solve this issue?
I still get 'Class/Interface does not exist' message.
Thanks,
Ajay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anshul,
Thanks for your suggestion, but I have already done that. When I try to look for the BADI, I get a message that it does not exists.
Anything else I can do?
Regards,
Ajay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
*Short text *
*CREATE OBJECT: The class "\CLASS=ZCL_IM_CLC" was not found. *
the error says that class is not found...check if this datasource was enhanced earlier with BADI method....so after this enhancement that BADI or class got deactivated..
try to activate the class ZCL_IM_CLC and try...check se24 TCode to check the class..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.