cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve web dynpro application name

mariano_gallicchio2
Participant
0 Kudos

Hello experts!

I have a web dynpro application, and i want to retrieve the application name in a method of that application

how can i do that?

Thanks!!!

Accepted Solutions (1)

Accepted Solutions (1)

former_member40425
Contributor
0 Kudos

Hello,


DATA:
    lr_ctrl_api                    TYPE REF TO if_wd_controller,
    lr_comp_api                    TYPE REF TO if_wd_component,
    lr_appl_api                    TYPE REF TO if_wd_application,
    lr_appl_info                   TYPE REF TO if_wd_rr_application,
    l_appl_name                    TYPE string.


* get app name
  lr_ctrl_api  = wd_this->wd_get_api( ).
  lr_comp_api  = lr_ctrl_api->get_component( ).
  lr_appl_api  = lr_comp_api->get_application( ).
  lr_appl_info = lr_appl_api->get_application_info( ).
  l_appl_name  = lr_appl_info->get_name( ).

In this l_appl_name will be containing the name of application.

You can go for the following link as well.

I hope it helps.

Regards,

Rohit

Answers (1)

Answers (1)

Former Member
0 Kudos

Hey!

Please refer to reply of Rohit Makkar !