Application Development and Automation 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: 

Validation in ME31K

Former Member
0 Kudos
970


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

2 REPLIES 2

former_member210857
Participant
0 Kudos
310

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

RaymondGiuseppi
Active Contributor
0 Kudos
310

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