cancel
Showing results for 
Search instead for 
Did you mean: 

How to find out component usage name?

0 Kudos

Dear all,

I have created a new Usage and want to distiguish between the standard usage name and my usage usage 'Zxxxxx" for the same component.

I need to be able to rtrive the usage name of the component in the methode: do_init_context of the view in the used component.

I was trying this code:

data: lr_cinfig type ref to cl_bsp_dlc_configuration2.

lr_config ?= me->configuration_descr.

But the attribute: component_usage of the class cl_bsp_dlc__configuration2 is procted and I can not access it.

Does anyone knows how to find it in another way?

Best regards

Ahmed Hadi

Accepted Solutions (1)

Accepted Solutions (1)

former_member192716
Contributor
0 Kudos

Hi Ahmed,

Use the below code in any controller class method,


  DATA: lr_window TYPE REF TO cl_bsp_wd_window,
              lv_name    TYPE string.

  lr_window = me->view_manager->get_window_controller( ).
  lv_name = lr_window->get_component_usage_name( ).

Regards,

Arun Kumar

Edited by: Arun Kumar on Jul 22, 2010 5:17 AM

0 Kudos

Hi Arun,

thank you very much.

It working now.

Best regards

Ahmed

Answers (0)