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: 
Read only

me21n tcode pr validation based particular document

Former Member
0 Likes
637

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 throw error message 'please enter pr' for PARTICULAR ORDER TYPE (document type ) how to do it .... it can be done by user exits r badi .. if it possiable please send the code

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
570

Hi,

badi ME_PROCESS_PO_CUST

method - PROCESS_ITEM



data: ls_poitem type mepoitem.
 
  ls_poitem = im_item->get_data( ).
 
  if ls_poitem-banfn eq ' '.
 
   message 'Plz Enter Purchase requisition'  type 'E'.
 
  endif.

Regards!

4 REPLIES 4
Read only

Former Member
0 Likes
571

Hi,

badi ME_PROCESS_PO_CUST

method - PROCESS_ITEM



data: ls_poitem type mepoitem.
 
  ls_poitem = im_item->get_data( ).
 
  if ls_poitem-banfn eq ' '.
 
   message 'Plz Enter Purchase requisition'  type 'E'.
 
  endif.

Regards!

Read only

0 Likes
570

for the particular document type... please guide me

Read only

0 Likes
570

Hi Santosh,

you ask this question lot of times and marked them as solved.

Why do you ask it again?

Regards, Dieter

Read only

Former Member
0 Likes
570

Hi Santosh,

try in cmod MM06E005 with EXIT: EXIT_SAPMM06E_012.

Regards, Dieter