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

PO validation using userexit

Former Member
0 Likes
862

Hello all,

I am trying to find a userexit to validate certain things the material master before the PO is saved.

Then send an error message in case there is something wrong don't allow save the PO until that has been corrected.

does anybody come across a similar situation?

Thank you

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
765

Try using the exit MM06E005. Here you can validate the customer fields in a purchasing document.

Thanks,

Prerna

5 REPLIES 5
Read only

Former Member
0 Likes
766

Try using the exit MM06E005. Here you can validate the customer fields in a purchasing document.

Thanks,

Prerna

Read only

0 Likes
765

I want to validate the existance of certain view like storage, accounting, costing views and certain fields within these views

Do you think is possible with that exit you mentioned?

Thanx

Read only

0 Likes
765

Hi,

It depends which exactly fields you want to validate.

Review interface paramaters of function modules assigned for user exit MM06E005.

For me most useful was EXIT_SAPMM06E_012.

And don't forget to use

MMPUR_MESSAGE_FORCED

instead of

MESSAGE command.

Krzys

Read only

0 Likes
765

how ca I use MMPUR_MESSAGE_FORCED?

Read only

0 Likes
765

Just like MESSAGE statement:

MMPUR_MESSAGE_FORCED 'E' 'ZMM' '001' '' '' '' ''.

First parameter is message type then message class, message number and 4 variables.

Krzys