cancel
Showing results for 
Search instead for 
Did you mean: 

regarding link to action url

Former Member
0 Kudos

Hello friends,

I have add link to action in my web dynpro but when i run it and click on the link my current screen messages is refresh automatically.

but i don't want to refresh it my  messages.

i have written following code .

METHOD onactionlink_to_new_url .

   DATA:   lo_window_manager TYPE REF TO if_wd_window_manager,
           lo_api_component  TYPE REF TO if_wd_component,
           lo_window         TYPE REF TO if_wd_window,
           lv_url  TYPE string,
           lv_url1 TYPE string.

   lo_api_component  = wd_comp_controller->wd_get_api( ).
   lo_window_manager = lo_api_component->get_window_manager( ).

   lv_url = 'http://google.com

   CALL METHOD lo_window_manager->create_external_window
     EXPORTING
       url    = lv_url
     RECEIVING
       window = lo_window.

   lo_window->open( ).

ENDMETHOD.

kindly advice.

Thanks,

abhilash

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

When ever you click any action in wed dynpro abap, the WDDOMODIFYVIEW method will be called followed by WDDOAFTERACTION method.

during this the message area will be cleared. So you create a global message manager and call

get_messages method of if_wd_message_manager  in the WDDOAFERTACTION method and redisplay

the messages.

Hope this helps u,.

Regards,

Kiran

Answers (1)

Answers (1)

Former Member
0 Kudos

if you want to calll url in extral window why you need  messages can you explain  business logic