cancel
Showing results for 
Search instead for 
Did you mean: 

check_mandatory_attributes in POPUP

Former Member
0 Kudos

Hello,

I tried to implement a popup with a radiobutton group which is supposed to be mandatory. My popup has to buttons 'ok' and 'cancel'. While pressing the 'ok' button i am calling my validating method.

The system is checking the mandatory field and displaying the error message. But unfortunatly not in the popup but in the view in which I was calling the popup.

Is there any way to stay in the popup and display the error messages there?

regards

stefan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

there's the optional parameter VIEW which you can use, see also the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/6c/7aae42cd7fb611e10000000a155106/frameset.htm">documentation</a> and

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d8/2a934259a5cb6ae10000000a155106/frameset.htm">here</a>

Regards, Heidi

Former Member
0 Kudos

Hello Heidi,

thanks for your fast answer. But my problem is that I do the validation when the button 'ok' is pressed. When I do it earlier as a event in the radibuttongroup the message is shown. But if the user only presses the 'ok' button the system is leaving the popup. How can can interupt this method and let the system stay in the popup?

best regards

stefan

rainer_liebisch
Contributor
0 Kudos

Hi Stefan,

you have to call:


window  type ref to if_wd_window.
wd_this->window->set_close_in_any_case( abap_false ).

Afterwards make sure that it is possible to close the window with the method CLOSE.

Regards,

Rainer

Former Member
0 Kudos

Hello Rainer,

thanks for your help, thats what i was searching for..

best regards

stefan

Answers (0)