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: 

ME51N save process

ronaldo_aparecido
Contributor
0 Kudos

Hi  Guys.

I am work with exits in Me51n and when I type in table control the value (EXAMPLE: 3000000) and click in save

My code MUST to validate the number.

The ploblem is:

If I Type Material = 300000 and save ,the validation is correct in my exit .....00008 but if in same screen I change the material number

To 4000000 and click in save ,in debug I see the code 3000000 in my exit and validation is wrong because the number is 4000000 and not 300000

How I can update in my exit the value for it to consider the number 40000?

Sugestions welcome.

Thanks.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Better use BAdI ME_PROCESS_REQ_CUST.

Nevertheless, if you are in a version lower than 4.70, did you use exit EXIT_SAPMM06E_012 of Enhancement MM06E005 ?

Regards,

Raymond

3 REPLIES 3

Former Member
0 Kudos

which exit are you using? I think your exit is getting called before the change material takes place.

You can try another exit.

Use an exit which is triggered just before actual save.

raymond_giuseppi
Active Contributor
0 Kudos

Better use BAdI ME_PROCESS_REQ_CUST.

Nevertheless, if you are in a version lower than 4.70, did you use exit EXIT_SAPMM06E_012 of Enhancement MM06E005 ?

Regards,

Raymond

0 Kudos

Thanks Raymond .You is correct .WORKED

Thanks .