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: 

PO validation using userexit

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Thanks,

Prerna

5 REPLIES 5

Former Member
0 Kudos

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

Thanks,

Prerna

0 Kudos

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

0 Kudos

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

0 Kudos

how ca I use MMPUR_MESSAGE_FORCED?

0 Kudos

Just like MESSAGE statement:

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

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

Krzys