cancel
Showing results for 
Search instead for 
Did you mean: 

No active Component exists?

Former Member
0 Kudos

I try create an ALV. Also the time I get the error:

To the Component use ALV_TEST no active Component exists

I have activate the hole dynpro so I dont know why I get the error?

Please help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You need to instantiate a component usage of the ALV. Do that using the following code in your doinit method or the method where you initialize your ALV model. This is assuming that your usage name is 'ALV'.

data: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.

l_ref_cmp_usage = wd_this->wd_cpuse_alv( ).

IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.

l_ref_cmp_usage->create_component( ).

ENDIF.

Regards,

Nithya

Answers (0)