Skip to Content

Magic and a full class table

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.

Add comment
10|10000 characters needed characters exceeded

  • Pedro,

    Both, your query and the way you posted the query with a video are very interesting.

    Does new SCN supports video grabs too while posting a query ?

    K.Kiran.

  • Get RSS Feed

2 Answers

  • Best Answer
    Mar 09, 2017 at 07:22 AM

    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_, ...

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 08, 2017 at 04:46 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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!