Hi all ,
I ve create a node in the COMPONENTCONTROLLER and i ve mapped this node to a CUSTOMCOTROLLER
Now when i create a method in the CUSTOMCONTROLLER : that SET the node it return an excption Null pointer.
The error occurs when i want to set the node
how can i solve it .. or how can i make possible the set of the node created in the component controller and mapped to a custom controller ?
Best regards !
Hello,
Please check that if you are creating instance component controller...
you can check rhouhg active_component( ) method and create the instance...
Thanks
Hello,
You can try two things:
1. In custom controller also, include the main component controller if it is not done so
2. Below code will instantiate custom controller:
DATA: lrf_crtl_custom TYPE REF TO ig_crtl_<custom>. * Verwerking --------------------------------------------------------- * lrf_crtl_custom = wd_this->get_crtl_<custom>( )
You can call method or set attribute...
Thanks.
Add a comment