cancel
Showing results for 
Search instead for 
Did you mean: 

how to use custom component configuration

former_member305388
Active Contributor
0 Kudos

Hi Experts,

For a standard webdynpro object I have created a new z component configuration by copying from existing one. In the standard there are already 2 existing component configuration.

This webdynpro does not have any application created so I am not able to directly assign this component configuration.

During run time in portal when I view the properties I can see a application for this webdynpro component and the standard component configuration being used.

My question is how to use the z component configuration I have created in the webdynpro?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Srinivas

I researched your problem. I hope the below code helps you. You could add the below code to wddoinit.


DATA:  lo_api_controller       TYPE REF TO if_wd_component,
          lo_pers_manager      TYPE REF TO if_wd_personalization,
          ls_config_key           TYPE wdy_config_key.

           lo_api_controller = wd_comp_controller->wd_get_api( ).

           lo_pers_manager = lo_api_controller->get_personalization_manager( ).

                 ls_config_key-config_id = 'ZTEST' .
                 lo_pers_manager->load_config_by_key( ls_config_key ).

Regards

Lorraine