cancel
Showing results for 
Search instead for 
Did you mean: 

Get ran application name - If multiple apps are created in Dynpro Component

Former Member
0 Kudos

Hello All,

I have one dynpro component, where multiple application has been created for multiple windows in the same component. Each component has different default view set.

Is there any way fetch or get the name of application name that is ran, in the component controller's WDINIT method?

Thanks,

Bhushan

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor
0 Kudos

Check this link

similarly

you can get application info

if_wd_application->get_application_info( ).

Regards

Srinivas

Former Member
0 Kudos

Srinivas

It was very helpful answer. But how can I get the application boject in coponent controller??

Thanks,

Bhushan

Former Member
0 Kudos

I found & the answer is -

DATA: lo_component TYPE REF TO if_wd_component,

lo_application TYPE REF TO if_wd_application,

lo_application_info TYPE REF TO if_wd_rr_application,

lv_appl_name_str TYPE string.

  • Get component

lo_component = wd_this->wd_get_api( ).

  • Set application name

lo_application = lo_component->get_application( ).

lo_application_info = lo_application->get_application_info( ).

lv_appl_name_str = lo_application_info->get_name( ).

former_member199125
Active Contributor
0 Kudos

Hi Bhusan,

Thanks for posting the solution. thats very good.

And I have query, in one component we can have many applications,then in below statement

lo_application = lo_component->get_application( ).

which application will retrieve.?

Regards

Srinivas

Answers (0)