Skip to Content

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

Component Usage Does Not Have an Active Component

Hi All,

I get the following error "Component Usage MASTERS_ALV Does Not Have an Active Component" i got the same type of error before and resolved but now i forgor how to do can any one help me in resolving this error.

Former Member
Former Member replied

Hi ,,

In WDDOINIT hook method you need to instantiate the component usage otherwise you will get such type of dump.

Paste the below code in WDDOINIT hook method view or component controller doinit then you will not get dump

data lo_cmp_usage_alv type ref to if_wd_component_usage.

lo_cmp_usage_alv = wd_this->wd_masters_alv( ).

if lo_cmp_usage_alv->has_active_component( ) is INITIAL.

lo_cmp_usage_alv->create_Component( ).

endif.

Regards,

Devi

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