07-31-2012 3:44 AM
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
08-01-2012 10:35 AM
Please Check the Following BADI's
BADI_MATERIAL_CHECK
BADI_MATERIAL_OD
BADI_MATERIAL_REF
DOCUMENT_MAIN01
07-31-2012 5:07 AM
07-31-2012 7:02 AM
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.
07-31-2012 11:18 AM
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
07-31-2012 2:11 PM
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.
08-01-2012 10:35 AM
Please Check the Following BADI's
BADI_MATERIAL_CHECK
BADI_MATERIAL_OD
BADI_MATERIAL_REF
DOCUMENT_MAIN01