cancel
Showing results for 
Search instead for 
Did you mean: 

Popup message display error in ABAP Webdynpro

Former Member
0 Kudos

Hi,

i have created webdynpro component with popup functionality.These are steps followed for creating the component.

1. created a main view (

no context)

2. created a additional view which holds the message details.

3. created 2 windows for each of views and embedded views.

4.

on the wddoinit() of the main view i created the pop up window using...

  method WDDOINIT .
  DATA LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
  DATA LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
  DATA LO_WINDOW        TYPE REF TO IF_WD_WINDOW.

LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).

  LO_WINDOW        = LO_WINDOW_MANAGER->CREATE_WINDOW(
                    WINDOW_NAME            = 'POPUP_WINDOW'
                    title                  = 'TITLE'
*                    close_in_any_case      = abap_true
                    MESSAGE_DISPLAY_MODE  =
IF_WD_WINDOW=>CO_MSG_DISPLAY_mode_selected
*                    close_button          = abap_true
                    BUTTON_KIND            =
IF_WD_WINDOW=>CO_BUTTONS_OK
                    MESSAGE_TYPE          =
IF_WD_WINDOW=>CO_MSG_TYPE_NOne
                    DEFAULT_BUTTON        =
IF_WD_WINDOW=>CO_BUTTON_OK
                    ).

  LO_WINDOW->OPEN( ).
endmethod.

5. on the wddoinit() of the 2nd view i have called LO_MESSAGE_MANAGER->REPORT_T100_MESSAGE method to fetch the error message in the pop up.

At last the message was fetched but it's been displayed on both the windows...i need the message in the pop up window.

 

Thanks in Advance

Mohan....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mohan,

Maintain the exporting parameter view of the method LO_MESSAGE_MANAGER->REPORT_T100_MESSAGE as view name of the pop up view.

Regards,

Sayan

Answers (1)

Answers (1)

Former Member
0 Kudos

we can put both the views in one window