cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronise Popup window in Web Dynpro ABAP

Former Member
0 Kudos

Hi All,

  I have a requirement to trigger a popup window with custom fields in standard webdynpro component, and cursor should wait there until user take an action on popup window and execute rest of the code in the method.

Thanks & Regards

Murali Papana.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member211591
Contributor
0 Kudos

Hi Murali...

you have to split your method (lets call m_old) into two parts (lets call m_1 and m_2).

I assume your m_old has following structure:

- some code

-  popup call

- "rest of the method"

Split into m_1 and m_2 as follows:

Method m_1:

     - some code

     - popup call

Method m_2 executes the "rest of the method".

What you need to do to call m_2 is to trigger an event when popup is closed and implement m_2 as the eventhandler of this event.

BR,

Ismail

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

The below code needs to be written in WDDOMODIFYVIEW and it will set the cusor focus on the element.

DATA lo_element TYPE REF TO IF_WD_VIEW_ELEMENT.

if first_time eq abap_true.* get element via lead selection
 
CALL METHOD view->get_element
   
EXPORTING
     
id      = 'I1'
    receiving
      element = lo_element.
 
IF lo_element IS NOT INITIAL.
   
CALL METHOD view->request_focus_on_view_elem
     
EXPORTING
        view_element    = lo_element.
  ENDIF.
endif.

Former Member
0 Kudos

Hi Jayanthi,

Sorry, I don't understand what you are trying say. I need to display popup window in the standard component and that popup window should be synchronise mode.

Thanks & Regards

Murali Papana.