Skip to Content
0
Former Member
Sep 30, 2005 at 03:32 PM

Calling method in supcontroller from main controller.

25 Views

I want to call a public method in a supcontroller from a main controller. It is no problem to call a method that is standard defined in the class CL_BSP_CONTROLLER2, but wen tryin to call one that I have defined my self it dumps.

DATA: sup_ctr TYPE REF TO cl_bsp_controller2,

w_username TYPE string.

  • Call from MAIN controller.

CALL METHOD me->get_controller

EXPORTING

controller_id = 'USER'

RECEIVING

controller_instance = sup_ctr.

  • Call own defined method (this goes wrong).

CALL METHOD sup_ctr->get_username.