Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP OO Question =====CP

sap_cohort
Active Contributor
0 Kudos

Hi, I see lots of references like the below when doing ABAP OO program checks or reviewing ABAP Dumps.

ZCLDW_ALERTS==================CP

ZCLDW_ALERTS==================CM00Z

1. What does the '====CP' or '====CM00Z'?

2. Why can't it just show the name of the method the problem is in?

10 REPLIES 10

Former Member
0 Kudos

this comes from BADI, check in se19 for the Implementation <b>ZCLDW_ALERTS</b>.

then check the Class Interfacess and the Method.

goto SE24 with this <b>ZCLDW_ALERTS</b>.

Regards

Prabhu

0 Kudos

Hi, I'm not using a BADI. I wrote a small ABAP OO program. When checking I see references to the '====CP' and '====CM00Z'

0 Kudos

Hi

You've defined the class ZCLDW_ALERTS by SE24 and the system has generated:

ZCLDW_ALERTS==================CP is the main program

ZCLDW_ALERTS==================CM00Z is the include where a method is defined

Max

0 Kudos

Hi,

as Max wrote, this are the names for the generated class or the generated includes for the method.

There is a method to get the methodname from the includename is provided form the method:

<b>cl_oo_classname_service=>get_method_by_include</b>

Regards.

Stefan

Former Member
0 Kudos

Hi

They should be the name of the programs generated when a Z<class> was defined.

Max

ibrahim_u
Active Participant
0 Kudos

They are queries.

You can see CP and CM00Z in SQ01 transaction.

ibrahim.

0 Kudos

No, they are not queries... and I can't see thme in SQ01...

Can any ABAP OO guru help out?

uwe_schieferstein
Active Contributor
0 Kudos

Hello Kenneth

The suffix CP stands for class pool. I assume that when generating the class name has a maximum length and that all spaces between the class name and the final CP are filled using ===.

I do not know the meaning of CM00Z (in your case) but it is likely to be either one of the sections (public, protected, private, type section, macro section) or one of your methods (includes?).

Regards

Uwe

0 Kudos

Hello Kenneth, Hello Uwe,

the length of include names is restricted to 40 chars. Controversly the name of an Interface based method is longer. Therefore there is some kind of mapping.

a ===CMxxx Include is a method include. Please note that xxx might differ from system to system.

Regards,

Klaus

sap_cohort
Active Contributor
0 Kudos

Question Answered. Thanks