01-30-2009 6:40 AM
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
01-30-2009 6:53 AM
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.
01-30-2009 6:46 AM
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.
01-30-2009 7:06 AM
01-30-2009 7:19 AM
01-30-2009 6:50 AM
Hi,
Use this User exit,
MM06E005 -
> EXIT_SAPMM06E_012->ZXM06U43-check Customer-Specific Data Before Saving
This is suitable for ur req.
01-30-2009 6:50 AM
01-30-2009 6:53 AM
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.
01-30-2009 7:11 AM
iused that logic but its not showing error message please tell how throw error message in that.
01-30-2009 9:57 AM
01-30-2009 7:29 AM
01-30-2009 8:17 AM
Hi,
Use the USER EXIT what I gave in the previous reply,
It works fine.