Skip to Content

how to use custom component configuration

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 13, 2011 at 03:20 PM

    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

    Add comment
    10|10000 characters needed characters exceeded