Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

display error message on modal dialog screen

Former Member
0 Likes
2,826

Dear expert,

Our requirment is that:

We want to display a modal dialog screen for user input some other detail data when click 'Post' in MIRO, and update these data to a an add-on table. There will be a 'CHECK' button on the dialog box for checking the data which user input.

We found the customer function EXIT_SAPLMRMP_010 can do the job. we create our dialog screen, and call it in EXIT_SAPLMRMP_010.

We write some code like " MESSAGE 'xx is a required field' type 'E' '' in PAI modoule of dialog screen.

but when the program reach the code 'Message XX', no any error message pop-up, the modal dialog screen automatically closed and back to MIRO screen. the error message can be found when click button 'MESSAGE' on MIRO screen.

it seems that the sytem prevent the error messages raised, and collect them into the "message box" of MIRO screen.

But the we want to display the error message directly in the dialog window or pop-up the message without dialog window close.

is there any one how to do that?

thanks very much

Dear expert,

Our requirment is that:

We want to display a modal dialog screen for user input some other detail data when click 'Post' in MIRO, and update these data to a an add-on table. There will be a 'CHECK' button on the dialog box for checking the data which user input.

We found the customer function EXIT_SAPLMRMP_010 can do the job. we create our dialog screen, and call it in EXIT_SAPLMRMP_010.

We write some code like " MESSAGE 'xx is a required field' type 'E' '' in PAI modoule of dialog screen.

but when the program reach the code 'Message XX', no any error message pop-up, the modal dialog screen automatically closed and back to MIRO screen. the error message can be found when click button 'MESSAGE' on MIRO screen.

it seems that the sytem prevent the error messages raised, and collect them into the "message box" of MIRO screen.

But the we want to display the error message directly in the dialog window or pop-up the message without dialog window close.

is there any one how to do that?

thanks very much

2 REPLIES 2
Read only

Former Member
0 Likes
1,087

Hi Vinny ..

Messages of type E dont give a pop-up screen it just describes error on the status bar .

I think in order to solve your problem you need to follow view approach i.e create a window screen ,append it to the view .

A good discussion on the this approah is done on the below link .

Hope this gives you some light on the solution.

Thanks and Regards

Aditi Wason

Read only

Former Member
0 Likes
1,087

Hi Vinny,

Have you defined a PF-STATUS for your dialog screen.

define a PF-STATUS and a message class.

as per the condition display the error message..

Eg MESSAGE E001(ZMSG).

this should give a error message on your dialog screen.

Hope you got this.

Regards,

Ranjith N