cancel
Showing results for 
Search instead for 
Did you mean: 

ME22N display warnings popup directly at save

former_member355261
Participant
0 Kudos

Hello,

When we create or change a PO on ME21N/ME22N sometimes we get some warning messages and the user is asked to check or ignore them.

Most of the users just ignore them but sometimes it's important to check and fix.

So our requirement is to display the messages popup automatically at save.

The user has to click on Edit to view the messages but we want the messages to appear anyways right after clicking on save.

Any way to achieve this requirement ?

Accepted Solutions (1)

Accepted Solutions (1)

Nicolas
Active Contributor
0 Kudos

Hello,

You can have a look in method post_document of class lcl_application and method save of class lcl_transaction_po in function group MEGUI. There are some enhancement points you could use to achieve your requirements, especially these which are localed after the call of po_check method during the save.

The popup you mention is fired by method confirm_warning of abstract class lcl_transaction (which lcl_transaction_po inherits). The events are displayed when the save method returns ex_result = 8.

Regards,

raymond_giuseppi
Active Contributor
0 Kudos

You could force the result of the popup FM at end of method confirm_warning (include LMEGUICJH) or even at start of method (so no display of the popup) But insure user will be allowed to save and not locked in an endless loop.

Answers (0)