on 02-07-2007 2:31 PM
Hi
I am trying to use a method from a used component but I am receiving a dump whenever I can the call following code, before I even get to the method call.
DATA: l_ref_interfacecontroller TYPE REF TO ziwci_is_test_road_map .
l_ref_interfacecontroller = wd_this->wd_cpifc_test_road_map( ).
The dump says the component is not active.
Termination occurred in the ABAP program "CL_WDR_COMPONENT_USAGE========CP" -
in "ENSURE_ACTIVE_COMPONENT".
The main program was "SAPMHTTP ".
The code is as follows:
if_wd_component_usage~has_active_component( ) = abap_false.
Active component must exist when ...
raise exception type cx_wdr_rt_exception
exporting
textid = cx_wdr_rt_exception=>no_active_component_found
msgv1 = me->name.
endif.
Both my components are active, so where is the issue?
Any help greatly appreciated.
Ian
Hi Ian,
Have you tried reactivating both components? Have you created a component instance beforehand?
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ian,
As suggested, have you created a component instance beforehand? If the ALV or any other component gets displayed, the runtime will create an instance automatically, but probably it hasn't been displayed yet in your example. Hence, you will need to create an instance by calling create_component.
Best regards,
Thomas
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.