cancel
Showing results for 
Search instead for 
Did you mean: 

POP UP Error message appear after closure

former_member583823
Participant
0 Kudos

Hi Experts,

In Main screen, we have link to action in table control. So, when user clicks on link to action, we are opening POP UP with all data filled but no button for pop up.

Also we did some validation in the pop up screen. So When user clicks close button at the right corner, the same error message is appearing in Main screen, which we don't want.

Please suggest me how to stop the error message after closure of pop up.

Regards,

Reny Richard

Accepted Solutions (1)

Accepted Solutions (1)

Gowtham
Contributor
0 Kudos

Hi Reny,

You can create one close button in the popup and call this code there , it will clear the messages when you are closing the popup.

DATA l_current_controller      TYPE REF TO if_wd_controller,

DATA l_message_manager    TYPE REF TO if_wd_message_manager.

l_current_controller ?= wd_this->wd_get_api( ).

CALL METHOD l_current_controller->get_message_manager

RECEIVING

message_manager = l_message_manager.

l_message_manager->clear_messages( ).

- Gowtham

former_member583823
Participant
0 Kudos

Hi Gowtham,

Requirement is we shouldn't have close button.

Regards,

Reny Richard

Answers (3)

Answers (3)

former_member583823
Participant
0 Kudos

Hi Gowtham/Mani,

Thanks for the reply..

It is working fine when we write the code in exit method.

Regards,

Reny Richard

Gowtham
Contributor
0 Kudos

Hi Reni,

Is your issue resolved ? Kindly revert back if not .

- Gowtham

mani_sekar
Explorer
0 Kudos

Hi Reny,

If you want to use the standard close button, you can write the clear message (As Gowtham Reply) in WDDOEXIT method of pop up view.

Regards,

Manikandan S