cancel
Showing results for 
Search instead for 
Did you mean: 

Component Usage YORDER Does Not Have an Active Component

former_member221372
Participant
0 Kudos

Hi,

I am calling Interface method from one component & I am getting below dump.

Component Usage YORDER Does Not Have an Active Component

Could you pls suggest....

I wrote below logics...

This is written in comp2 from where i m calling the Interface Method

DATA lo_interfacecontroller TYPE REF TO ziwci_wd_is .

  lo_interfacecontroller
= wd_this->wd_cpifc_zwd_is(  ).

  lo_interfacecontroller
->yorder_popup(  ).

and in INIT method of Component controller, where my method exists

lo_cmp_usage TYPE REF TO if_wd_component_usage.



lo_cmp_usage
=   wd_this->wd_cpuse_zwd_is_reuse( ).

IF lo_cmp_usage->has_active_component( ) IS INITIAL.

  lo_cmp_usage
->create_component( ).

ENDIF.

But still not working........

Thanks in Advance.

Regards,

Bharath

Accepted Solutions (0)

Answers (2)

Answers (2)

ramakrishnappa
Active Contributor
0 Kudos

Hi Bharath,

I think the error is not coming from the above code. In your code the component usage is zwd_is_reuse.

But the error is pointing to YORDER as component usage, do you have YORDER component usage used some where else in the component?  Check out.

If so, your used component might not be active, try to activate the used component and try again.

Regards,

Rama

former_member221408
Participant
0 Kudos

You need to instantiate the component usage:

former_member221372
Participant
0 Kudos

Hi,

As mentioned, I already wrote that logic.