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: 

in me21n purchase requestion field to validate

Former Member
0 Kudos
158

hi guru's

in me21n tcode in item level i want to check purchase requestion field initial or not

if its not initial it should trow the message 'please enter pr' how to do it .... it can be done by user exits r badi .. if it possiable please send the code

1 ACCEPTED SOLUTION

GauthamV
Active Contributor
0 Kudos
96

Hi,

use this badi ME_PROCESS_PO_CUST

method - PROCESS_ITEM


  data: ls_mepoitem type mepoitem.

  ls_mepoitem = im_item->get_data( ).

  if ls_mepoitem-banfn eq ' '.

   message 'Enter PR' type 'E'.

  endif.

10 REPLIES 10

Former Member
0 Kudos
96

Hi,

Try with the following BADIs.

ME_CHECK_ALL_ITEMS

ME_CCP_ACTIVE_CHECK

LUMER_BADI_ROUND_INT

BADI_LAYER

MD_STOCK_TRANSFER

ME_DEFINE_CALCTYPE

WB2_ADDITIONAL_DATA

WB2_ADD_DATA_INT

Hope this helps u.

Thanks.

0 Kudos
96

can send some sample code i new to badi

0 Kudos
96

Hi,

See the below link to know about BADI.

http://www.saptechies.com/simple-sap-badi-example/

Thanks.

Former Member
0 Kudos
96

Hi,

Use this User exit,

MM06E005 -


> EXIT_SAPMM06E_012->ZXM06U43-check Customer-Specific Data Before Saving

This is suitable for ur req.

Former Member
0 Kudos
96

Check this,

ME_CHECK_ALL_ITEMS

Jitendra

GauthamV
Active Contributor
0 Kudos
97

Hi,

use this badi ME_PROCESS_PO_CUST

method - PROCESS_ITEM


  data: ls_mepoitem type mepoitem.

  ls_mepoitem = im_item->get_data( ).

  if ls_mepoitem-banfn eq ' '.

   message 'Enter PR' type 'E'.

  endif.

Former Member
0 Kudos
96

iused that logic but its not showing error message please tell how throw error message in that.

Former Member
0 Kudos
96

this as to be done for particular order type

Former Member
0 Kudos
96

Hi,

use MM06E005 - EXIT_SAPMM06E_016.

Former Member
0 Kudos
96

Hi,

Use the USER EXIT what I gave in the previous reply,

It works fine.