cancel
Showing results for 
Search instead for 
Did you mean: 

Get Webdynpro Component configuration name at runtime

former_member271371
Participant
0 Kudos

component-config-name.jpgHello,

how can i get the component configuration name from webdynpro at runtime in ABAP class (See picture).

When I use

DATA config_id TYPE string.
config_id = CL_WD_RUNTIME_SERVICES=>GET_URL_PARAMETER( 'sap-wd-configId' ).

the i become the WD-Config ID. Is there a class for this?

Thanks Kerim

J_R
Employee
Employee
0 Kudos

* Get component instance
lo_component = wd_this->wd_get_api( ).

lo_component->get_personalization_manager( )->get_state( IMPORTING original_config_key = DATA(ls_config_key) ).

LO_COMPONENT is your WD component and of type IF_WD_COMPONENT.

Accepted Solutions (0)

Answers (2)

Answers (2)

J_R
Employee
Employee
0 Kudos

You need in any case the WD component instance. You can get this also outside of a WD view, for example in the Component Controller. Another possibility example would be to get it from the WD context:

lo_component = wd_context->get_context( )-controller->get_component( ).

J_R
Employee
Employee
0 Kudos

DATA:
lo_component TYPE REF TO if_wd_component.

* Get component instance
lo_component = wd_this->wd_get_api( ).

* Get original configuration key
lo_component->get_personalization_manager( )->get_state( IMPORTING original_config_key = DATA(ls_config_key) ).

former_member271371
Participant
0 Kudos

Hello Jens,

thanks, but can I use this outside webdynpro-view method?

I need a class that I can use outside.

Kerim.