cancel
Showing results for 
Search instead for 
Did you mean: 

Error as PopUp

Former Member
0 Kudos

Hi Leads,

I want to display error message as POPUP. I am using REPORT_ERROR_MESSAGE. There is One Importing Parameter as POPUPDISPLAY. I have passed the value as 'X' to this Parameter.

But, its not working.

Can you pelase let me know how can I display Error as Popup.

Thanks,

Sandeep.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I have donme using PopUp to confirm . But, I have a Issue here.

After displaying the PopUp I want to stop the Processing like in Error Message.

But, Its not happening in POPUP TO CONFIRM.

Ex: I am doing the validatin in First Screen and dispalying the Popup. If no error I need to Move to The second screen. If error is there, I need to be in First Screen only.

But, it is moving to second screen after displaying the Popup.

Thanks,

Sandeep

Former Member
0 Kudos

Hi,

Dont fire the plug incase of error.

Based on the condition message type EQ 'E; then show the popup else. fire the plug for second screen.

if ls_message-type eq 'E'

call the popup

else.

fire the plug to second screen.

endif.

Regards,

Lekha.

Former Member
0 Kudos

Hi,

DATA: l_cmp_api          TYPE REF TO if_wd_component,
        l_window_manager   TYPE REF TO if_wd_window_manager,
        l_popup            TYPE REF TO if_wd_window,
        l_text             TYPE string_table,
        l_api              TYPE REF TO if_wd_view_controller,
        message            TYPE string.

  l_cmp_api        = wd_comp_controller->wd_get_api( ).
  l_window_manager = l_cmp_api->get_window_manager( ).

  message = 'Invalid Material'.
  APPEND message TO l_text.

  l_popup = l_window_manager->create_popup_to_confirm(
                text            = l_text
                button_kind     = if_wd_window=>co_buttons_ok
                message_type    = if_wd_window=>CO_MSG_TYPE_ERROR
                window_title    = 'Error'
                window_position = if_wd_window=>co_center ).

  l_popup->open( ).

Regards,

Radhika.