2011 May 06 7:09 AM
Hi,
I have to put a check on Document type and plant combination in ME21n.
After i enter values in Doc Type and Plant and i hit enter it should perform a check.
Check Logic:
I have made a Z table and if the Doc type n plant combination does not exist in that Z table then it should throw an error.
Now my query is,
which exit or badi should i use? i cant find anything related to it.
Thanx in advance
Regards,
Shraddha
2011 May 06 7:21 AM
Hi,
Try BADI - ME_PROCESS_PO_CUST
Methods - PROCESS_ITEM or CHECK.
Regards,
Harish
2011 May 06 7:21 AM
2011 May 06 7:30 AM
hi..
thanks for your reply...but wont this check only after i hit SAVE?
regards,
Shraddha
2011 May 06 8:51 AM
Hi Shraddha,
Try ME_PROCESS_PO badi. Also when you hit enter, put a breakpoint> at statement> ABAP Command (GET BADI) will show you the BAdIs that get called and check which one is suitable for your requirement.
Regards,
Shyam.
2011 May 06 10:32 AM
Hi shyam...
thanks for your reply...
me_process_po is only for internal use of SAP
me_process_po_cust-
actually i want plant info from item and doc type from header....which is not possible through this badi as the method in which both these parameters are there is not called at the time of enter or save.
rest no other badi is useful.
Do u know about any exit?
Regards,
shraddha
2011 May 06 12:20 PM
hey...found the solution
enhancement : MM06E005
exit: EXIT_SAPMM06E_017
2011 May 07 5:07 AM
Hi Shraddha,
1) Try BADI - ME_PROCESS_PO_CUST method Methods - PROCESS_ITEM or CHECK.Use this and valid what and fields you want
valid either header or item level and give the required message. Post if need more help in this.
Regards,
Madhu.