2014 Jan 22 5:44 AM
Dear All,
We have a requirement to do below Validation while creating Contract.
We have to Validate Plant Values present at the Item Level based on the Company Code Present at the Header Level.
We have implemented the BADI "ME_PURCHDOC_POSTED" for this Purpose.
Validation is happening and after giving the Error Message plant fields are getting greyed out i.e., Fields will be Non Editable.
Is there any other way to make the fields editable or to achieve the requirement in any other way.
Any ideas or pointers will be helpful.
Thanks and Regards,
Vinay Mutt
2014 Jan 22 1:24 PM
Hi Vinay,
I strongly feel you are using a wrong badi for the purpose.
Check for other badis which will trigger when we enter the plant values in item.
and you can access the header details there.give the validation.code.
use cl_exithandler for finding the badis .
Regards,
Subeesh Kannottil
2014 Jan 22 2:33 PM
Did you find my answer at BADI for ME31K, else you could also look at an include lioke MM06EF0P_PRUEFEN for BAdI (alas reserved for SAP, but informative) and implicit enhancment spots (in the "vicinity" of previously identified SAP reserved BAdI looking like "check" methods".
Regards,
Raymond