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

Check Screen Fields in ME21n

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

Hi,

Try BADI - ME_PROCESS_PO_CUST

Methods - PROCESS_ITEM or CHECK.

Regards,

Harish

Former Member
0 Kudos

<removed>

Edited by: harishkumar.d on May 6, 2011 8:21 AM

0 Kudos

hi..

thanks for your reply...but wont this check only after i hit SAVE?

regards,

Shraddha

Former Member
0 Kudos

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.

0 Kudos

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

0 Kudos

hey...found the solution

enhancement : MM06E005

exit: EXIT_SAPMM06E_017

madhu_vadlamani
Active Contributor
0 Kudos

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.