cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Magic and a full class table

pedrocavaco
Participant
1,893

Hi,

Today I crossed paths with a humble table.

Looks like SE11 enabled redirects to the class builder if the class/table name is less than 16.

BUG reported and shared.

Accepted Solutions (1)

Accepted Solutions (1)

retired_member
Product and Topic Expert
Product and Topic Expert

There's a reason behind.

Dictionary types and classes/interfaces are both global types in ABAP and can be used behind TYPE REF TO ...

You cannot have dictionary types and classes/interfaces of the same name.

If you enter the name of a dictionary type in the class builder and try to create it as a class or interface you get an according message.

Another way around, you get that message too.

When you want to display the global type in SE11, the tool is friendly (maybe a bit eager) and navigates to the type's definition, i.e. the class builder for global classes or interfaces.

Not a bug!

PS: And that's why the names of global classes and interfaces as a rule should start with CL_, CX_, IF_, ...

pedrocavaco
Participant

Hi Horst,

Thank you for your clear explanation, I got the point now and why I miss interpreted the situation.

.

Answers (1)

Answers (1)

raghug
Active Contributor

It redirects if it is a real class - for example try CL_SALV_TABLE.

It also redirects appropriately to views, structures, data elements, etc.... I don't think it is a bug, but a rather convenient hidden feature.

pedrocavaco
Participant

Hi Raghu,

Views, structures and data elements are dictionary components and so it makes sense the redirection on that range, the case above represents a problem since you can't create the table with the same name if the class exists.

retired_member
Product and Topic Expert
Product and Topic Expert

Exactly,"you can't create the table with the same name if the class exists"!

And this is not a bug but a feature.

Dictionary types and classes/interfaces are both global types and belong to one namespace!