cancel
Showing results for 
Search instead for 
Did you mean: 

Get the name of the webdynpro component name .

former_member199126
Participant
0 Kudos

Hi I need to get the WebDynpro component name in its own DOINIT method for some processing.

Is there any way to get that ??

For Ex: I call a ZWD_TWO from ZWD_ONE.

I need to get the name of ZWD_ONE in the DOINIT of ZWD_TWO..

Edited by: karthikeyan.chandrasekaran on Mar 2, 2012 12:52 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

The code shows how you can get the component name.


data comp type REF TO if_wd_component.
data comp_info type REF TO if_wd_rr_component.
data str type string.
comp = wd_this->wd_get_api( ).
comp->get_component_info( RECEIVING component_info = comp_info  ).
comp_info->get_name( RECEIVING result = str ).

 

former_member199126
Participant
0 Kudos

Thank yu reddy .

former_member199125
Active Contributor
0 Kudos

Try below methods of If_wd_component interface.

GET_ID

GET_COMPONENT_INFO

Regards

Srinivas