cancel
Showing results for 
Search instead for 
Did you mean: 

Define component usage 'XYZ' error for specific business role

Former Member
0 Kudos

Hi,

I have 2 view (say A and B ) in the same component. View A is calling view B as pop up. So I have added the view B in the component interface and also in the component usage of the same view as in method  comp_controller->window_manager->create_popup both interface and usage fields are needed.

Now i have 2 business roles. The pop up is working perfectly for one business role but for the other one I am getting the following dump.

Define component usage 'XYZ'

Method: CL_BSP_WD_REPOSITORY=>GET_CMP_USAGE_DEF

Line: 18

Please help me out to find out why this behavior is business role specific.

Thanks,

Accepted Solutions (0)

Answers (3)

Answers (3)

girish241674
Explorer
0 Kudos

Hi Tapas,

Even I facing same issue could you please tell how you solved that.

dharmakasi
Active Contributor
0 Kudos

Hi Girish,

Check whether both roles are loading same component or not?

Check even the enhancement set is loading correctly or not for the other business role in badi COMPONENT_LOADING.

Best Regards,

Dharmakasi.

Former Member
0 Kudos

H Jotsaroop,

Can you please tell me how can I call the popup then.

Thanks.

jotsaroop_singh
Active Participant
0 Kudos

Hi Tapas,

you can call the pop up as below where you need to have component interface but not the component usage.

lr_popup ?= me->comp_controller->window_manager->create_popup(
       iv_interface_view_name = 'Your interface window'
       iv_usage_name = if_bsp_wd_window_manager=>co_own_window
       iv_title = lv_title ).

Regards

jotsaroop_singh
Active Participant
0 Kudos

Hi Tapas,

At this point in time, i am not sure why you facing that problem, I just wanted to let you know that we do not need to have component interface and component usage defined when we are dealling with the views in the same component.

Regards,

Jotsaroop Singh