Application Development 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: 

Exit for ME21N

adrian_mejido
Contributor
0 Kudos

Hi,

I have implemented the MEREQ0001 for the ME21N. I have put some Z fields in dynpro 111.

I need to check if these fields have values and if they are initial, the user can't safe the purcharser.

I have put the check in the PAI of the dynpro111 but it doesn't work right because

The user can't leave the transaction ME21N because of my "E" message.

Where I should do the check or validation?is there any exit or badi that could help me?

Thanks for all you time.

Best regards.

Adrian Mejido

4 REPLIES 4

former_member203305
Active Contributor
0 Kudos

Hello.

Try to use this badi ME_PROCESS_PO_CUST with the method CHECK.

There you can make all the validations that you want and send message using

INCLUDE mm_messages_mac.

mmpur_message_forced 'E' '000' '398' 'message text here' '' '' ''.

Regards

Miguel

0 Kudos

Hi, 

Thanks for your reply, could I use this badi to check my "Z" fields of the ME51N?

Best regards

adrian_mejido
Contributor
0 Kudos

Sorry I want to check the ME51N too can I use the same badi?

0 Kudos

I have already solved my problem. I tell the solution in that link:

http://scn.sap.com/message/14092199#14092199