Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

abap oo constructor prob

data: g_dock type ref to cl_gui_docking_container,
        g_split type ref to cl_gui_easy_splitting_container,
        g_cont type ref to cl_gui_container.
create object g_dock       " this is a constructor
     *side = cl_gui_docking_container=>dock_at_top*      ..... "pls explain this syntax in general
extension = 200.

'dock_at_top' is a constant in the attributes component of the class 'cl_gui_docking_container'.

1.) we are already creating an instance of this class as 'g_dock'.

so instead of writing 'g_dock -> dock_at_top', why are we using ' clgui_docking_container=>dock_at_top_ '. pls explain this.

2.) pls clarify 1 thing ....the syntax ...

"create object g_dock


......... "

it is a constructor method, so why are we writing 'cl_gui_docking_container=>dock_at_top' instead of writing only 'dock_at_top'

pls help.

detailed answers will be appreciated, thnks in adv

Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question