Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 18, 2011 at 12:39 PM

    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

    Add comment
    10|10000 characters needed characters exceeded