cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping componentcontroller to customcotroller

Former Member
0 Kudos

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 !

Accepted Solutions (0)

Answers (2)

Answers (2)

krishnendu_laha
Active Contributor
0 Kudos

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.

krishnendu_laha
Active Contributor
0 Kudos

Hello,

Please check that if you are creating instance component controller...

you can check rhouhg active_component( ) method and create the instance...

Thanks

Former Member
0 Kudos

Hi ,

Thank you a lot for repliying ! How can i declare the instance and use the set of the node with this instance ?

can you please give an exemple of code

Best regards