Enhancement for ME21N in MM Module
My customer gives me a requirement is that when the end user uses ME21N to create a purchase order,he/she inputs the data and then click the button "save" to save the data,then it needs to check whether the vender is valid or not.If the vender is valid,then the end user can save data.Otherwise,we should not create the purchase order.
I find out many customer functions and some BADIs,but I don't know which enhancement I should use.Could you please help me to find out which enhancement I should use??
Thanks a lot.
Sanjeev Shrivastava replied
You should use BADI ME_PROCESS_PO_CUST mathod CHECK. This mathod is called before saving the PO and also if you press check button. This is best place to put your check.
If you do not have this BADI (Below release 470) or you do not want to use BADI, a user exit will also give this opportunity.
You may use EXIT_SAPMM06E_012 (Enhancement MM06E005).
If you do not acess of required data for this check, please use set data / get data to bring data into the enhancement.
I am sure this will meet the purpose.