cancel
Showing results for 
Search instead for 
Did you mean: 

Create Context dynamicly and map it to ALV-Component

former_member318172
Discoverer
0 Kudos

Hey evrybody,

I like to create a context and I want to map it to the component ALV_CONFLICT.

Creating the context is not the problem, but I tried to map the context by using the set_data method of the interface IWCI_SALV_WD_TABLE and when I try to call the view embeded the ALV_CONFLICT component I get the following mistake:

Folgender Fehlertext wurde im System E8D prozessiert: Component Usage ALV_CONFLICT Does Not Have an Active Component

Thanks so far and Kind Regards,

Henning

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Instantiate your component using code wizard before calling the set_data method of interface controller.

*Instatiate used controller

data lo_cmp_usage type ref to if_wd_component_usage.

lo_cmp_usage = wd_this->wd_cpuse_alv( ).

if lo_cmp_usage->has_active_component( ) is initial.

lo_cmp_usage->create_component( ).

endif.

data lo_interfacecontroller type ref to iwci_salv_wd_table .

lo_interfacecontroller = wd_this->wd_cpifc_alv( ).

lo_interfacecontroller->set_data( lo_node ).

Answers (2)

Answers (2)

former_member318172
Discoverer
0 Kudos

now it works...

thank you

arjun_thakur
Active Contributor
0 Kudos

Hi Henning,

You need to instantiate the component atleast once.

Refer the following link:

Use the code given in the link, this will remove your error.

I hope it helps.

Regards

Arjun