Skip to Content
author's profile photo Former Member
Former Member

Popup message display error in ABAP Webdynpro

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....

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2012 at 09:23 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2012 at 08:32 AM

    we can put both the views in one window

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.