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 or BADI for MM01 entered value check

Former Member
0 Kudos

Hello,

I want to check enterd material code in MM01. Because we have material number range rule but it's so complecate and can't be used SAP standerd number range.

Please advice me what exit or BADI can be used for this check in MM01 initial screen.

Regards,

Yoshi

1 ACCEPTED SOLUTION

0 Kudos

Please Check the Following BADI's

BADI_MATERIAL_CHECK

BADI_MATERIAL_OD

BADI_MATERIAL_REF

DOCUMENT_MAIN01

5 REPLIES 5

Former Member
0 Kudos

Check This out :

BADI_MATERIAL_CHECK

0 Kudos

Hi,

If you want to check some thing on SAVE, then use the EXIT: MGA00001.

or if you want to check before save i.e. on enter or when you move to some other tab in MM01 then use the BADI's

BADI_MATERIAL_OD

BADI_MATERIAL_REF.

If the above BADI'S and EXIT won't work for you, then I would suggest you to use a class CL_EXITHANDLER, go to method GET_INSTANCE and put a break point in that, and run your transaction over there you will find a suitable BADI.

Please let me know in case of any queries....

regards,

Rajesh Sadula.

Former Member
0 Kudos

Thank you Rajesh,

If you know what method can be used for material code check when push enter after material code fill in initial screen in BADI_MATERIAL_OD and _REF, pls let me know.

regards,

Yoshi

Former Member
0 Kudos

Hi,

Use PF_STATUS_SETZEN,SET_OTHER_MATERIAL_DATA_BILD method....

You could find your self if you would have tried by keeping break point in all methods of badi BADI_MATERIAL_OD, and check which one you want to use.....

Regards,

Rajesh Sadula.

0 Kudos

Please Check the Following BADI's

BADI_MATERIAL_CHECK

BADI_MATERIAL_OD

BADI_MATERIAL_REF

DOCUMENT_MAIN01